- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: permission problem in home directory when crea...
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-23-2009 06:30 AM
тАО03-23-2009 06:30 AM
I am using RHEL4. I used "useradd" command to create a user.
# useradd john
or
# useradd -m john
# cd /home
# ll -d john
d--------- 2 john john 96 Mar 23 09:16 john
so there is no permission (rwx) set in this directory.
I am getting following error. If i try to change the permission thru "root" user.
# chmod 755 -R john
chmod: changing permissions of `john': Operation not permitted
chmod: `john': Permission denied
All the users home directories are created in same way.
So pls help to solve this problem.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 08:37 AM
тАО03-23-2009 08:37 AM
Re: permission problem in home directory when creating users with useradd
There is some other issue with security.
By default there should be some default rights to User (newly created).
There is issue with security policy applied with your system.
First you have to check security policy.
There may be some other issue with new user add is linked with other policy.
Regards,
Gokul Chandola
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 09:04 AM
тАО03-23-2009 09:04 AM
Re: permission problem in home directory when creating users with useradd
maybe you should do it as 'root' or 'administrator'.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 09:41 AM
тАО03-23-2009 09:41 AM
Solution- umask
- ls -ldZ /home
I suspect the selinux context of /home may be incorrect. It should be:
system_u:object_r:home_root_t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 09:45 AM
тАО03-23-2009 09:45 AM
Re: permission problem in home directory when creating users with useradd
what is the result of (all executed by root):
- ls -ld /home
- cd /home; mkdir newdir; ls -ld newdir
- umask
- which useradd (or type useradd)
JP