Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.