Find the answer to your Linux question:
Results 1 to 9 of 9
Am just wondering what sudo means as I am seeing it in many commands and don't know what it actually does or means....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2006
    Posts
    27

    command line


    Am just wondering what
    sudo
    means as I am seeing it in many commands and don't know what it actually does or means.

  2. #2
    Just Joined! ~tux~'s Avatar
    Join Date
    Oct 2005
    Location
    /home
    Posts
    68
    sudo allows a permitted user to execute a command as the superuser or another user of the linux system. I would highly suggest you research the linux command line before trying to use it. Learn the basics, then attempt to use it.

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    It's just a way to give normal users permission to run certain commands without them having to log in as root. Ubuntu is big on having user use sudo.

    Here's a howto you can look over for more info:

    http://www.wlug.org.nz/SudoHowto

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    oops... tux was faster on the ENTER key than I was!

  6. #5
    Just Joined!
    Join Date
    Jan 2006
    Posts
    27
    Yes I realise I shouldn't go messing around with the command linewithout knowing what I am doing. Hence the reason me asking this question as I have been using it lately to set up stuff just copying what is written down on other sites and stuff and sudo comes up quite a bit and haven't seen anywhere actually what it does and I wanted to know so thanks for your reply.

  7. #6
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    If you ever have a question about a command, try

    Code:
    man SOME COMMAND
    For instance in your case you could do

    Code:
    man sudo
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  8. #7
    Just Joined! ~tux~'s Avatar
    Join Date
    Oct 2005
    Location
    /home
    Posts
    68
    True, Ubuntu is big on using the sudo command, as ozar said. Have no idea why though...

    Hey ozar congrats on being chosen a trusted penguin!

  9. #8
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133

    Thumbs up

    Quote Originally Posted by blud
    Am just wondering what
    sudo
    means as I am seeing it in many commands and don't know what it actually does or means.
    It means execute a command as root. On one hand you can the su command without any argument and function as root. This will leave you with root privelages until you exit it, whereas to run just one command as root you prefix it with sudo, which means "Switch User - Do <command>". Su, or switch user when you don't tell it which user defaults to root, and if you add a hyphen '-' it will give you their full path variable.

  10. #9
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Quote Originally Posted by bigtomrodney
    ... and if you add a hyphen '-' it will give you their full path variable.
    Adding the hyphen tells su to source the user's login environment, not just set PATH.

Posting Permissions

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