Test 1

Last modified by nhk on 2024/01/17 10:18

NHKI (CentOS User Folder Creation) Procedure

Shape1 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:

Shape2

  1. Overview

For creating user folders on file servers that are CentOS

  1. Purpose

Instructions for creating User folders on CentOS File servers

  1. Scope

IT infrastructure Staff

  1. Procedure
    1. 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/


    1. 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.

  1. Enforcement

Those found to be in violation of this Policy shall be subject to company discipline procedures up to and including termination of employment.

  1. 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