Announcement

Collapse
No announcement yet.

sudo: must be setuid root! I need to change the ownership of /usr/bin to root

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • kubicle
    replied
    Originally posted by luckyone View Post
    About the only difference I really see is that sudo uses a User's password instead of a separate root password. Otherwise I find them equal. So if you maintain your password securely there's no huhu. If you don't.....
    sudo can also be configured to ask for a separate root password (if a separate password is preferred).

    Leave a comment:


  • luckyone
    replied
    About the only difference I really see is that sudo uses a User's password instead of a separate root password. Otherwise I find them equal. So if you maintain your password securely there's no huhu. If you don't.....

    Leave a comment:


  • kubicle
    replied
    Originally posted by jlittle View Post
    "type" is the bashism.
    I think 'type' is POSIX, so it should work on most shells.

    Leave a comment:


  • jlittle
    replied
    Originally posted by james147 View Post
    Same here, had to run bash to see if it would for under it, but it didn't
    "type" is the bashism. "which" in bash runs /usr/bin/which.
    Code:
    alias su='sudo su'
    type su
    su is aliased to `sudo su'
    Regards, John Little

    Leave a comment:


  • kubicle
    replied
    Originally posted by james147 View Post
    Sorry,
    Code:
    sudo -sH
    That would probably work (I decided to err on the side of caution because I've never taken a deeper look at possible other differences...a diff on 'env' output would probably suffice)

    EDIT: tried it, $PATHs are different on my end, but I'll switch to sudo -sH anyway (seems to match sudo -i $PATH)
    Last edited by kubicle; Nov 24, 2012, 02:08 PM.

    Leave a comment:


  • james147
    replied
    Sorry,
    Code:
    sudo -sH

    Leave a comment:


  • kubicle
    replied
    Originally posted by james147 View Post
    Same here, had to run bash to see if it would for under it, but it didn't
    That's the zsh 'which' built-in goodness

    Originally posted by james147 View Post
    alias su='sudo -s' should be the same as this, without the need to call su
    It's not:
    Code:
    $sudo su
    #echo $HOME
    /root
    Code:
    $sudo -s
    #echo $HOME
    /home/username
    (I'm sure that hammer will hit a thumb sooner or later)

    Leave a comment:


  • james147
    replied
    Originally posted by kubicle View Post
    (I'm using zsh...so 'which' picks up aliases as well)
    Same here, had to run bash to see if it would for under it, but it didn't

    Originally posted by kubicle View Post
    alias su='sudo su' #behaves like 'su'
    alias su='sudo -s' should be the same as this, without the need to call su

    Leave a comment:


  • kubicle
    replied
    And as we've left the vicinity of the original topic, I just changed aliases (for good measure):
    alias su='sudo su' #behaves like 'su'
    alias si='sudo -i' #behaves like 'su -'

    Leave a comment:


  • kubicle
    replied
    As my edit said, I had an alias set for user, but was looking in as root:
    Code:
    $which su                                                                                                           
    su: aliased to sudo -i
    Code:
    #which su                                                                                                           
    /bin/su
    (I'm using zsh...so 'which' picks up aliases as well)

    Leave a comment:


  • james147
    replied
    Originally posted by kubicle View Post
    Only slightly relevant:

    I'm actually able to use 'su' on raring... which asks my user's password just as 'sudo -i' would...have there been 'recent' changes to the su executable in ubuntu/debian...or have I gone mad? (I know, it's a coin toss)

    EDIT: Yes...I'm an idiot...I actually had an alias set (for user) but was looking at root's aliases :P
    What does
    Code:
    ls -l $(which su)
    alias su
    say?

    Leave a comment:


  • kubicle
    replied
    Originally posted by michel View Post
    sudo -i made my day. Thanks to all!
    Only slightly relevant:

    I'm actually able to use 'su' on raring... which asks my user's password just as 'sudo -i' would...have there been 'recent' changes to the su executable in ubuntu/debian...or have I gone mad? (I know, it's a coin toss)

    EDIT: Yes...I'm an idiot...I actually had an alias set (for user) but was looking at root's aliases :P
    Last edited by kubicle; Nov 24, 2012, 01:11 PM.

    Leave a comment:


  • michel
    replied
    sudo -i made my day. Thanks to all!

    Michel

    Leave a comment:


  • benny_fletch
    replied
    I have found no real difference between sudo and su (as Mepis uses) in functionality or ability, except for the additional two characters and that sudo uses the user's password and su uses root's password. I agree eveyone that you can do everything you need to do in regards to modifying/administering your system with sudo and kdesudo, but then again I haven't logged into a root account for over five years (during the time I was using Mepis). The same ideas hold true for Mepis, but the syntax is slightly different, su for konsole/CLI commands and kdesu to open KDE GUI applications. With these two options (spelling depends on your OS choice), you can do anything without logging into root.

    Although, I agree if you are used to one over the other it can take a while to retrain yourself.
    Last edited by benny_fletch; Nov 24, 2012, 12:49 PM.

    Leave a comment:


  • kubicle
    replied
    Originally posted by michel View Post
    I just miss the ability to use su.
    You can use 'sudo -i' in place of 'su' to get a root terminal (you can also set an alias su='sudo -i', for example, so you can 'su' just like you would in another distribution.

    YODA EDIT: slower than james, I am

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X