Re: about shadow adduser homedir creation?

"Octavio Alvarez" <[email protected]> Mon, 02 May 2005 10:53:13 -0700
Newsgroups gmane.linux.pld.shadow.general
Organization (None)
Message-ID <op.sp5tazmh4oyyg1@octavio>
On Mon, 02 May 2005 10:13:44 -0700, Eero Volotinen  
<[email protected]> wrote:

> By default it creates homedir as 755 - I think it not secure?
>
> How about making default as 700 ? I think it's more sane default. People
> that want different access, can make patch?
>
> Or possibly make it configurable?
>

I asked the same some time ago but got no answer.

I was thinking that some might want 700, other 711 (those with Apache's  
public_html
functionality), other 770 or 771 (those under the "one group per user"  
conept). I think 711
fits all three cases relatively secure. I thought adding a diretive to  
/etc/default/useradd to
set the default umask (recommending "066") and an option to override it  
would be a better
solution.

--Octavio.