LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-15-2016, 03:32 PM   #1
iii_iii
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Rep: Reputation: Disabled
adduser with existing home directory ownership incorrect


After installing slackware with an already existing /home partition with a few users, I used adduser to add the users in /home to /etc/passwd. It told me that the users' home directory existed and asked if I wanted to change ownership to which I said yes. On the third user I added the ownership was changed to that of the second user.

This maybe a symptom of adduser and not slackware. Has anyone seen this? Should I report it as a bug?
 
Old 07-17-2016, 06:55 AM   #2
riwi
Member
 
Registered: Jul 2011
Location: Netherlands
Distribution: Slackware64 14.2
Posts: 64

Rep: Reputation: Disabled
If you check your /etc/passwd file you will see the users defined and their uid's.
Probably on the old system you had the users defined in a different order.

So the uid of the userA on the old system now matches the uid of userB on the new system.
The adduser script just took the new uid value for the old /home folder.

You can either change the uid in the passwd file or do a new chown on the /home/folder with the correct username.
 
1 members found this post helpful.
Old 07-27-2016, 11:00 AM   #3
iii_iii
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
I am puzzled by that. If I am adding a user, should it not do something like:

chown -R username /home/username

So the userid should be irrelevant. I am still more confused by two users being added both with adduser and both using the change owner option, them ending up with the same owner.

I am not sure if I will be able to see what happened now as I fixed the problem. Perhaps I will try to recreate it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-using my existing home directory Cara25 Linux - Software 3 11-18-2011 09:31 PM
how to chane the ownership of home directory?? JATA01 Linux - Server 10 10-04-2010 01:08 AM
[SOLVED] rename an existing user and his home directory cccc Debian 5 10-29-2009 11:05 AM
adduser without his home directory cccc Debian 7 07-24-2009 05:24 PM
Restoring Home Directory Ownership taylortbb Linux - General 1 08-27-2004 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration