Common UNIX Security problem.... how to fix?

Discussion in 'macOS' started by iDavidLeeRoth, Feb 5, 2007.

  1. iDavidLeeRoth macrumors regular

    Joined:
    Sep 4, 2006
    #1
    Last login: Tue Feb 6 02:11:49 on ttyp1
    Welcome to Darwin!
    austin-mangels-computer:~ diamonddavidleeroth$ sudo vi
    Password:***************
    (vi pops up)

    :sh


    austin-mangels-computer:~ root#



    Now, the person has root access. How in the world is this fixed? I've seen this on a HUGE number of nix systems.


    On a side note:


    How can I globally set all folders to align to a grid. I want all folders across my system to be arranged by date modified in a grid.
     
  2. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #2
    Take the user out of sudoers. If you give a user sudo, you give a user root privileges, that's that.
     
  3. eluk macrumors 6502a

    eluk

    Joined:
    Dec 14, 2006
    Location:
    East London, UK
    #3
    By default I'm not on the sudoers list. How can I add a user to it?
     
  4. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #4
    The easiest way on the Mac is to enable the user as an admin in System Preferences, since members of the admin group normally get access.

    If you really want to give it to a non-admin user, man sudoers for the details and look at existing entries in /private/etc/sudoers for examples.
     
  5. iDavidLeeRoth thread starter macrumors regular

    Joined:
    Sep 4, 2006
    #5
    $sudo -s -H gives a root shell, BTW.


    Also, does anybody know how to fix my folder "problem"?
     
  6. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #6
    Right, that's what it's supposed to do :D
    Open a Finder window and switch it to icon view. Pick View->Show View Options, and click the All Windows bubble near the top. Halfway down, check Keep Arranged By, and pick Date Modified.
     
  7. iDavidLeeRoth thread starter macrumors regular

    Joined:
    Sep 4, 2006
    #7
    I know, I was just trying to inform.


    Another thing....


    I've been a Windows user for... well, forever. I bought the Mac around Christmas time. I'm used to my Desktop icons being on the left side of the screen. Is there anyway to move them?
     
  8. semaja2 macrumors 6502a

    Joined:
    Dec 12, 2005
    Location:
    Adelaide
    #8
    on a side note...

    how does one add a user to the sudoers, i have a user that is a restricted account but i need them to be able to use sudo (sudoing into a admin account)
     
  9. iDavidLeeRoth thread starter macrumors regular

    Joined:
    Sep 4, 2006
    #9
    Not sure, but it might be in Netinfo manager. :apple: :apple:
     
  10. eluk macrumors 6502a

    eluk

    Joined:
    Dec 14, 2006
    Location:
    East London, UK
    #10
    Cheers for that.
     
  11. ElectricSheep macrumors 6502

    ElectricSheep

    Joined:
    Feb 18, 2004
    Location:
    Wilmington, DE
    #11
    You need to explicitly add them to the sudoers file with visudo. See man visudo and man sudoers for all of the options you can assign a user in the sudoers file.
     

Share This Page