file permission !!!
Dear Friends ,
I have a following little query :
First in linux environment, I create a folder 'test' and give it 755 permission. Now I want a situation , when I create a subfolder as well as a file then it gets same 755 permission (permission folloed the above folder always) .
>[root@apps ~]#mkdir test
>[root@apps ~]# ls -l|grep test
>drwxr-xr-x 2 root root 4096 Mar 29 12:31 test
>[root@apps ~]# mkdir folder
>[root@apps ~]# cd test/
>[root@apps test]# mkdir folder
>[root@apps test]# touch file1
>[root@apps test]# ls -l
>-rw-r--r-- 1 root root 0 Mar 29 12:32 file1
>drwxr-xr-x 2 root root 4096 Mar 29 12:32 folder
Here I got the 'folder' permission 755 but 'file1' permission is not 755 . How can I get 755 permission of 'file1' ?
Barring this when I copy a file from another place to this 'folder' then also I want to get same permission (755) of that file .
plz help me ... ...
Last edited by shipon_97; 03-29-2011 at 02:49 AM.