Code: Select all
sudo thecommand
Code: Select all
su -
Code: Select all
sudo passwd root
Code: Select all
sudo thecommand
Code: Select all
su -
Code: Select all
sudo passwd root
The way I understand it, is exactly the way you have described it: when using sudo the root access ends with the end of the command. However, any further use of sudo <some command requiring root permission> does not ask again for your password, as long as this next use of sudo occurs within some default time window (I forget what the default time value is, but I seem to remember it being something like 5 or 10 minutes). It is also possible to change the default time to some other value (like 0 minutes, in which case you get asked for your password each time you use sudo) -- but I've also forgotten how to do this changeFrijolie wrote: does sudo just work for that particular command and then digress back to user access and the su keep root access until you close the terminal window?
The password or key entries are never echoed back So when you type a password on a UNIX-like system such as Linux, you have to do it blindly ... there won't be any asterixes, no stars, no dashes, no question marks, no visible hint whatsoever that you are typing the password (unlike the BS they show in movies). Just type it and hit enter ... if you didn't do it right the system will tell you sogamedogs wrote: the part were it ask you to type in the password when i attempt to write it in the password the keyboard will not respond