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

    #16
    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

    Comment


      #17
      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.
      Nowadays I'm mostly Mac, but...
      tron: KDE neon User | MacPro5,1 | 3.2GHz Xeon | 48GB RAM | 250GB, 1TB, & 500GB Samsung SSDs | Nvidia GTX 980 Ti

      Comment


        #18
        sudo -i made my day. Thanks to all!

        Michel

        Comment


          #19
          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.

          Comment


            #20
            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?

            Comment


              #21
              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)

              Comment


                #22
                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 -'

                Comment


                  #23
                  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

                  Comment


                    #24
                    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)

                    Comment


                      #25
                      Sorry,
                      Code:
                      sudo -sH

                      Comment


                        #26
                        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.

                        Comment


                          #27
                          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
                          Regards, John Little

                          Comment


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

                            Comment


                              #29
                              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.....
                              GigaByte GA-965G-DS3, Core2Duo at 2.1 GHz, 4 GB RAM, ASUS DRW-24B1ST, LiteOn iHAS 324 A, NVIDIA 7300 GS, 500 GB and 80 GB WD HDD

                              Comment


                                #30
                                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).

                                Comment

                                Working...
                                X