Re: Change Useradd Behavior

2010-03-17 Thread Stephen Powell
On Wed, 17 Mar 2010 14:02:02 -0400 (EDT), Carlos Mennens wrote: > On Wed, Mar 17, 2010 at 1:50 PM, Stephen Powell wrote: >> First of all, "useradd" should not be invoked directly.  I suggest the >> "adduser" frontend to useradd.  Second, /etc/profile, the system-wide >> bash profile, contains a se

Re: Change Useradd Behavior

2010-03-17 Thread Tyler MacDonald
Carlos Mennens wrote: > I have never heard this before in years or using Linux. I am not > saying you're wrong but I would just like to know why I should not use > 'useradd' rather than 'adduser'. I assumed that it was just personal > preference for which you preferred to use but I could be wrong

Re: Change Useradd Behavior

2010-03-17 Thread Carlos Mennens
On Wed, Mar 17, 2010 at 1:50 PM, Stephen Powell wrote: > First of all, "useradd" should not be invoked directly.  I suggest the > "adduser" frontend to useradd.  Second, /etc/profile, the system-wide > bash profile, contains a setting for the default umask.  Perhaps this > is what you want to chan

RE: Change Useradd Behavior

2010-03-17 Thread James Zuelow
> -Original Message- > From: Carlos Mennens [mailto:carlosw...@gmail.com] > Sent: Wednesday, 17 March, 2010 09:50 > To: Debian > Subject: Re: Change Useradd Behavior > > If I change the DIR_MODE=0700 in /etc/adduser.conf, will that also be > honored when using &

Re: Change Useradd Behavior

2010-03-17 Thread Stephen Powell
On Wed, 17 Mar 2010 13:35:39 -0400 (EDT), Carlos Mennens wrote: > > I would like to know if it's possible when creating a new user with > the '/usr/sbin/useradd' script to set the users home directory > permissions to 700 rather than the Debian default of 755? I don't > understand why Debian does

Re: Change Useradd Behavior

2010-03-17 Thread Carlos Mennens
If I change the DIR_MODE=0700 in /etc/adduser.conf, will that also be honored when using 'useradd'? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/d80f793f1003171049

Re: Change Useradd Behavior

2010-03-17 Thread Tyler MacDonald
Carlos, If you set the default umask in /etc/login.defs , "useradd" will obey this when creating home directories. Try setting "UMASK 077" in /etc/login.defs . Alternately, you can user the higher level "adduser" tool, which has it's own configuration setting for world-readable home directories (

RE: Change Useradd Behavior

2010-03-17 Thread James Zuelow
> -Original Message- > From: Carlos Mennens [mailto:carlosw...@gmail.com] > Sent: Wednesday, 17 March, 2010 09:36 > To: Debian > Subject: Change Useradd Behavior > > I would like to know if it's possible when creating a new user with > the '/usr/sbin/useradd' script to set the users hom