Changing Permissions

Posted:
in Genius Bar edited January 2014
how can i change an entire drive's permissions as once? I hit to apply to enclosed items and it doesn't seem to be doing them all, and we have a lot of different users on this one machine, and they all need to be able to go to this one drive and work of each others folders and files, saving too the original file and everything with the utmost ease. Any reccomendations? Is there a way to do it in terminal perhaps?

Comments

  • Reply 1 of 2
    dobbydobby Posts: 797member
    Start terminal and su to root or sudo.

    Man sudo for more info (it lets you issues commands as superuser/root)

    chmod will change rwe permissions

    chown will change owner

    chgrp will change group

    (chown uid:gid) can do both owner and group.



    so if I have a dir /somedirname/anotherdirname that I want to let everyone access you can do the following

    chmod -R 777 /somedirname/anotherdirname

    The 777 is calculated with r=4 w=2 x=1 and your have user,group,world so 421 would mean owner has read, group has write and world has execute priv.

    (dirs must have rx for them to be read)



    man on the chmod chown chgrp for more info



    Hope this helps



    Dobby.
  • Reply 2 of 2
    For a Mac-type way, use BatChMod, freeware found via VersionTracker.



    You mentioned the entire drive. This is not advisable, as you would be changing the System folder that contains OS X, best to do the changes to each appropriate folder at the main level of the hard drive.
Sign In or Register to comment.