3
votes
2answers
425 views

How to add +x just for user with chmod?

chmod +x file changes a file from rw-r--r-- to rwxr-x-r-x but really I only wanted rwx-r--r-- is this possible?
0
votes
0answers
168 views

chmod: .: Permission denied & sudo chmod -R -rwx

I accidentally executed the following command in an important dir without knowing what the command does. Now I'm getting permission denied and not able to open the dir. sudo chmod -R -rwx . Please ...
4
votes
5answers
1k views

Standard way to duplicate a file's permissions

I am trying to find a standard POSIX way to duplicate one file's permissions to another file. On a GNU system this is easy: [alexmchale@bullfrog ~]$ ls -l hardcopy.* -rw-r--r-- 1 alexmchale users ...
3
votes
4answers
6k views

chmod 777: how to make all files become “RWX”

I want to change permission of each files in a directory. I've been using chmod 777 but its wasting time if I have 50 files. How to make all files inside directory become rwx without change them one ...
116
votes
6answers
78k views

How to chmod 755 all directories but no file (recursively)?

How to chmod 755 all directories but no file (recursively) ? Inversely, how to chmod only files (recursively) but no directory ?
14
votes
4answers
18k views

Find all files on server with 777 permissions

I'm looking for a Linux command to go through all the directories on my server and find all files with 777 permission. The output would be a list of all those files with full path.
1
vote
4answers
992 views

How do I find and modify permissions on one filetype in an Ubuntu terminal? [duplicate]

Possible Duplicate: How to chmod 755 all directories but no file (recursively) ? I've just upgraded from Ubuntu 8.04 to 9.04, added an extra hdd for /home and used an iPod (FAT32, sadly) to ...