This method is more secure because you don't need to protect both root and privileged (sudoer) users to keep the whole system safe. # of the user they are running the command as (root by default).ĭefaults targetpw # Ask for the password of the target userĪLL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw' # Uncomment to allow any user to run sudo if they know the password Then uncomment the 2 lines below in that file and then save This way when the user runs a command with sudo he should enter root's password instead of his password.įor enabling this method you should open the file '/etc/sudoers' by entering the command In this method any user can temporarily run commands as root only if he knows the root password.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |