12-31-2019, 11:51 AM
(This post was last modified: 12-31-2019, 11:56 AM by Jeremiah Cornelius.)
< SNIP >
It's a good idea to add sudo and include your user by group membership to sudoers. If for nothing else but these occasions.
If you want to then change a forgotten root user password, "sudo su -" gets you a root shell with environment, and then a regular "passwd" will change root, without asking for previous shadow entry.
This also helps when you are running things that sudo has difficulty with - such as some scripts. I hate editing these to prepend extra "sudo" commands to lines.
Quote:Anyway this is not that important since you mentioned :
Code:$ sudo mrfixit_update.sh
So I can still update the system as my other user.
thanks again. All the best for 2020!
Regards, Adrian
It's a good idea to add sudo and include your user by group membership to sudoers. If for nothing else but these occasions.
If you want to then change a forgotten root user password, "sudo su -" gets you a root shell with environment, and then a regular "passwd" will change root, without asking for previous shadow entry.
This also helps when you are running things that sudo has difficulty with - such as some scripts. I hate editing these to prepend extra "sudo" commands to lines.
— Jeremiah Cornelius
"Be the first person not to do something, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"
"Be the first person not to do something, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"