Page 1 of 1

how to clean occupied uid

Posted: 2023/01/17 09:57:37
by charliecao
it prompts "UID xxx is used before, force error for security reason" when I want to add an user with certain uid xxx,(the system needs this uid),and I checked /etc/passwd , no any user uses this uid.

So, how to clear completely used uid ,so I can use that uid.

Re: how to clean occupied uid

Posted: 2023/01/18 12:54:02
by tunk
Command line or GUI?
IIRC UIDs<1000 are reserved for the system, so if
you use GUI, then it may have some built in checks.
Also check /etc/shadow.

(BTW, this isn't the correct forum section.)

Re: how to clean occupied uid

Posted: 2023/01/18 12:57:35
by TrevorH
I'd start by finding out what uses it.

getent passwd xxx (for some numeric value of xxx)