Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
i like su more!
Offline
su is a command to switch users, without changing the user environment. However, if you use it without any arguments, it'll attempt to log as root. su can be used by everyone.
sudo is a command designed to run commands as root, using your account's password instead of the root account's password (by default locked in Ubuntu). You must be a sudoer (administrator) to use sudo.
Offline
su can be used by everyone.
Does enterely depend on your config or OS,
Default for FreeBSD would be that you have to be in the wheel group to execute su.
Ubuntu's Default is that you need to be in the sudo group to execute sudo.
However it can be tuned so anyone can use sudo if you'd like.
This thread is about which command you prefer since both binaries allow you to reach the same goal.
Offline
You can log as root using your account's password using the combination sudo su. But I don't like to mess up with my current environment so I prefer the root environment for which I use sudo -i.
Offline
I prefer sudo. It's safer in my opinion.
Everybody edits, but some edit more than others
Offline
I go with su, I don't think I even have sudo installed at the moment. Su -c makes more sense to me than sudo anyway. Force you to type root's password instead of your own password. If someone's in your computer it's more likely they know your password than root's password. But this is just my home PC, sudo wasn't installed by default so I didn't bother, and I think sudo can be configured to require the password of the target user like su does.
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
when i walk into this topic it feels like i entered a foreign country
Offline
when i walk into this topic it feels like i entered a foreign country
its like Window's run as admin but in Linux.
Everybody edits, but some edit more than others
Offline
Pingohits wrote:when i walk into this topic it feels like i entered a foreign country
its like Window's run as admin but in Linux.
Now you're making it sound like linux is nothing but terminal witchcraft. If you never opened a terminal you'd never need to know about any of this, but yeah sudo and su are basically Window's Run as Admin or UAC popups for terminals. If you don't use a terminal then you get a normal popup box asking for your password like OS X does.
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
Now you're making it sound like linux is nothing but terminal witchcraft
it isn't?
Offline
Different55 wrote:Now you're making it sound like linux is nothing but terminal witchcraft
it isn't?
No. A linux user considers the GUI black magic. The terminal is the good magic.
Good magic always win whereas the black magic is unpredictable.
Everybody edits, but some edit more than others
Offline
Sudoku.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
i use sudo bash
Pages: 1
[ Started around 1732454490.0508 - Generated in 0.265 seconds, 12 queries executed - Memory usage: 1.59 MiB (Peak: 1.78 MiB) ]