Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I'm new to all this... I am trying to install hpijs from hp for my printer. I have done the make command ok and now need to do a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2003
    Posts
    6

    Login as root


    Hi,

    I'm new to all this... I am trying to install hpijs from hp for my printer.

    I have done the make command ok and now need to do a make install but to do this I need to login as root to have permissions to make the change.

    can anyone let me know how to login as root from the shell.

    thanks delarmi

  2. #2
    Just Joined!
    Join Date
    Aug 2003
    Posts
    56

    Simple, I hope

    When you installed, you were probably asked to establish a password for the root user. If you are not sure, then you probably used the same password that you have established for your primary user.

    I'm not sure what linux distribution you are using, but you cam probably log out. When you do that, log back in using:

    username: root
    password: your password

    If this does not work, then I'm not sure what to do.

    Good luck!

    -------------------------------S

  3. #3
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    To change from a normal user to root in a shell you execute the command

    Code:
    su - root
    or
    su -
    With su you can switch to any user if you can the password for the specific user.
    Regards

    Andutt

  4. #4
    Just Joined!
    Join Date
    Aug 2003
    Posts
    6
    That did the trick thanks andutt

  5. #5
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Your Welcome.... Note that when you are using the "-" sign you are getting the users enivronmentvariables that you are suing to. Like PATH, which is good if you are suing to root, otherwhise you cant find certain command without specifie the whole path to the command.
    Regards

    Andutt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •