Test 1
NHKI (CentOS User Folder Creation) Procedure
PROCEDURE: CentOS User Folder Creation NUMBER: IT-01-02-xxxx
DEPARTMENT: Information Technology DATE: April 2020
AUTHOR: Cody Smiley REVISION: N
APPROVAL: James Green SUPERSEDES:
- Overview
For creating user folders on file servers that are CentOS
- Purpose
Instructions for creating User folders on CentOS File servers
- Scope
IT infrastructure Staff
- Procedure
- Creating the folder and adding permissions
I will be using the Mexico for my example.
To find the template used for setup run the below script
vim /data/userfolder.sh
Create the user folder
mkdir /data/nsm/Users/user.name/
Using the template put the user name in the highlighted locations and run each line.
chmod -R 700 /data/nsm/Users/user.name/
setfacl -Rb /data/nsm/Users/user.name/
setfacl -Rm u:user.name:rwx /data/nsm/Users/user.name/
setfacl -Rm d:u:user.name:rwx /data/nsm/Users/user.name/
- Updating the user folder script.
Run the below command to add the lines of code in to the script
vim /data/userfolder.sh
Scroll to the bottom and press “i” to edit/insert the below lines
chmod -R 700 /data/nsm/Users/user.name/
setfacl -Rb /data/nsm/Users/user.name/
setfacl -Rm u:user.name:rwx /data/nsm/Users/user.name/
setfacl -Rm d:u:user.name:rwx /data/nsm/Users/user.name/
When finished press “Esc” to exit the insert mode and “:wq” to save and exit the vim session.
- Enforcement
Those found to be in violation of this Policy shall be subject to company discipline procedures up to and including termination of employment.
- Revision History
Jurisdiction: This policy shall be managed, controlled, and enforced by the company management representative for information security or company officers.
Commencement and Initial Release: This Policy shall commence from date
Hereafter below, revision number and date shall be recorded.
REVISION LEVEL | REVISION DATE | REVISION DESCRIPTION | APPROVED BY |
1 | |||
2 | |||
3 | |||
4 |
Page 2 of 2
IT-01-02-xxxx