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.
Example
[root@usermanagement]# su rhel5
[root@usermanagement]# pwd
/root
[root@usermanagement]# su - rhel5
[root@usermanagement]# pwd
/home/rhel5
Linux Umask Value For Root And Standard User
root umask value 022
user umask value 002
From Root Account  [root@sys /]# umask
0022
From Standard User Account [acluser@sys ~]$ umask
0002
Directory Default Permission 777
File Default Permission 666
root umask Directory Permission
[directory default permsssion]-[umask value]
777-022=755
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 .
Example
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
user::rwx
user:acluser:r--
group::r-x
mask::r-x
other::r-x

Post a Comment

0 Comments