Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113663

Summary: useradd has a permissions error
Product: Gentoo Linux Reporter: Charles Christie <cchris0396>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Charles Christie 2005-11-26 14:37:57 UTC
whenever I create a new account, the home folder for that account, for some 
reason, belongs to root, and group root, not username, group users. It had me 
boggled for a whole day and wasted a lot of time! you should change useradd to 
allow the new user to actually use his or her folder! 

Reproducible: Always
Steps to Reproduce:
1.try to use useradd or any user management system for kde, xfce or gnome. 
2.add a user. 
3.try and use that user. 
 
Actual Results:  
Lots of errors, permissions were screwed 

Expected Results:  
Added a new user with the correct permissions: 
owner: username 
group: users
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-26 15:12:20 UTC
How are you adding your users? Which version of sys-apps/shadow? Also, post your
/etc/default/useradd. This definitely does not happen here...
Comment 2 Charles Christie 2005-11-26 19:22:31 UTC
i initially tried... well... i cant remember the exact string, but:
I used useradd to:
create my user, add it to the groups portage (which doesn't do anything, I still
need su to emerge stuff), games (I'm a gamer), disk, usb, video, audio and made
my main group users. I told it my shell was /bin/bash and my home was /home/chaz
(which GNOME's user add program changed to /home/$user, which did the exact same
thing but saved time). I then used passwd to change my password (while I was
logged on as root). I did the exact same steps under gnome's user manager. I'll
try and get that other info later, I'm tired.
Comment 3 Charles Christie 2005-11-26 19:22:58 UTC
Also, how do I get the info from those things you wanted?