1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: super user login mandrake

Discussion in 'Linux and Unix' started by tjamnz, Jul 18, 2006.

Thread Status:
Not open for further replies.
Advertisement
  1. tjamnz

    tjamnz Thread Starter

    Joined:
    Jun 15, 2004
    Messages:
    774
    Hi.. I was looking at my etc/password file and realized that my passwords are shadowed in a file called "shadow" (ok).. anyways I tried to cat the shadow file and permission was denied... I was just curious and wanted to look at it.

    so i typed su - (root user name) and then i was promted for the password.
    which worked out ok.

    I tried to cat shadow, and still permission is denied. Does anyone have any insight as to why permission is still denied?... even though i logged in as root? (or at least i thought i did with the "su -" command)

    thanks
     
  2. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    What are the permissions on the file?

    You should even need to type root when you su. If you don't supply root, it just assumes you are trying to su to root.
     
  3. tjamnz

    tjamnz Thread Starter

    Joined:
    Jun 15, 2004
    Messages:
    774
    r--------
     
  4. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    Try typing just su and then hit enter. Then enter in root's password. Then cd to /etc and then do a cat shadow, then type whoami
     
  5. tjamnz

    tjamnz Thread Starter

    Joined:
    Jun 15, 2004
    Messages:
    774
    Cool... I got into root

    then I typed "exit" , and I was back to my normal user login.

    thanks!
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/484229

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice