D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] File permissions and access rights



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 06 Nov 2002 7:28 pm, Rick Timmis wrote:
Hello all

Can anyone help me with a little problem on permissions.

so far each users can do exactly as i intended with existing files in
the folder. e.g staff 1 writes to file X then the permissions remain
unchanged. However when staff 1 creates a new file it becomes readonly
to all the other members of the group staff.

Newly created files have the following persmissions

user RW
group R
others R

You need to work on the umask to set 664 instead of 644, umask of 113 instead 
of 133. I think it goes in .bash_profile but check man umask.

(umask reduces the permissions from 777, so 777-113=664)

(Although I've probably got it wrong somewhere.)

- -- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9yXp1k7DVr6iX/QIRAkj7AJ4vD1DwLHPQVRHX0WfPrpdwq+OVXgCfVCpD
/8fs4qGYVBCyco4x+24bkBA=
=VRnk
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly