I want to disable the sudo password for a few hours, I did these steps and logged out, but it was not working
sudo visudo
Add line
Manjjj ALL=(ALL:ALL) 199
Does anyone know where the problem is?
I want to disable the sudo password for a few hours, I did these steps and logged out, but it was not working
sudo visudo
Add line
Manjjj ALL=(ALL:ALL) 199
Does anyone know where the problem is?
I use:
USER ALL=(ALL) NOPASSWD: ALL
It disabled it completly.
Of course, this should only be done by those who have sufficient experience with Linux and use it carefully.
This command did not work for me, also
Manjjj ALL=(ALL) NOPASSWD: ALL
But this command worked
Defaults:Manjjj !authenticate
usernames has to be all lowercase
I type username lowercase in computer.
Because I typed this with a mobile phone, the first letters were typed in capital letters
Thank you for pointing it out
the guide works perfectly - retrace your steps
This command (Defaults:manjjj !authenticate) for me working
But the two commands or lines mentioned above didnât work for me
See: man sudoers, it mentions:
FULLTIMERS ALL = NOPASSWD: ALL
You can even restrict when you are allowed to use sudo:
Date_Spec ::= ('NOTBEFORE=timestamp' | 'NOTAFTER=timestamp')
Date_Spec
sudoers rules can be specified with a start and end date via the NOTBEFORE and NOTAFTER settings. The time stamp must be specified in âGeneralized Timeâ as defined by
RFC 4517. The format is effectively âyyyymmddHHMMSSZâ where the minutes and seconds are optional. The âZâ suffix indicates that the time stamp is in Coordinated Univerâ
sal Time (UTC). It is also possible to specify a timezone offset from UTC in hours and minutes instead of a âZâ. For example, â-0500â would correspond to Eastern Stanâ
dard time in the US. As an extension, if no âZâ or timezone offset is specified, local time will be used.
Be sure to keep a separate terminal/console open where you are loged-in and changed to root while fiddling with the config file(s) that sudo uses, so you can fix/correct stuff while you make changes
It would be much better if there was a program or script that replaces the hash instead of the sudo password , or a warning window appears instead of the password like in Windows.
Because Iâm working with sudo a lot
I donât completely understand what you mean hereâŚ
What hash where?
Do you mean you want a popup asking for the password instead of the commandline prompting for the password?
In that case, IIRC, see: man pkexec
Popup accept or cancel donât type password, same windows10 popup administration
This was my idea out of ignorance, sorry, because in the terminal or tty environment, the popup is meaningless and fun
As long as you are in the GUI, the popup from pkexec
will be shown, no matter in which terminal window you issue it, the only place it would not be useful is in the console
or via a remote connection
When it comes to the popup ala Windows to ask for acceptance of administrative commands:
Sorry this is not windhooz and as such it only asks for password when needed or just executes the command as requested by the user.
Because Linux(or any unix variant) does not like to ask âAre you sure?â when the operator gives orders to it
PS: The action of âpassword provided by the operatorâ will be cached for a certain time, so it wont ask for it again when you issue multiple commands within that timeframeâŚ
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.