Results 1 to 8 of 8

Thread: su - problem

  1. #1
    Join Date
    Aug 2008
    Location
    Elkton, FL
    Beans
    101
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question su - problem

    When I try to sue su - I get a message that my account has expired and to contact my system administrator, which is me. I have no idea what to do. sudo -i works OK!

    Any help whould be appreciated.

    Tom Atkins
    Linux Registered user #479578 Ubuntu user #24202

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: su - problem

    Ubuntu does not use su to get root permissions but sudo instead.

    You can use sudo -i as you have found and also sudo su which is almost the same, but not quite. sudo su will give you a prompt root@hostname:/home/username whereas sudo -i will give you a prompt root@hostname:~# the difference simply being the folder that you are starting in, ie root, as opposed to your own home folder.

    For more info on all this see https://help.ubuntu.com/community/RootSudo

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: su - problem

    Quote Originally Posted by ajgreeny View Post
    Ubuntu does not use su to get root permissions but sudo instead.

    You can use sudo -i as you have found and also sudo su which is almost the same, but not quite. sudo su will give you a prompt root@hostname:/home/username whereas sudo -i will give you a prompt root@hostname:~# the difference simply being the folder that you are starting in, ie root, as opposed to your own home folder.

    For more info on all this see https://help.ubuntu.com/community/RootSudo
    For a brief technical overview so sudo -i vs sudo -s vs su , see :

    Difference between sudo su and sudo -s
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #4
    Join Date
    Apr 2010
    Location
    Denver, Colorado
    Beans
    802
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: su - problem

    You can enable su but i'd highly recommend you do it through an SH shell vs BASH. SH is not integrated into the root account like bash,ksh,tcsh,etc...
    KDE SC 4.4

  5. #5
    Join Date
    Nov 2006
    Location
    UK, London. Wapping.
    Beans
    769
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: su - problem

    If you right click on Applications>Edit Menus>System Tools>Root terminal
    you'll have a root terminal at hand in Applications>System Tools>Root Terminal

    It's an easy way to get what you want. Don't forget to exit the terminal when you're done.

    Edit:- Although bit strange about the account having expired. Anyone got an answer to this (timed out?).
    Last edited by ayenack; May 22nd, 2010 at 01:07 AM.
    The Other Ubuntu Search Engine touse
    Before following advice look at this.

  6. #6
    Join Date
    Apr 2010
    Location
    Denver, Colorado
    Beans
    802
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: su - problem

    That account expiring is strange. Is it a multi-user system by chance?
    KDE SC 4.4

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

    Re: su - problem

    You can also look at RootSudo

  8. #8
    Join Date
    Aug 2008
    Location
    Elkton, FL
    Beans
    101
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: su - problem

    It is a multiple user system. I have my wife set up as a seperate user. I will go the sudo root in the future. I had been suing su - in the past with no problem.

    Thanks for the help.

    Tom Atkins
    Linux Registered user #479578 Ubuntu user #24202

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
  •