July 2, 2007
CHMOD Files on a Linux Server?
I need to change the CHMOD permissions on all files ending in .vote in all folders withing the root directory to 777. What is the command line l need for this?
- I will be doing this via SSH on the server and l have full admin permissions.
- chmod *.vote 777
- cd /
chmod -R 777 *.vote—-
cd changes you to the root-R switch recurses through all folders from the current location (I.e. /)
- Why not just try:
chmod 0777 *.vote
while you're in the root directory?
(the '0' is a sticky bit, I assume you don't want those files to be suid)
- try this ls -ltr *.* |chmod ugo+rwx *.vote
in this this you are listing all the files in the root directories and the root and then doing the chmod operation on the vote files
- I need to make sure that when l CHMOD the files ending in .VOTE that it looks through all the directories from where l am to do this.
- Try "chmod -R 777 *.vote", but some systems don't
support that, so try the following:find / -name "*.vote" -exec chmod 777 {} \;
- ssh -l root <hostname or ip addy> chmod -R 777 /path/to/files/*.vote
2 things to take note of
1) you need to be able to ssh to the box as root
2) Giving 777 permissions to any file in root's home directory is/can be dangerous. If possible see if you can move the files to another location.PS - I tried to reply to your e-mail but it told me that your e-mail addy has not been verified so it would not let it through.























