- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/skel/.profile
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
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
тАО05-21-2009 03:06 AM
тАО05-21-2009 03:06 AM
What's /etc/skel/.profile and how does it interact with /etc/profile and .profile.
My reason for asking is I am trying to find out how my server is inheriting a umask of 027 when /etc/profile has a setting of 007 and .profile has no umask setting.
It could be a custom script setting the umask but I want to rule out /etc/skel/.profile.
Points will be assigned to all appropiate responses.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2009 03:15 AM
тАО05-21-2009 03:15 AM
Re: /etc/skel/.profile
When you create a new user the contents of the /etc/skel directoy will be copied to the home directory of the user.
Before a user logs into the shell, the /etc/profile is executed by default.
On successful login, the .profile (which is present in the user's home directory) will be executed.
The umask can be set in the /etc/profile or ~/.profile
Also the umask can be set on a terminal or an application ( like some 3rd party terminal emulators) that is used to open the shell to login.
These are some possibilites. You may want to check those.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2009 03:18 AM
тАО05-21-2009 03:18 AM
Re: /etc/skel/.profile
>>What's /etc/skel/.profile and how does it interact with /etc/profile and .profile.
When you create a new user at that time these #4 no of files (.profile, .cshrc, .kshrc, .login) are copied from /etc/skel to the new users home directiory.
/etc/profile :- this file is execute for every user who is login to the server.
If you want to set umask then open your .profile and at the last line put the entry "umask 027"
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2009 03:18 AM
тАО05-21-2009 03:18 AM
Re: /etc/skel/.profile
Check if you've got any shell script/Program in $HOME/.profile which may be overwriting umask.
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2009 03:21 AM
тАО05-21-2009 03:21 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2009 03:25 AM
тАО05-21-2009 03:25 AM