Server Fault is a question and answer site for system and network administrators. 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

I need to create a local user with the same name as a domain user under CentOS with Likewise installed.

When I use Useradd it says user exists, because a domain user with the same name exists.

It is a service account for backup and does not work using a domain account. On machines where the local account was added before likewise was installed it works fine.

Is there a way to temporarily disable this check?

share|improve this question

If you id your user with and without the domain name you will find they both have the same uid. This means that both versions of the username map to the same user account in Linux.

I think the simpler problem to solve would be why you need to have exactly the same username for a locally running process. Or remove the domain account from the Linux host. I don't think you can have both because even if you manage to set up both accounts, Linux won't be able to distinguish them via their username when you come to try and use one or the other.

share|improve this answer
Thanks. I have assume default domain true as well so you can not even distinguish between the two when you logon. The effect is a single account with 2 methods to authenticate which is what I am trying to achieve. – JamesRyan Dec 21 '10 at 13:10
up vote 1 down vote accepted

I worked out that you can do this

/opt/likewise/bin/lwsm stop lsass

add your user/change password, etc. then

/opt/likewise/bin/lwsm start lsass
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.