Bug 139433
| Summary: | SELinux FAQ - resultes of id -Z for root incorrect for targeted policy | ||
|---|---|---|---|
| Product: | [Retired] Fedora Documentation | Reporter: | Karsten Wade <kwade> |
| Component: | selinux-faq | Assignee: | Karsten Wade <kwade> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Tammy Fox <tammy.c.fox> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | devel | CC: | rahulsundaram |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#id3522132 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-12-31 18:00:51 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 118757 | ||
|
Description
Karsten Wade
2004-11-15 22:36:12 UTC
*** Bug 142182 has been marked as a duplicate of this bug. *** Added in 1.3-5, coming live Real Soon Now (TM). ## The Q/A Q: How can I create a new Linux user account with the user's home directory having the proper context? A: You can create your new user with the standard useradd command, but first you must become root with a context of sysadm_r. This context switch has been incorporated into the su command and occurs automatically: su - root id -Z root:system_r:unconfined_t useradd auser ls -Z /home drwx------ auser auser root:object_r:user_home_dir_t /home/auser The initial context for a new user directory has an identity of root. Subsequent relabeling of the file system will change the identity to system_u. These are functionally the same since the role and type are identical (object_r:user_home_dir_t.) ## 30 ## |