I want to complete the shutdown without entering a password.
Posted: Thu May 23, 2024 8:51 am
Please treat me well.
I want to complete the shutdown without entering a password.
I have installed and used the desktop "lxde" on ubuntu22.04.
(1)
When you press the shutdown button, you will need to select your ID and enter your password.
I would like to be able to shut down this without entering a password.
with sudoers (visudo)
I tried %groupname ALL=NOPASSWD: /sbin/shutdown, but for some reason it doesn't work.
I went to look at the official website of lxde, but the wiki shows 404 Not Found and I can't see it.
(2)
I would like to force the created user to change their password when they log in for the first time.
I know that I can force it by running chage -d 0 username, but similarly to (1), I can't do that on lxde.
Thank you very much for your understanding.
I want to complete the shutdown without entering a password.
I have installed and used the desktop "lxde" on ubuntu22.04.
(1)
When you press the shutdown button, you will need to select your ID and enter your password.
I would like to be able to shut down this without entering a password.
with sudoers (visudo)
I tried %groupname ALL=NOPASSWD: /sbin/shutdown, but for some reason it doesn't work.
I went to look at the official website of lxde, but the wiki shows 404 Not Found and I can't see it.
(2)
I would like to force the created user to change their password when they log in for the first time.
I know that I can force it by running chage -d 0 username, but similarly to (1), I can't do that on lxde.
Thank you very much for your understanding.