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 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 for files >> /etc/login.defs >> /etc/pam.d/login >> /etc/pam.d/ssh >> /etc/ssh/sshd_config >> in both hosts are same >> >> What can be reason the umask are different in normal user when ssh in >> notty mode? >> >> Thanks. >> >> Regards, >> Ding Honghui > > Have you checked that users .bash_profile, that would be my first guess.. > > Jeff > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org