Results 1 to 4 of 4
In the past, I have typed in a terminal:
chmod 777 filepath
and it changed the permissions of all the files and subdirectories. However, I have also learned that the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-22-2008 #1
[SOLVED] Question regarding CHMOD terminal command...
In the past, I have typed in a terminal:
and it changed the permissions of all the files and subdirectories. However, I have also learned that the only way to change the permissions of all the subdirectories is to type in a terminal:chmod 777 filepath
I guess my question is, what's the difference if they both do the same thing?chmod --r 777 filepathUsing Linux since June 2007
Distros: Mint 12
SPECS: AMD Atholon 64 X2 5400+, 2GB RAM, GeForce 8800 GTS
When your whole life is on one computer, servers and all, choose stability over anything else.
- 12-22-2008 #2
It shouldn't do that.
chmod should not recurse unless called with -R (uppercase!).
If it does, I assume your distributor made a macro called by that name which is mapped to chmod with the recursive option.
Try to call explicitly /bin/chmod and see if it is any different.Debian GNU/Linux -- You know you want it.
- 12-22-2008 #3I certainly hope not
Originally Posted by SkittleLinux18 
Calling `chmod 777 /path/to/file` should only change permissions on 'file' in '/path/to/' and not anything else. You can make it recursive with the -R option, yes, if that is your intent. But it shouldn't be default. That might just make your entire collection of nature pictures world readable.Can't tell an OS by it's GUI
- 12-22-2008 #4Using Linux since June 2007
Distros: Mint 12
SPECS: AMD Atholon 64 X2 5400+, 2GB RAM, GeForce 8800 GTS
When your whole life is on one computer, servers and all, choose stability over anything else.




