Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root owns user [solved]
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
carpenterguy
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2009
Posts: 132

PostPosted: Sun Apr 08, 2012 4:16 pm    Post subject: root owns user [solved] Reply with quote

Sorry for such a basic linux permission problem :oops:

I had my /home inside of / Not a separate partition. I added another drive, made it one ext4 fs, edited fstab and added /home This all went fine.
When I rebooted, had a shiny new /home with no user, my old user was hidden I could not find it or my files.
So I changed the drive to a new /mnt/new and mounted it, moved my user /home/genfool to the new drive, changed fstab back to /home and now have a home with my user.
Now root owns user, and user can not login.
[/quote]gen-fool@joker /home $ ls -lg
total 24
drwxr-xr-x 37 gen-fool 4096 Apr 8 09:01 gen-fool
drwxr-xr-x 46 root 4096 Apr 7 17:53 genfool
drwx------ 2 root 16384 Apr 7 10:30 lost+found
Quote:


My noob question is, I know how to change file permissions with chmod, but never ran into situation where root owned user ... have googled and is all about file permissions.
I tried chmod 755 /home/genfool and did not work.

2nd part is, what is a proper way to add /home after the install? my way just seems backwards.
I simply have never used a /home in the past, if anyone has suggestions, for my future use, would appreciate it.


Last edited by carpenterguy on Sun Apr 08, 2012 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun Apr 08, 2012 4:22 pm    Post subject: Reply with quote

The tool you need is "chown", look for the -R flag for recersive effects.
Back to top
View user's profile Send private message
carpenterguy
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2009
Posts: 132

PostPosted: Sun Apr 08, 2012 4:56 pm    Post subject: Reply with quote

Thank you, chown was the tip I needed. Is now repaired and all is fine.
Is the first time I ever needed to use chown, I feel it was such a noob question and embarrassed to ask .... glad I did now :D
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun Apr 08, 2012 6:24 pm    Post subject: Reply with quote

carpenterguy wrote:
Thank you, chown was the tip I needed. Is now repaired and all is fine.
Is the first time I ever needed to use chown, I feel it was such a noob question and embarrassed to ask .... glad I did now :D


We all had to learn that at some point (and probably in very similar circumstances). So, don't be ashamed.
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