cjxzjcxzjz
New Member
Hi,
When I succesfully login on Ubuntu server through the terminal and execute a sudo command, it prompts me again for a password while I just logged in. I don't want to be prompted for a password when executing a sudo command after I just logged in. I do want the system to prompt me again for a password when executing a sudo after 30mins.
I tried:
- Setting nopasswd and Defaults env_reset,timestamp_timeout=30 in the sudoers file but this doesn't accomplish what I want. Because of the nopasswd , I never get prompted for a sudo password.
- When I remove nopasswd, the timeout mechanism works but I again get prompted for a password when executing a sudo command after I succesfully logged in which is what I don't want.
On my Raspberry Pi, which also has a Debian based image, it works the way I want out of the box but I can't seem to find the setting for it.
Does anyone know how to accomplish this? Thanks in advance.
When I succesfully login on Ubuntu server through the terminal and execute a sudo command, it prompts me again for a password while I just logged in. I don't want to be prompted for a password when executing a sudo command after I just logged in. I do want the system to prompt me again for a password when executing a sudo after 30mins.
I tried:
- Setting nopasswd and Defaults env_reset,timestamp_timeout=30 in the sudoers file but this doesn't accomplish what I want. Because of the nopasswd , I never get prompted for a sudo password.
- When I remove nopasswd, the timeout mechanism works but I again get prompted for a password when executing a sudo command after I succesfully logged in which is what I don't want.
On my Raspberry Pi, which also has a Debian based image, it works the way I want out of the box but I can't seem to find the setting for it.
Does anyone know how to accomplish this? Thanks in advance.