Re: permissions and the /etc/skel directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On December 31, 2003 12:41 pm, Chris W. Parker wrote:
> hi people.
>
> it doesn't appear that permissions set within the /etc/skel carry over
> to the new users home directory (this is expected but unfortunate!).
>
> here's what i did:
>
> # cd /etc/skel
> # mkdir www
> # chown .apache . www/
> # chmod 770 . www/
> # useradd webtest
> # passwd webtest
> <password stuff>
>
> of course the directory exists in /home/webtest but it's owned by the
> user and it's group and not apache.
>
> how do i give it default permissions also?


Hi Chris,
useradd always sets ownership to the new dirs & files to the new user.

It sounds like you may want to look at sgid to set the default  group 
ownership so group members can all access all files. You should man chmod & 
look for sgid for more info.
-- 
Pete Nesbitt, rhce


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux