ptlandon

Q: Adding a user and changing permissions globally.

I recently had to make a clean install on my Mac Pro following the replacement of both processors by Apple. After they worked on it there was a different user listed as Admin. I've created my own user name which works on the OS drive but I can't access the files on my other drives without manually adding my new user in the file info box and changing permissions to read/write. How can I add my user name and change permissions to all the folders and files? Using Terminal? What commands do I need?

regards

Peter Landon

Mac Pro (Early 2009), OS X Mavericks (10.9.4), x4 HDDs

Posted on Aug 19, 2014 4:17 AM

Close

Q: Adding a user and changing permissions globally.

  • All replies
  • Helpful answers

  • by BDAqua,

    BDAqua BDAqua Aug 19, 2014 10:53 AM in response to ptlandon
    Level 10 (123,670 points)
    Aug 19, 2014 10:53 AM in response to ptlandon

    Hi, have you tried highlighting the whole drive, doing a Get Info, unlocking the lock, add your new admin user, then Apply to enclosed items?

     

    There are Terminal commands, but are you familiar with Terminal, as it can be dangerous?

  • by BDAqua,Helpful

    BDAqua BDAqua Aug 19, 2014 10:54 AM in response to ptlandon
    Level 10 (123,670 points)
    Aug 19, 2014 10:54 AM in response to ptlandon

    Hi, have you tried highlighting the whole drive, doing a Get Info, unlocking the lock, add your new admin user, then Apply to enclosed items?

     

    There are Terminal commands, but are you familiar with Terminal, as it can be dangerous?

  • by ptlandon,Solvedanswer

    ptlandon ptlandon Aug 19, 2014 10:59 AM in response to ptlandon
    Level 1 (0 points)
    Aug 19, 2014 10:59 AM in response to ptlandon

    Yes, I tried that. The permissions didn't change for the folders. I'm OK with terminal if someone can give me clear enough instructions.

    regards

    Peter

  • by rccharles,

    rccharles rccharles Aug 19, 2014 11:22 AM in response to ptlandon
    Level 6 (8,486 points)
    Classic Mac OS
    Aug 19, 2014 11:22 AM in response to ptlandon

    You could try:

     

    Download BatChmod 1.51

    Works on 10.5 and 10.6

     

    Download BatChmod 1.37

    (for previous system versions as 1.5 has not been tested on any other system, though may work.)

    http://www.macchampion.com/arbysoft/BatchMod/Download.html

     

    post back if BatChmod doesn't help, I once had more info on this sort of thing.  Here is a hint:

     

    ls -nl

    list the numeric user id.

    compare to

    ls -l

     

    me $ ls -nl
    total 51M
    drwxrwxr-x.  4 1000 4.0K Aug 16 22:14 Bethesda/
    drwxrwxr-x.  5 1000 4.0K Jul 24 13:59 bh/
    -rwxr--r--.  1 1000  167 Dec  9  2013 cleanyum.bash*
    

    always test first with ls command

     

    find /home/robert -user  1000  -exec ls -l  {} \;

    find /home/robert -user  1000  -exec chown robert:staff  {} \;

     

    chown to change userid and groupid

     

      .... how to use chmod to change permissions.

    mac $ pwd
    /Users/mac
    mac $ touch testseeit
    mac $ ls -l testseeit
    -rw-r--r--   1 mac  staff  0 Nov 11 23:33 testseeit
    mac $ chmod 660 testseeit
    mac $ ls -l testseeit
    -rw-rw----   1 mac  staff  0 Nov 11 23:33 testseeit
    mac $

    of course for cryptic info...
    man chmod

  • by ptlandon,

    ptlandon ptlandon Aug 19, 2014 11:53 AM in response to BDAqua
    Level 1 (0 points)
    Aug 19, 2014 11:53 AM in response to BDAqua

    Thanks to everyone! "Apply to enclosed" did the trick. BDAQUA - I missed it first time around.....

    regards

    P

  • by BDAqua,

    BDAqua BDAqua Aug 19, 2014 12:47 PM in response to ptlandon
    Level 10 (123,670 points)
    Aug 19, 2014 12:47 PM in response to ptlandon

    Great to hear, thanks!