Originally posted by luckyone
View Post
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
-
sudo can also be configured to ask for a separate root password (if a separate password is preferred).
- Top
- Bottom
-
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.....
- Top
- Bottom
Leave a comment:
-
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)Originally posted by james147 View PostSorry,Code:sudo -sH
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.
- Top
- Bottom
Leave a comment:
-
That's the zsh 'which' built-in goodnessOriginally posted by james147 View PostSame here, had to run bash to see if it would for under it, but it didn't
It's not:Originally posted by james147 View Postalias su='sudo -s' should be the same as this, without the need to call su
Code:$sudo su #echo $HOME /root
(I'm sure that hammer will hit a thumb sooner or later)Code:$sudo -s #echo $HOME /home/username
- Top
- Bottom
Leave a comment:
-
Same here, had to run bash to see if it would for under it, but it didn'tOriginally posted by kubicle View Post(I'm using zsh...so 'which' picks up aliases as well)
alias su='sudo -s' should be the same as this, without the need to call suOriginally posted by kubicle View Postalias su='sudo su' #behaves like 'su'
- Top
- Bottom
Leave a comment:
-
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 -'
- Top
- Bottom
Leave a comment:
-
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
(I'm using zsh...so 'which' picks up aliases as well)Code:#which su /bin/su
- Top
- Bottom
Leave a comment:
-
What doesOriginally posted by kubicle View PostOnly 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 :Psay?Code:ls -l $(which su) alias su
- Top
- Bottom
Leave a comment:
-
Only slightly relevant:Originally posted by michel View Postsudo -i made my day. Thanks to all!
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 :PLast edited by kubicle; Nov 24, 2012, 01:11 PM.
- Top
- Bottom
Leave a comment:
-
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.
- Top
- Bottom
Leave a comment:
-
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.Originally posted by michel View PostI just miss the ability to use su.
YODA EDIT: slower than james, I am
- Top
- Bottom
Leave a comment:
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: