- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- homedir permission
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
тАО06-06-2002 10:37 AM
тАО06-06-2002 10:37 AM
homedir permission
I set up umask as 027 within the /etc/profile. But why when I create a new user, its home directory permission is 755?
But any directories I created under this homedir, the permission is the same as what I think, 750...
Crystal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 10:40 AM
тАО06-06-2002 10:40 AM
Re: homedir permission
How are you creating the user?
The creation process is setting permissions on the home directory without regard to your umask.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 11:35 AM
тАО06-06-2002 11:35 AM
Re: homedir permission
Before adding the users, check the umask with:
# umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 11:39 AM
тАО06-06-2002 11:39 AM
Re: homedir permission
I put the umask in /etc/profile as 027 and logged out and logged on...
Then ran the command "useradd -m test", and check the permission of /home/test, it is
drwxr-xr-x.
I tried several systems and they gave me the same result...
Crystal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 11:45 AM
тАО06-06-2002 11:45 AM
Re: homedir permission
I did another test:
1.Change the umask from 027 to 022 in /etc/profile, log out and log on.
2. useradd -m testnew
3. the new homedir is the same 755
If it is true that no matter what the umask is, it won't change the home directory's permission.
Now my question is :
Can I change this defaul setting to make the new created homedir 750?
Tx, Crystal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 11:46 AM
тАО06-06-2002 11:46 AM
Re: homedir permission
Did you try creating with sam ? are you getting the same result there ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 11:47 AM
тАО06-06-2002 11:47 AM
Re: homedir permission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 11:50 AM
тАО06-06-2002 11:50 AM
Re: homedir permission
# umask ( display current umask)
During my test, the HOME directory was created depend on the umask. So I believe the same.
Setting permission to $HOME directories is up on your wish. But if you share the same HOME directory with another user/group, then set the permission accordingly. To change permission:
# chmod
# chown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 12:10 PM
тАО06-06-2002 12:10 PM
Re: homedir permission
You have to be careful using useradd because it also does a "chown -R" to change the ownership of the files in the home directory.
I had an SA who set up a pseudo root account with / as his home directory. All the files on the system were subsequently owned by him. This was a pop3 mail server. Mail delivery was broken until I restored the files to their proper owners.
Marty
P.S. The SA now has a nickname of "chown boy".
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2002 12:35 PM
тАО06-06-2002 12:35 PM