Re: Default valid shells and home dir permissions

2012-01-12 Thread Mike Mestnik
On 01/12/12 16:16, Karl Goetz wrote: > On Thu, 12 Jan 2012 11:19:41 +0100 > Poison Bit wrote: > >> On Thu, Jan 12, 2012 at 7:48 AM, Davit Avsharyan >> wrote: >>> I know how to change it :). I just wanted to understand why it >>> comes with 755 and not 700 ? >>> Few years ago, if I'm not mistaken,

Re: Default valid shells and home dir permissions

2012-01-12 Thread Karl Goetz
On Thu, 12 Jan 2012 11:19:41 +0100 Poison Bit wrote: > On Thu, Jan 12, 2012 at 7:48 AM, Davit Avsharyan > wrote: > > I know how to change it :). I just wanted to understand why it > > comes with 755 and not 700 ? > > Few years ago, if I'm not mistaken, everything was 700. > > No less than 9 yea

Re: Default valid shells and home dir permissions

2012-01-12 Thread Mike Mestnik
On 01/12/12 04:19, Poison Bit wrote: > On Thu, Jan 12, 2012 at 7:48 AM, Davit Avsharyan wrote: >> I know how to change it :). I just wanted to understand why it comes with >> 755 and not 700 ? >> Few years ago, if I'm not mistaken, everything was 700. The commit log(2000) is: Load adduser-3.12 int

Re: Default valid shells and home dir permissions

2012-01-12 Thread Poison Bit
On Thu, Jan 12, 2012 at 5:11 PM, Chris Davies wrote: > Poison Bit wrote: >> Why filter to those in /etc/shells ? I mean... the filter should be >> applied by the system :) > > Mainly because it's a convenient list of "real" shells, and some of the > remote service applications require a shell to

Re: Default valid shells and home dir permissions

2012-01-12 Thread Chris Davies
Poison Bit wrote: > Why filter to those in /etc/shells ? I mean... the filter should be > applied by the system :) Mainly because it's a convenient list of "real" shells, and some of the remote service applications require a shell to be in that list. FTP is one such that springs to mind. As a cou

Re: Default valid shells and home dir permissions

2012-01-12 Thread Poison Bit
On Thu, Jan 12, 2012 at 12:26 PM, Chris Davies wrote: > Davit Avsharyan wrote: >> 1/  I'm wondering why most of the system users have valid shells by >> default ? >> /cat /etc/passwd | grep -E '(sh|bash)' | wc -l >> *21*/ > > That's not necessarily sufficient to determine valid shells: the absenc

Re: Default valid shells and home dir permissions

2012-01-12 Thread Chris Davies
Davit Avsharyan wrote: > 1/ I'm wondering why most of the system users have valid shells by > default ? > /cat /etc/passwd | grep -E '(sh|bash)' | wc -l > *21*/ That's not necessarily sufficient to determine valid shells: the absence of a shell definition implies the use of /bin/sh, so you need

Re: Default valid shells and home dir permissions

2012-01-12 Thread Poison Bit
On Thu, Jan 12, 2012 at 7:48 AM, Davit Avsharyan wrote: > I know how to change it :). I just wanted to understand why it comes with > 755 and not 700 ? > Few years ago, if I'm not mistaken, everything was 700. No less than 9 years. In 2003 I see the 755: http://anonscm.debian.org/viewvc/add

Re: Default valid shells and home dir permissions

2012-01-11 Thread Davit Avsharyan
I know how to change it :). I just wanted to understand why it comes with 755 and not 700 ? Few years ago, if I'm not mistaken, everything was 700. TRJ On 12/01/12 4:49 AM, Jordon Bedwell wrote: On Wed, Jan 11, 2012 at 3:37 AM, Kees de Jong wrote: For the home dirs try this: dpkg-reconfigure

Re: Default valid shells and home dir permissions

2012-01-11 Thread Karl Goetz
On Wed, 11 Jan 2012 13:05:11 +0400 Davit Avsharyan wrote: > Hi ppl., > > 1/ I'm wondering why most of the system users have valid shells by > default ? > > /cat /etc/passwd | grep -E '(sh|bash)' | wc -l > *21*/ I've been wondering this too. If they're meant to be like that, I'm forced to wond

Re: Default valid shells and home dir permissions

2012-01-11 Thread Jordon Bedwell
On Wed, Jan 11, 2012 at 3:37 AM, Kees de Jong wrote: > For the home dirs try this: dpkg-reconfigure adduser. Then choose 'no'. I > think that should do the trick. I am on my Android right now so I can't > check it for you. > > -- > Met vriendelijke groet, > Kees de Jong > > On Jan 11, 2012 10:09 A

Re: Default valid shells and home dir permissions

2012-01-11 Thread Kees de Jong
For the home dirs try this: dpkg-reconfigure adduser. Then choose 'no'. I think that should do the trick. I am on my Android right now so I can't check it for you. -- Met vriendelijke groet, Kees de Jong On Jan 11, 2012 10:09 AM, "Davit Avsharyan" wrote: > Hi ppl., > > 1/ I'm wondering why mos

Default valid shells and home dir permissions

2012-01-11 Thread Davit Avsharyan
Hi ppl., 1/ I'm wondering why most of the system users have valid shells by default ? /cat /etc/passwd | grep -E '(sh|bash)' | wc -l *21*/ 2/ Why, by default, new users' home directories have 755 ? Every time I create a new account, I have to change it to 700. Why it's like this ? any speci