Re: umask problem

2009-02-07 Thread Ding Honghui
Boyd Stephen Smith Jr. wrote: > On Wednesday 04 February 2009 20:55:50 Ding Honghui wrote: >> Bash will not read the profile when in notty mode. >> The /etc/profile and .bash_profile both set the umask to 022, so after >> login, the hostA and hostB any user have same umask. >> The problem occurs in

Re: umask problem

2009-02-05 Thread Boyd Stephen Smith Jr.
On Wednesday 04 February 2009 20:55:50 Ding Honghui wrote: > Bash will not read the profile when in notty mode. > The /etc/profile and .bash_profile both set the umask to 022, so after > login, the hostA and hostB any user have same umask. > The problem occurs in notty mode. Perhaps .bashrc then?

Re: umask problem

2009-02-04 Thread Ding Honghui
Hello Jeff, Bash will not read the profile when in notty mode. The /etc/profile and .bash_profile both set the umask to 022, so after login, the hostA and hostB any user have same umask. The problem occurs in notty mode. Regards, Ding Honghui Jeff D wrote: > On Thu, 5 Feb 2009, Ding Honghui wrot

Re: umask problem

2009-02-04 Thread Jeff D
On Thu, 5 Feb 2009, Ding Honghui wrote: > Hello list, > > I encounter a problem and can't finger out why it is: > > For hostA > 1. ssh u...@hosta umask shows 0022 > 2. ssh r...@hosta umask shows 0022 > For hostB > 3. ssh u...@hostb umask shows 0077 > 4. ssh r...@hostb umask shows 0022 > > md5sum f

umask problem

2009-02-04 Thread Ding Honghui
Hello list, I encounter a problem and can't finger out why it is: For hostA 1. ssh u...@hosta umask shows 0022 2. ssh r...@hosta umask shows 0022 For hostB 3. ssh u...@hostb umask shows 0077 4. ssh r...@hostb umask shows 0022 md5sum for files /etc/login.defs /etc/pam.d/login /etc/pam.d/ssh /etc/