- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- different umask for ssh and telnet
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2005 10:24 PM
тАО02-28-2005 10:24 PM
different umask for ssh and telnet
on our systems I found an interesting effect with the login behaviour. There seems to be a difference in the umask output when logging on via ssh or telnet at least for the csh shell.
I varied the user shell from ksh to csh, logged in with ssh and telnet and verified the settings with the umask command:
In detail I found
user has csh:
umask 027 for ssh connection
umask 077 for telnet connection
user has ksh
umask 027 for ssh connection
umask 027 for telnet connection
As our general settings are as follows the behaviour for ksh are clear to me:
/sbin/rc umask 022
/etc/profile umask 027
/etc/csh.login no umask specified
$HOME/.cshrc no umask specified
Also in the sshd_config and telnetd config in the /etc/inetd.conf no umask settings are specified.
Can someone help me to understand, why the umask is 077 when logging on to the csh via telnet ?
Thanks in advance
Johannes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2005 11:54 PM
тАО02-28-2005 11:54 PM
Re: different umask for ssh and telnet
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 12:26 AM
тАО03-01-2005 12:26 AM
Re: different umask for ssh and telnet
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 01:01 AM
тАО03-01-2005 01:01 AM
Re: different umask for ssh and telnet
What is confusing to me is that there is a difference in the umask when logging in with ssh instead of telnet. But only for csh.
Where does this come from ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 01:08 AM
тАО03-01-2005 01:08 AM
Re: different umask for ssh and telnet
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 02:18 AM
тАО03-01-2005 02:18 AM
Re: different umask for ssh and telnet
But from my perspective with ssh I get the correct umask setting.
I do not understand where the 077 comes from when logging in via telnet to the csh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 02:31 AM
тАО03-01-2005 02:31 AM
Re: different umask for ssh and telnet
NOTE: If you're using a workstation (and Xwindows/CDE) rather than a server, then the default is to bypass all Unix profiles. To restore normal Unix behavior, you can set the Xresource value *loginShell to true. Create a .Xdefaults file with:
echo "*loginShell:true" >> $HOME/.Xdefaults
Now all the terminal windows (xterm, hpterm, dtterm) will go through a normal login profile.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 09:47 PM
тАО03-03-2005 09:47 PM
Re: different umask for ssh and telnet
Thanks for all Your inputs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2005 09:50 PM
тАО03-03-2005 09:50 PM