/home partition

Place to discuss Slackware
Post Reply
shuiend
scripter
scripter
Posts: 91
Joined: Mon Apr 28, 2003 8:05 pm

/home partition

Post by shuiend » Tue Feb 03, 2004 10:08 pm

I just reinstalled slackware. I had my /home partion separate in the old one and when i installed it set up to use the partion for the new /home When i went to log in with my normal user kde gave me errors about not having permission for some folders. So i loged into root and realized that the owners for all directories and files was 1001 or root. So how do i change those back to my normal user?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Feb 03, 2004 10:28 pm

# chown -R shuiend:shuiend /home/shuiend

shuiend
scripter
scripter
Posts: 91
Joined: Mon Apr 28, 2003 8:05 pm

Post by shuiend » Wed Feb 04, 2004 5:33 am

Thanks alot for that tip.

User avatar
Calum
guru
guru
Posts: 1349
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum » Fri Feb 06, 2004 4:21 pm

redundant i am sure but this happens because different distributions use different numbers when assigning user id numbers to user names (you can check out and change these in /etc/passwd), slack begins i think at 1000 while a lot of other systems start at 500 or some other number by default.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Feb 06, 2004 4:34 pm

But even so, if you don't add the users in the same order they will be different between like distros. So as you say, you can modify the /etc/password file (or specify a user number in the useradd command). This also effects NFS connections if the user numbers are different. Thought you might be interested since you asked about setting up NFS shares in another thread.

Post Reply