The chmod tag has no wiki summary.
11
votes
3answers
1k views
I accidentally chmod -R +x on a directory. How do I restore the correct permissions?
Well, to be specific, it was chmod -R 755. Now every file is executable, which I don't want.
I am thinking that I should look at the first two bytes of each file for the #!, but will this cover ...
13
votes
2answers
1k views
How to apply recursively chmod directories without affecting files?
After I apply chmod -R to a directory, permissions are changed for everything within (files and directories). How can I add execute/search (x) permissions to directories without modifying the files?
10
votes
4answers
2k views
Wrongly set chmod / 777. Problems?
I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?
6
votes
2answers
19k views
Recursive chmod only folders or only files via script or nautilus menu?
This has been discussed before here.
What I'd like to know is how to turn these:
Recursive chmod only files within this folder:
find . -type f -exec chmod 0600 {} \;
Recursive chmod only folders ...
2
votes
1answer
435 views
No effect of umask and chmod on mounted drives
The windows drives are mounted at boot-time using pysdm. The setting were
nls=iso8859-1,users,umask=002,sync,user,dirsync,uid=mtk
When I try to change the permission of files using chmod, I don't ...
3
votes
3answers
370 views
Unix users, groups, and permissions
I don't understand unix users, groups, permissions, etc. For example, things managed by the chmod, chgrp, usermod, groupadd, etc. commands. How do all these things work?
2
votes
1answer
141 views
chmod -R 644 ~/Documents
I recently noticed that all of the files in my ~/Documents were somehow incorrectly given executable status. This proved annoying as trying to opening any file gave me a message box saying it was ...
1
vote
7answers
186 views
Convert ls -l output format to chmod format
Say I have the following output from ls -l:
drwxr-xr-x 2 root root 4096 Apr 7 17:21 foo
How can I automatically convert this to the format used by chmod?
For example:
$ echo drwxr-xr-x | ...
3
votes
2answers
655 views
recursively change file permission but not directories?
I was doing a mass recursive change of permissions of some files that I had migrated to a unix system. I changed them to ug+rw, but then I found that I could not traverse subdirectories. I looked at ...
2
votes
3answers
130 views
User with read access to /home
Pardon my ignorance but I can't seem to come up with a solution to this one.
I'd like to create a user that has read access to every user's home catalog located in /home.
Do I need acl's for this or ...
2
votes
2answers
1k views
Find web server group? Permissions problem
I'm trying to make Wordpress work. I currently have this error message:
Could not create directory.
/var/www/html/wp-content/upgrade/theme_name
when trying to upload a theme. This is the ...