On Tue, Mar 05, 2002 at 11:20:10AM -0800, Xeno Campanoli wrote: > Gary Hennigan wrote: > > "Charlie Grosvenor" <[EMAIL PROTECTED]> writes: > > > I have just used the command adduser to add some users to my system. I > > > have noticed that each user added has read rights to other users home > > > directory. Why is this? how can i stop adduser from creating home > > > directories with these permissions? > > Actually, I think you just change the permissions in the file > /etc/skel. I'm not sure though, so let us all know if that works.
Changing the permissions on the files in /etc/skel, which are copied into the new user's home directory, is very unlikely to affect the permissions on the directory they're copied into. It's interesting, though, that everyone is saying to use dpkg to reconfigure adduser... IIRC, that only works for woody and sid, where you can instead edit /etc/adduser.conf and set DIR_MODE to whatever permissions you want (0755, 0700, 0750 seem like reasonable choices) for user home directories. potato doesn't appear to have a config switch to control this, but /usr/sbin/adduser is just a shell script, so you can search through it for the string "0755" and change it - although this will have to be repeated whenever you install a new version of adduser. -- When we reduce our own liberties to stop terrorism, the terrorists have already won. - reverius Innocence is no protection when governments go bad. - Tom Swiss