On Monday 27 August 2007, Mick wrote: > Hi All, > > I have a box which until recently had only one user. When I created > this user as e.g. user_name1 his home became owned by > user_name1:users. This cascaded to directories below > /home/user_name1. No directory called user_name1 was created at the > time. > > More recently, I created a new user, user_name2 and the ownership > of /home/user_name2 became user_name2:user_name2 (the latter being a > group for user_name2). Is this how it should be these days? If so > then I assume that this is because of changes in the skeleton file > over the years.
There's two ways of doing this, either new users all have the same inital primary group, or they get one based on their user name. The second is preferred as homw dirs are then not open by default like they would be if they were all owned by the users groups, and the user sets a umask of 0002 You can actually do it any way you want and that suits your needs, but the current gentoo default is a sane default. CHange it if you want with the usual tools to manipulate /etc/passwd|group|shadow|gshadow > Meanwhile /home looks like this: > > drwxr-xr-x 6 root root 216 Dec 24 2006 home Yes, that is correct. Only root can create users so only root has the ability to write to /home to create the home dirs. Everyone else can still cd and ls /home, as they need that to navigate to lower directories alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- [EMAIL PROTECTED] mailing list