- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: umask difference between login and su -
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
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
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
10-14-2003 07:29 AM
10-14-2003 07:29 AM
umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 07:42 AM
10-14-2003 07:42 AM
Re: umask difference between login and su -
It is being set by the .profile file for user oracle, or in one of the configuration files that .profile reads.
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
10-14-2003 07:43 AM
10-14-2003 07:43 AM
Re: umask difference between login and su -
I don't understand completely what you're trying to say. Is it: If you're , for example, logged in as root and then do a "su - oracle" the umask is going to be different than when you log in as oracle? It should be the same.
Check the user .profile. Maybe there's a line in there specifying the umask.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 07:47 AM
10-14-2003 07:47 AM
Re: umask difference between login and su -
find /home -exec grep -li 'umask' {} \;
umask is getting set somewhere, you need to trace in and figure out where its being set. Also check /etc/profile
I bet there is a conflict between .profile or something in the chain and /etc/profile
su - is supposed to load the SAME environment as a straight login.
su without the dash does not load the environment or umask settings.
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
10-14-2003 07:49 AM
10-14-2003 07:49 AM
Re: umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 08:06 AM
10-14-2003 08:06 AM
Re: umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 04:42 PM
10-14-2003 04:42 PM
Re: umask difference between login and su -
/etc/profile --system wide file
.profile-placed in users home dir
Also check any script placed inside these files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 07:18 PM
10-14-2003 07:18 PM
Re: umask difference between login and su -
PHKL_23226:
( SR: 8606175710 CR: JAGad44950 )
umask(1) may incorrectly set file permission bits.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 07:18 PM
10-14-2003 07:18 PM
Re: umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 07:23 PM
10-14-2003 07:23 PM
Re: umask difference between login and su -
# umask 7077
sh: umask: The specified number is not valid for this command.
7077 is an illegal umask. You cannot set that from user land. :-)
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 01:18 AM
10-15-2003 01:18 AM
Re: umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 03:13 AM
10-15-2003 03:13 AM
Re: umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 03:48 AM
10-15-2003 03:48 AM
Re: umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 04:07 AM
10-15-2003 04:07 AM
Re: umask difference between login and su -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 04:54 AM
10-15-2003 04:54 AM
Re: umask difference between login and su -
Check and see if the umash is being set using .profile or some other script. If it is being set using .profile then it should be set to the required umash setting when you do a su - user.
Hope this helps.
Regds