South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
is there any way users can change their own passwords but not root users password?
ok my question is how did the user obtain the root password? Dont you need the root password to be able to change it?
Even with sudo on kubuntu you still need the root password before you can run sudo anything
I've found that preventing users from changing their passwords themselves is on par with taking a gun from them when they want to shoot themselves in the foot
ok but i wana know how to STOP users from changing the root user password
Kasyx said:Removing the user from the "wheel" group, and setting the ownership on the "passwd" script to root - although this will prevent users from being able to change their own passwords.
Kasyx said:Yes - remove them from the "wheel" group and ensure they don't have sudo access.
Changing ownership of the "passwd" script to the root user is the only thing that will prevent the users from changing their own passwords, however this is not necessary, merely useful for added security.
Kasyx said:As long as you have sudo access or are able to get dropped into a root shell (i.e. UID0 hack), then you can change the root password without needing to know it in the first place.
ok but i wana know how to STOP users from changing the root user password