Re: File Permissions


Subject: Re: File Permissions
From: Sak (sak@nwlink.com)
Date: Mon Jul 30 2001 - 13:41:54 MDT


On Monday 30 July 2001 05:51, you wrote:
> Thanks but,
>
> Each time a user creates a file in my public directory the permissions on
> the file do not allow any other users to access the file. I have the
> rights of the folder set to allow all valid user and group read write and
> execute permissions. When I look at the new rights on the file a created
> by a user, it is set to owner has the only rights to the file. I have to
> run chmod each time a new file is created so other users in that group can
> use the file. That's a real pain. What can be done to ease my pains.

This makes sense. Each user can have different permission bits set for files
and directories that they create. What you're looking for now is the 'umask'
command. Depending on how your system is setup, which shell you've decided
to use, etc., you can set the umask variable in each individual user's
.profile file. I'm not a hundred percent certain how this works, but it uses
a 3 digit octal number like chmod. It's value is subtracted from 777 for
directories or 666 for files. Thus umask 002 yields files with permissions
set to 664 which is the same as rw-rw-r-- when creating new files with the
shell.

Good luck,

-- 
Sak.



This archive was generated by hypermail 2a24 : Mon Jul 30 2001 - 12:48:01 MDT