root user problems UNIX HELP PLEASE

Discussion in 'Mac Help/Tips' started by mnkeybsness, Oct 13, 2002.

  1. mnkeybsness macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #1
    okay i'm having this problem...i have an operation that NEEDS to have root user privileges.....

    ...i know everyone is going to say just type 'su' and then put in the password...well therein lies a tale...i have not set a root user password...i have tried going to netinfo manager and authenticating, then putting in a password...it then says the root password has been left blank...please put in a non-trivial password...well it all works fine until i say OKAY...when it brings an error message saying "Netinfo write failed (Operation Succeeded)"...confusing...then it says a couple things and says to re-authenticate to make additional changes...

    another way i have tried it is by just typing in 'sudo' then the command...well the command prompts to open a file on the desktop (there is no way to get around this)...but it will then say that it could not find the file on the desktop...I CAN SEE THE FILE DIRECTLY ON THE DESKTOP...what is going on?

    does anyone know how to make this work?
     
  2. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #2
    To activate the root account from the terminal type:

    sudo passwd root

    then it'll ask you for your admin password, then it'll ask you to set the new root password, and boom, that's it, you've activated your root account.
     
  3. mnkeybsness thread starter macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #3
    thanks...that worked to set the root password...

    ...but it still doesn't find the file on the desktop...

    AAAAHHHHHH:confused: :confused: :confused:
     
  4. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #4
    You refer to "the desktop" but there isn't just one desktop. Each user (i.e., each separate name that can be used to login) has a separate desktop. Before you type your sudo command, who do you login as? If you login as monkey, for example, the desktop you see corresponds to directory /Users/monkey/Desktop. Is such a directory where your command is looking?
     
  5. Nipsy macrumors 65816

    Nipsy

    Joined:
    Jan 19, 2002
    #5
    In the terminal type:
    /usr/libexec/locate.updatedb

    then type
    locate FILENAME

    Then you know the path of the file to delete.
     
  6. Taft macrumors 65816

    Taft

    Joined:
    Jan 31, 2002
    Location:
    Chicago
    #6
    Re: root user problems UNIX HELP PLEASE

    I know you've got this fixed (the NetInfo write issue is mute for you), but I had this happen to my system once and couldn't get it fixed. I'm trying to track down why it happens.

    Do you have a "non-standard" system configuration?? For instance, do you have your applications on different HD partition than the rest of you system? Or is your User data on a different partition??

    If so you might try moving the NetInfo Manager to the same partition as your System folder. Or setting up a User with data on the System harddrive, logging in with that user, then trying to run NetInfo Manager.

    If you don't have a multipartition setup, do you have anything else thats different from a default, virgin install? I fixed my problem by reinstalling on a single partition, but I'd like to know what causes this.

    Taft
     
  7. mnkeybsness thread starter macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #7
    no i don't have any "non-standard" system set ups...just an 800mhz g4 powermac...standard config 10.2
     

Share This Page