Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User Home Directories
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Wed Jun 04, 2003 3:37 pm    Post subject: User Home Directories Reply with quote

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
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Wed Jun 04, 2003 3:42 pm    Post subject: Reply with quote

As root, use the commands chown and chgrp.

For example:
Code:
chown user /home/user
chgrp users /home/user

_________________
Meh.
Back to top
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Wed Jun 04, 2003 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Wed Jun 04, 2003 4:40 pm    Post subject: Reply with quote

Couldn't hurt I guess. What do you get with ls -al /home/benjamin and ls -l /home?
_________________
Meh.
Back to top
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Wed Jun 04, 2003 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Wed Jun 04, 2003 5:23 pm    Post subject: Reply with quote

It is supposed to be owned by root.
_________________
Meh.
Back to top
View user's profile Send private message
pizen
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 213
Location: Atlanta, GA, USA

PostPosted: Wed Jun 04, 2003 6:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
slougi
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 222
Location: Oulu, Finland

PostPosted: Wed Jun 04, 2003 7:23 pm    Post subject: Reply with quote

Make sure the directory exists!
Back to top
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Wed Jun 04, 2003 8:43 pm    Post subject: Reply with quote

for creating users just emerge superadduser
_________________
[ My sites ]: UnixTutorials : AniFIND : AnimeYume
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum