if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

Difference Between su – su | Default File Permission Umask Value | ACL ls –l + Symbol

What Is Difference Between su – su Switch User Account
Su - >> change the path variable -> Lo gin
It will execute the /usr/sbin files
Su >> Does not change the path variables-> Non Login
So, It will not able to run or execute the files in /usr/sbin folder.
[root@usermanagement]# su rhel5
[root@usermanagement]# pwd
[root@usermanagement]# su - rhel5
[root@usermanagement]# pwd
Linux Umask Value For Root And Standard User
root umask value 022
user umask value 002
From Root Account  [root@sys /]# umask
From Standard User Account [acluser@sys ~]$ umask
Directory Default Permission 777
File Default Permission 666
root umask Directory Permission
[directory default permsssion]-[umask value]
read,write,execution - > owner
read,__,execution >group
read,__,execution >others
[root@sys home]# mkdir fol3
[root@sys home]# ll
drwxr-xr-x 2 root root 4096 May 12 21:50 fol3
Just like it is applicant for the standard user Files and Directory
root umask value 022
user umask value 002

Why ls -l Output give + Symbol For The File or Directory
If we set acl access control list in the particular file or folder.
Then when we list of the listing of directory using ls command it will show + symbol with output .
here acltest folder. I set the acl Configuration
[root@sys /]# ll
drwxr-xr-x+ 2 root root 4096 May 12 21:23 acltest
So + symbol indicate the that Folder or File set by acl
[root@sys /]# getfTacl acltest/
# file: acltest
# owner: root
# group: root

Related post