Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2002 09:00:27 -0800
From:      "Drew Tomlinson" <drew@mykitchentable.net>
To:        "Brian T.Schellenberger" <bts@babbleon.org>, <bastill@sa.apana.org.au>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: A question from a convert from Windows to FreeBSD
Message-ID:  <012001c1a4f8$9fb5eff0$c42a6ba5@lc.ca.gov>
References:  <0ffe01c1a371$661d1b20$6600640a@attbi.com> <02012419032304.01209@BAPhD.gihon.org.au> <20020124134552.F16D93F56@i8k.babbleon.org>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----
From: "Brian T.Schellenberger" <bts@babbleon.org>
To: <bastill@sa.apana.org.au>; <freebsd-questions@FreeBSD.ORG>
Sent: Thursday, January 24, 2002 5:45 AM
Subject: Re: A question from a convert from Windows to FreeBSD


> to chmod (which means to change permissions, by the way--not sure why
it's
> called "chmod") or anything else to get it to work for a regular user,
and I

It's called "chmod" because you are "changing the mode".  Although the
command will accept arguments like +r and -x, what you are actually
doing is changing the numeric mode of a file.  In each group, the "r" is
worth 4, the "w" worth 2, and the "x" is worth 1.  There are more such
as the suid bit but these are the basics.  So in this file,

-rw-r--r--  1 root  wheel    11158 Apr 20  1998 pdf_sec.ps

the mode is 644.  And in this file,

-r-xr-xr-x   1 root  wheel     3545 Jan  8 11:30 znew

the mode is 555.

HTH,

Drew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?012001c1a4f8$9fb5eff0$c42a6ba5>