Admin vs. User Account and running apps

Discussion in 'macOS' started by ksgant, Mar 14, 2007.

  1. ksgant macrumors 6502a

    ksgant

    Joined:
    Jan 12, 2006
    Location:
    Chicago
    #1
    Ok, I've got my computer set up with a separate Admin account and the account I use everyday: my "user" account.

    But there are some applications I can't run at all as the User. For instance, how do I run Onyx? I've tried to run it through the terminal while I "su" into my admin account, but it says "You are not authorized to manage the computer".

    Ok, so then I try a "sudo open -a onyx" and I get the same message. So does this mean I have to totally log into the admin account just to run Onyx, even though I'm trying to invoke it through the terminal as the admin?

    It's problems like this that make it a pain to not run as the admin, but it's just because I'm ignorant as to how to do this. Can anyone help?
     
  2. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #2
    I always thought apps that require admin access will prompt you for an admin username/password. Is this not happening for you? You shouldn't have to launch these from terminal. When the prompt comes you won't use your "user" username/password, instead use the "admin" username/password. Hope that makes sense.
     
  3. WildCowboy Administrator/Editor

    WildCowboy

    Staff Member

    Joined:
    Jan 20, 2005
    #3
    OnyX won't let you do that...not sure why. But the vast majority of apps will allow you to simply enter an admin name and password if they require admin privileges to run.
     
  4. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #4
    Sinners...

    OP, since Onyx is really for maintenance, is it that much of a hassle to switch users?
     
  5. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #5
    How much of a security flaw is it to put your non-admin user on the sudoer list? I've encountered one or two other applications that do not behave correctly for non-admin users (i.e. were not written correctly).

    But... if your GUI apps can allow you to ask for a user name and a password to do admin-level activities, I'm not sure technically how you would make your system more vulnerable or anything by placing your user on the sudoer list (so you could sudo open onyx), as a password request would still have to be made.

    You would still retain benefits such as forcing the user to authenticate to write to the /applications folder, etc.

    What do people think?
     
  6. ksgant thread starter macrumors 6502a

    ksgant

    Joined:
    Jan 12, 2006
    Location:
    Chicago
    #6
    no, not really a hassle, was just wondering if there was a way of doing it from the non-admin account using sudo. But also, Onyx is more than just maintenance and there may be some things in there I'd like to tweak on the fly to try out...but can't unless I'm in the Admin account. No big deal really, just a minor hassle.

    Well, just clicking on Onyx to launch it in my user account will bring up the prompt for the admin username/password....but then after than Onyx will always say "You are not authorized to manage the computer". But I guess you answered my question: I can't do it from the User account.
     

Share This Page