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?

  1. I will be doing this via SSH on the server and l have full admin permissions.
  2. chmod *.vote 777
  3. cd /
    chmod -R 777 *.vote

    —-
    cd changes you to the root

    -R switch recurses through all folders from the current location (I.e. /)

  4. 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)

  5. 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

  6. 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.
  7. Try "chmod -R 777 *.vote", but some systems don't
    support that, so try the following:

    find / -name "*.vote" -exec chmod 777 {} \;

  8. 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.

Tags: ,

Stored under from

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print