Skip to main content

Posts

Showing posts with the label Permissions

Directory Default Permissions In Linux

Hi All, Find the below steps to give the default permissions on the creating files or folders on fly.  Step 1 ------- [root@CentOS62STM64bit test_dir]# useradd test_user [root@CentOS62STM64bit test_dir]# passwd test_user Step 2 ------ groupadd test_group Step 3 ------ [root@CentOS62STM64bit test_dir]# usermod -G test test_user Step 4 ------ [root@CentOS62STM64bit test_dir]# su - test_user [test_user@CentOS62STM64bit ~]$ mkdir test Step 5 ------ [test_user@CentOS62STM64bit ~]$ chgrp -R test_group test/ Step 6 ------ [test_user@CentOS62STM64bit test]$ setfacl -d -m u::rwx,g::rwx,o::rwx test/ Step 7 ------ [test_user@CentOS62STM64bit test]$ touch abcd Step 8 ------ [test_user@CentOS62STM64bit test]$ ls -lrth rw-rw-rw. 1 test_user test_user 0 Apr 30 23:48 abcd --Dinesh