Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.1 | 1 | NHKI (CentOS User Folder Creation) Procedure |
2 | |||
3 | {{id name="_GoBack"/}}[[image:CentOS_user_folder_bd87ac71b70ce0a1.gif||alt="Shape1"]] PROCEDURE: CentOS User Folder Creation NUMBER: IT-01-02-xxxx | ||
4 | |||
5 | DEPARTMENT: Information Technology DATE: April 2020 | ||
6 | |||
7 | AUTHOR: Cody Smiley REVISION: N | ||
8 | |||
9 | APPROVAL: James Green SUPERSEDES: | ||
10 | |||
11 | [[image:CentOS_user_folder_bd87ac71b70ce0a1.gif||alt="Shape2"]] | ||
12 | \\ | ||
13 | |||
14 | 1. **Overview** | ||
15 | |||
16 | For creating user folders on file servers that are CentOS | ||
17 | |||
18 | 1. **Purpose** | ||
19 | |||
20 | Instructions for creating User folders on CentOS File servers | ||
21 | |||
22 | 1. **Scope** | ||
23 | |||
24 | IT infrastructure Staff | ||
25 | |||
26 | 1. **Procedure** | ||
27 | 11. **Creating the folder and adding permissions** | ||
28 | |||
29 | I will be using the Mexico for my example. | ||
30 | |||
31 | {{id name="_Hlk101347766"/}}To find the template used for setup run the below script | ||
32 | |||
33 | vim /data/userfolder.sh | ||
34 | |||
35 | Create the user folder | ||
36 | |||
37 | mkdir /data/nsm/Users/user.name/ | ||
38 | |||
39 | Using the template put the user name in the highlighted locations and run each line. | ||
40 | |||
41 | chmod -R 700 /data/nsm/Users/user.name/ | ||
42 | |||
43 | setfacl -Rb /data/nsm/Users/user.name/ | ||
44 | |||
45 | setfacl -Rm u:user.name:rwx /data/nsm/Users/user.name/ | ||
46 | |||
47 | {{id name="_Hlk101348049"/}}setfacl -Rm d:u:user.name:rwx /data/nsm/Users/user.name/ | ||
48 | |||
49 | 1. | ||
50 | 11. **Updating the user folder script.** | ||
51 | |||
52 | Run the below command to add the lines of code in to the script | ||
53 | |||
54 | vim /data/userfolder.sh | ||
55 | |||
56 | Scroll to the bottom and press “i” to edit/insert the below lines | ||
57 | |||
58 | chmod -R 700 /data/nsm/Users/user.name/ | ||
59 | |||
60 | setfacl -Rb /data/nsm/Users/user.name/ | ||
61 | |||
62 | setfacl -Rm u:user.name:rwx /data/nsm/Users/user.name/ | ||
63 | |||
64 | setfacl -Rm d:u:user.name:rwx /data/nsm/Users/user.name/ | ||
65 | |||
66 | When finished press “Esc” to exit the insert mode and “:wq” to save and exit the vim session. | ||
67 | |||
68 | 1. **Enforcement** | ||
69 | |||
70 | Those found to be in violation of this Policy shall be subject to company discipline procedures up to and including termination of employment. | ||
71 | |||
72 | 1. **Revision History** | ||
73 | |||
74 | Jurisdiction: This policy shall be managed, controlled, and enforced by the company management representative for information security or company officers. | ||
75 | |||
76 | Commencement and Initial Release: This Policy shall commence from date | ||
77 | |||
78 | Hereafter below, revision number and date shall be recorded. | ||
79 | |||
80 | |||
81 | |((( | ||
82 | **REVISION** | ||
83 | |||
84 | **LEVEL** | ||
85 | )))|((( | ||
86 | **REVISION** | ||
87 | |||
88 | **DATE** | ||
89 | )))|((( | ||
90 | **REVISION** | ||
91 | |||
92 | **DESCRIPTION** | ||
93 | )))|((( | ||
94 | **APPROVED** | ||
95 | |||
96 | **BY** | ||
97 | ))) | ||
98 | |**1**||| | ||
99 | |**2**||| | ||
100 | |**3**||| | ||
101 | |**4**||| | ||
102 | |||
103 | Page **2** of **2** | ||
104 | |||
105 | IT-01-02-xxxx |