configure /etc/sudoers for passwords
Hi,
One of my (most trusted) users will need to become root to run a set of maintenance tasks over the next few weeks. Rather then give away the root password I'd like to be able to run a bash shell through sudo. I've edited the /etc/sudoers with the following extra line: User1 ALL=/bin/bash The problem is that we can now run bash as root WITHOUT typing is a password. I thought the default was the opposite way round; the user would have to enter the password unless I add the "NOPASSWD: ALL" flag to the end of the line. Any ideas what I'm doing wrong? |
Quote:
You may try: Code:
User1 ALL=PASSWD: /bin/bash Code:
User1 ALL=(ALL) ALL |
Try placing this line before any lines that contain NOPASSWD
|
Hi,
I've made the changes you both suggest and it now works perfectly. Thanks :^) |
All times are GMT -5. The time now is 02:52 PM. |