CHMOD and CHGRP for Linux

root@ServerNaam orawxc_test]# chgrp -R dba xml
[root@ServerNaam orawxc_test]# chmod 2777 xml
[root@ServerNaam orawxc_test]# cd xml
[root@ServerNaam xml]# ls -l
total 8
drwxr-xr-x 2 root dba 4096 Feb 12 12:32 in
drwxr-xr-x 2 root dba 4096 Feb 12 12:32 out
[root@ServerNaam xml]# touch hoi.txt
[root@ServerNaam xml]# ls
hoi.txt  in  out
[root@ServerNaam xml]# ls -l
total 8
-rw-r--r-- 1 root dba    0 Feb 12 12:41 hoi.txt
drwxr-xr-x 2 root dba 4096 Feb 12 12:32 in
drwxr-xr-x 2 root dba 4096 Feb 12 12:32 out
[root@ServerNaam xml]# chmod -R 2777 xml
chmod: cannot access `xml': No such file or directory
[root@ServerNaam xml]# cd..
-bash: cd..: command not found
[root@ServerNaam xml]# cd ..
[root@ServerNaam orawxc_test]# chmod -R 2777 xml
[root@ServerNaam orawxc_test]# cd xml
[root@ServerNaam xml]# ls
hoi.txt  in  out
[root@ServerNaam xml]# ls -l
total 8
-rwxrwsrwx 1 root dba    0 Feb 12 12:41 hoi.txt
drwxrwsrwx 2 root dba 4096 Feb 12 12:32 in
drwxrwsrwx 2 root dba 4096 Feb 12 12:32 out
[root@ServerNaam xml]# touch hallo.txt
[root@ServerNaam xml]# ls
hallo.txt  hoi.txt  in  out
[root@ServerNaam xml]# ls -l
total 8
-rw-r--r-- 1 root dba    0 Feb 12 12:42 hallo.txt
-rwxrwsrwx 1 root dba    0 Feb 12 12:41 hoi.txt
drwxrwsrwx 2 root dba 4096 Feb 12 12:32 in
drwxrwsrwx 2 root dba 4096 Feb 12 12:32 out
[root@ServerNaam xml]# cd in
[root@ServerNaam in]# touch hoi.txt
[root@ServerNaam in]# ls -l
total 0
-rw-r--r-- 1 root dba 0 Feb 12 12:43 hoi.txt

Comments are closed.