Skip to main content

Thread: Command line permissions


i wondering if there command let me change permissions on every file , directory located within directory. example if wanted change permissions 777 every file , directory in .thunderbird directory , contains. don't want have change permissions on 50 items separately.

code:
opensage@opensageue:~/permtest01$ chmod 775 subdir01  opensage@opensageue:~/permtest01$ ls -l  total 8  drwxrwxr-x 2 opensage opensage 4096 2011-11-28 16:38 subdir01  drwxr-xr-x 2 opensage opensage 4096 2011-11-28 16:39 subdir02  opensage@opensageue:~/permtest01$ ls -l subdir01  total 0  -rw-r--r-- 1 opensage opensage 0 2011-11-28 16:30 file01  -rw-r--r-- 1 opensage opensage 0 2011-11-28 16:30 file02  -rw-r--r-- 1 opensage opensage 0 2011-11-28 16:30 file03  -rw-r--r-- 1 opensage opensage 0 2011-11-28 16:30 file04
in above code command change of permissions contained in subdir01 .... sure there must code that, don't know is.

quote posted opensage view post
...for example if wanted change permissions 777 every file , directory in .thunderbird directory , contains.
terminal >
code:
find `pwd` .thunderbird/ -type f -exec chmod 777 {} \;
or
code:
find .thunderbird/ -type f -exec chmod 777 {} \;
or
code:
chmod 777 .thunderbird/* -r
or
...


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Command line permissions


Ubuntu

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support