View previous topic :: View next topic |
Author |
Message |
harman n00b
Joined: 14 Sep 2002 Posts: 6
|
Posted: Sat Sep 14, 2002 12:41 pm Post subject: Home dir permissions |
|
|
Hi Guys,
I have created a normal user, and created the /home/username dir... but what should be the permissions on the /home/username ??
Who should own the /home/username ??
any chown and chmod commands refering to /home/username would be great...
Also how can i setup /etc/skel ?
Any insight would be great.
Thanks
Harman |
|
Back to top |
|
|
harman n00b
Joined: 14 Sep 2002 Posts: 6
|
Posted: Sat Sep 14, 2002 1:50 pm Post subject: |
|
|
no one?
anyone added any normal users and added a home dir?
Harman |
|
Back to top |
|
|
nitro322 Guru
Joined: 24 Jul 2002 Posts: 594 Location: USA
|
Posted: Sat Sep 14, 2002 3:12 pm Post subject: |
|
|
the easiest way to add a user is 'adduser -m username'. This will automatically create your home directory, set the parmissions and ownership accordingly, and then copy the files from /etc/skell over. If you've already manually created the account (in which case you should know the user and group IDs), I'd suggest:
Code: | chown -R $UID.$GID /home/username && chmod -R 700 /home/username |
As far as /etc/skel in concerned, the only thing you need to be concerned with setting up is any environment settings you want all of your users to share, since those files get copied to new user home directories.
By the way, it will sometimes take people longer than an hour to respond to posts. Especially at 8:00am. Have a little bit more patience next time. I think the general guideline for this forum is to give people about a day to respond, and if no one has done so the go agead and reply to it to ask for more help. That'll push it back to the top for everyone to see again. Anyway, hope this helps. |
|
Back to top |
|
|
|