- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: remsh does not preserve the umask settings at ...
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
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
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
тАО03-20-2008 09:33 AM
тАО03-20-2008 09:33 AM
remsh does not preserve the umask settings at the remote node
adedd75n#remsh adedd76n -n "umask 022;ln -s /home/chakls/ff /home/chakls/pp"
adedd75n:root [/home/chakls]
adedd76n:root [/home/chakls] ll pp
lrwxr-xr-x 1 root root 15 Mar 20 08:42 pp -> /home/chakls/ff
adedd76n:root [/home/chakls]
If i dont specify the umask then the link files are getting created by 777 even though the umask values are 022 on both local and REMOTE servers.
This was not happening earlier. Just noticed and dont know of any changes.
any one seen this befor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 09:59 AM
тАО03-20-2008 09:59 AM
Re: remsh does not preserve the umask settings at the remote node
On an non-trusted system, the default umask is 000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 10:05 AM
тАО03-20-2008 10:05 AM
Re: remsh does not preserve the umask settings at the remote node
if you execute remsh with your system name and umask, you get the DEFAULT for the system type (in /etc/profile) you have regardless of the umask that you set when files are created. This is a security measure built into the OS On "trusted" systems, the default umask for remote access is 066.
On an non-trusted system, the default umask is 000.
#grep -i umask /etc/profile
umask 0022
all are trusted systems.
All soft links (ln -s) getting created with 777 if umask is not passed explicitly as mentioned above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 10:45 AM
тАО03-20-2008 10:45 AM
Re: remsh does not preserve the umask settings at the remote node
Links are a little different.
Have you looked at this thread?
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=956122
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 12:11 PM
тАО03-20-2008 12:11 PM
Re: remsh does not preserve the umask settings at the remote node
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 06:53 PM
тАО03-20-2008 06:53 PM
Re: remsh does not preserve the umask settings at the remote node
If you don't specify umask, you get some umask value that isn't yours. Your .profile isn't being executed and neither is /etc/profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2008 07:06 AM
тАО03-22-2008 07:06 AM
Re: remsh does not preserve the umask settings at the remote node
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2008 11:58 AM
тАО03-22-2008 11:58 AM
Re: remsh does not preserve the umask settings at the remote node
Did you change any security settings?
In any case, you should only use remsh to look and not touch. Use rlogin for extensive tasks.
Or you need to bulletproof your scripts used in remsh.
Here are some links about umask and remsh:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1150173
And some external ones:
http://unix.ittoolbox.com/groups/technical-functional/unix-security-l/users-default-umask-in-itanium-64-box-1545802
http://www.unix.com/unix-advanced-expert-users/2792-issues-umask.html