How To
Summary
RBAC does not work for 'cat, csum, tail' and related commands. How can I extend user access for restricted files?
Objective
- AIX V6 Advanced Security Features Introduction and Configuration:
- IBM Documentation: Security-> Securing the base operating system->Role-based access control
Steps
|
# mkdir /secureDir
# touch /secureDir/secureFile # chown -R root.security /secureDir # chmod -R 770 /secureDir # ls -al secureDir total 8
drwxr-x--- 2 root security 256 Mar 18 10:49 . drwxr-xr-x 25 root system 4096 Mar 18 10:49 .. -rwxr-x--- 1 root security 0 Mar 18 10:49 secureFile |
| # mkauth testauth # mkrole authorizations=testauth testrole # setkst # chuser roles=testrole testuser # setsecattr -f writeauths=testauth /secureDir/secureFile |
|
# login testuser
# swrole testrole # pvi /secureDir/secureFile -->OK
# vi /secureDir/secureFile
"/secureDir/secureFile" The file access permissions do not allow the specified action. # cat /secureDir/secureFile
cat: 0652-050 Cannot open /secureDir/secureFile.
|
The RBAC writeauths or readauths authorities for a file grant ONLY pvi edit capabilities. There are three options to access to the file:
| # usermod -G security testuser |
|
# chmod 777 /secureDir/secureFile (allow read/write)
or
# chmod 755 /secureDir/secureFile (allow read)
|
|
# acledit /secureDir
extended permissions enabled permit rwx u:testuser --> Should the modified ACL be applied? (yes) or (no) yes |
|
# acledit /secureDir/secureFile
extended permissions enabled permit rw- u:testuser --> Should the modified ACL be applied? (yes) or (no) yes
|
Additional Information
| SUPPORT |
|---|
|
If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract. 1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: 4. Provide a clear, concise description of the issue. - For guidance, see: Working with IBM AIX Support: Describing the problem. 5. If the system is accessible, collect a system snap, and upload all of the details and data for your case. - For guidance, see: Working with IBM AIX Support: Collecting snap data |
Related Information
Was this topic helpful?
Document Information
Modified date:
06 September 2023
UID
ibm16433581