Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I make my password unchangeable by another administrator in my system on Ubuntu 12.04 (Precise Pangolin)?

I am an administrator in my machine and I don't want another administrator to reset my password. Is it possible?

share|improve this question
not unless they don't have sudo rights... – Alvar Jul 15 '14 at 12:31

There is no way to make your password unchangeable.
The only way is to limit the privileges of other administrators.

share|improve this answer
1) limited -> limit 2) administrators -> administrators' – Peter Mortensen Jul 15 '14 at 15:19
This is not the case. If /etc/passwd is not writable (on a read-only filesystem, or after removing the SETUID bit from /usr/bin/passwd, or garbage in /etc/nsswitch.conf or passwords on a down NIS server, or ...) nobody will be able to change his password. Pathological cases, true, but I have experiened each. – waltinator Jul 15 '14 at 15:48

No. If you are "an administrator", it means that you can run processes with UID = 0. Running with UID 0 grants a process many capabilities.

if the O.P. is "an administrator", it means that he/she can run processes with UID = 0. Running with UID 0 grants a process many capabilities.

Can you tell the difference between them? The system cannot. UID=0 and UID=0 are the same.

You are really asking "Can one use the powers of UID=0 to protect against UID=0?".

If the O.P. is malicious, you must solve the problem in the Real World.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.