View previous topic :: View next topic |
Author |
Message |
Ben2040 Guru
Joined: 07 May 2003 Posts: 445 Location: UK
|
Posted: Wed Jun 04, 2003 3:37 pm Post subject: User Home Directories |
|
|
Hi
JUst finished an install, and i'm now emerging kde and gnome, my two desktops of choice, and I am wondering how to change directory owners from the CLI. This may be obvious but not to me so I need a little halp. I am asking because I have my original home directory and when I add a user (me) it tells me the directory does not exist upon logging in. I know it does though as when root I can see it as normal. Also all the files permissions are wrong, such as .bash-logout says that I don't have permission!! HELP!!!!!
Ben |
|
Back to top |
|
|
paranode l33t
Joined: 06 Mar 2003 Posts: 679 Location: Texas
|
Posted: Wed Jun 04, 2003 3:42 pm Post subject: |
|
|
As root, use the commands chown and chgrp.
For example:
Code: | chown user /home/user
chgrp users /home/user |
_________________ Meh. |
|
Back to top |
|
|
Ben2040 Guru
Joined: 07 May 2003 Posts: 445 Location: UK
|
Posted: Wed Jun 04, 2003 3:47 pm Post subject: |
|
|
Hi
Unfortunately thi hasn't worked. The same error still appears - No directory /home/benjamin! - I then tried again using chown and chgrp -R but the same effect ensued. Do I need an env-update, or reboot? |
|
Back to top |
|
|
paranode l33t
Joined: 06 Mar 2003 Posts: 679 Location: Texas
|
Posted: Wed Jun 04, 2003 4:40 pm Post subject: |
|
|
Couldn't hurt I guess. What do you get with ls -al /home/benjamin and ls -l /home? _________________ Meh. |
|
Back to top |
|
|
Ben2040 Guru
Joined: 07 May 2003 Posts: 445 Location: UK
|
Posted: Wed Jun 04, 2003 4:56 pm Post subject: |
|
|
Nevermind!! I also had to change /home to me. BUt this isn't exactly how I want it. I tried owner "nobody" but this didn't work, and I was wondering what the owner was for home originally? |
|
Back to top |
|
|
paranode l33t
Joined: 06 Mar 2003 Posts: 679 Location: Texas
|
Posted: Wed Jun 04, 2003 5:23 pm Post subject: |
|
|
It is supposed to be owned by root. _________________ Meh. |
|
Back to top |
|
|
pizen Apprentice
Joined: 23 Jun 2002 Posts: 213 Location: Atlanta, GA, USA
|
Posted: Wed Jun 04, 2003 6:49 pm Post subject: |
|
|
paranode wrote: | For example:
Code: | chown user /home/user
chgrp users /home/user |
|
Just to give another example with less typing (since I think we're all about that):
Code: | $ chown user:group /home/user |
|
|
Back to top |
|
|
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Wed Jun 04, 2003 7:23 pm Post subject: |
|
|
Make sure the directory exists! |
|
Back to top |
|
|
Forse Apprentice
Joined: 26 Dec 2002 Posts: 260 Location: /dev/random
|
Posted: Wed Jun 04, 2003 8:43 pm Post subject: |
|
|
for creating users just emerge superadduser _________________ [ My sites ]: UnixTutorials : AniFIND : AnimeYume |
|
Back to top |
|
|
|