Results 1 to 6 of 6

Thread: How to enable 'su' command on Pangolin

  1. #1
    Join Date
    Aug 2008
    Location
    Johannesburg, South Afric
    Beans
    71
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    How to enable 'su' command on Pangolin

    Hi everyone,

    A looooong time ago when I was still running Jaunty, I enabled the 'su' command. Yes, I know all about 'sudo' but I'm old fashioned so I like to 'su' every once in a a while. So now I want to do the same on my Precise Pangolin install. But no matter what I try I can't get it to work.

    In /etc/sudoers I have:
    Code:
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    and I have created a group 'admin' and added my user account to it. Which, if memory serves, did the trick on Jaunty. But not, apparently, on Pangolin, which may have tighter security settings that need tweaking elsewhere. Or not.

    So. How do I enable 'su' for my everyday user account on Pangolin?

    // FvW

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,630

    Re: How to enable 'su' command on Pangolin

    Create an alias in root's .bashrc?
    Code:
    alias su='sudo'

  3. #3
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: How to enable 'su' command on Pangolin

    The su command should already be installed and working.

    Which user are you trying to su to? If it's the root account then this can't be done in a default Ubuntu installation as the root account is disabled.
    The preferred method of getting a root shell in Ubuntu is by using...
    Code:
    sudo -i
    Cheesemill

  4. #4
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,803

    Re: How to enable 'su' command on Pangolin

    Quote Originally Posted by wojox View Post
    Create an alias in root's .bashrc?
    Code:
    alias su='sudo'
    Why would you want to alias one command with another ?

    An alias is not for that purpose IMO.

    su and sudo are different commands

    As cheesemill mentioned above, it is likely the OP cannot su due to them by default "su" without a username therefore defaulting to root which has no password set by default in Ubuntu and so locked.
    Feel Free to Bitcoin Tip: 135Rp4pwwYTHEJ4u8bxKaDQiC91N9LUoV2

    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  5. #5
    Join Date
    Sep 2010
    Beans
    898

    Re: How to enable 'su' command on Pangolin

    Quote Originally Posted by frankvw View Post
    So. How do I enable 'su' for my everyday user account on Pangolin?
    See this article: https://help.ubuntu.com/community/RootSudo
    Last edited by Dave_L; April 4th, 2013 at 01:02 PM.

  6. #6
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,630

    Re: How to enable 'su' command on Pangolin

    Quote Originally Posted by haqking View Post
    Why would you want to alias one command with another ?
    I thought he was looking to shorten the word.

Bookmarks

Posting Permissions

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