[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Change Useradd Behavior



> -----Original Message-----
> From: Carlos Mennens [mailto:carloswill@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 'useradd'?
> 

No.  Sorry, when you typed useradd in your original message I read adduser.

If you're using useradd in a script, then change the UMASK value in /etc/login.defs like Tyler mentioned.

That defaults to 022, you're looking for 077.

James

Reply to: