Sudo su password11/24/2023 ![]() ![]() Now try logging in as user "samtest" without any password. NOTE: Always edit this file using sudo visudo. Now add a line like this to your /etc/sudoers file. is to login as user, and run sudo -i or sudo su - to become root. NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13.04, that I use purely for learning purposes. with sudo privilege, password is live, (2) administration account root. First, open the terminal using the keyboard shortcut CTRL + ALT + T. This U&L Q&A titled: How do you create a user with no password? suggested using this method which worked for me. This is a fairly complex question related to the sudoers file and the sudo command in general. To change the sudo password using the sudo command: 1. But this is highly insecure, and I'd recommend you seriously consider what your ultimate goal is here before proceeding with that method.so I don't care about security. ![]() Your only recourse here is to configure users that do not require the use of a password with the NOPASSWD option in your sudoers file. Therefore it will always need to request the password from the user, before proceeding. You can even put the command afterwards, like sudo -k testmyprivileges.sh From man sudo: -K The -K (sure kill) option is like -k except that it removes the user's time stamp entirely and may not be used in conjunction with a command or other option. ![]() I don't think this is possible because sudo will not know that a user doesn't have a password or that it's the empty string until it ( sudo) presents the password, empty or otherwise, to the PAM module for validation. 2 Answers Sorted by: 55 sudo -k Will kill the timeout timestamp. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |