or even better
Code:
su -c "comand"
actually the " MUST be there, so for runing vi on /etc/fstab i would do
su -c "vi /etc/fstab"
I will then be asked for rootpass.
the comand and ONLY that will run as root, if i shut it down, it crashes... privileges are lost. so slightly less risk of accidentaly do something bad as root.
OErjan