An advantage of sudo:

[rocketmouse@archlinux ~]$ su -c mcedit /etc/fstab
su: user /etc/fstab does not exist
[rocketmouse@archlinux ~]$ su -c "mcedit /etc/fstab"
Password: 

[rocketmouse@archlinux ~]$ sudo mcedit /etc/fstab
[sudo] password for rocketmouse:

If you work much with command line as user and you only need sometimes
root privileges, then the quotation marks needed by su can become very
annoying, as soon as there follows a little bit more than
just /etc/fstab after the command.

FWIW you can have su always asking for a password and at the same time
gksu that will remember the password and also ask for the root password,
but only one time, not when you use it again and again during a session.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1376514439.5135.15.camel@archlinux

Reply via email to