Stephen Carville
2006-Aug-14 03:22 UTC
[Samba] Replacing Windows account with local account.
OK, I'm stumped. I have a Samba server (v3.0.20a) with security=DOMAIN and using winbind to authenticate non-local users against a W2K domain controller. This setup happily serves out home directories and about six other shares. I need to add a local UNIX account for a formerly Windows only user. When I try useradd I get: user <username> exists. This makes sense becasue of winbind. What I cannot figure out is how 'erase' him so I can create a local user account. I've read thru the man ages but I can't see how to do this.
Stephen Carville wrote:> OK, I'm stumped. > > I have a Samba server (v3.0.20a) with security=DOMAIN and using winbind > to authenticate non-local users against a W2K domain controller. This > setup happily serves out home directories and about six other shares. > > I need to add a local UNIX account for a formerly Windows only user. > When I try useradd I get: user <username> exists. This makes sense > becasue of winbind. What I cannot figure out is how 'erase' him so I > can create a local user account. I've read thru the man ages but I > can't see how to do this.Did you try removing the account from Windows? Otherwise, what does he need as a Unix user? Does his account exist in the /etc/passwd file or is it just his "home" directory that exists locally? If the former, it would seem you don't need to create his account. If the latter, did you try renaming his old home directory?
Stephen Carville
2006-Aug-14 05:43 UTC
[Samba] Replacing Windows account with local account.
Stephen Carville wrote:> OK, I'm stumped. > > I have a Samba server (v3.0.20a) with security=DOMAIN and using winbind > to authenticate non-local users against a W2K domain controller. This > setup happily serves out home directories and about six other shares. > > I need to add a local UNIX account for a formerly Windows only user. > When I try useradd I get: user <username> exists. This makes sense > becasue of winbind. What I cannot figure out is how 'erase' him so I > can create a local user account. I've read thru the man ages but I > can't see how to do this.I'm thinking I can comment out the windbind in /etc/nswitch.conf, create a unix user, set up the mappng in smbusers, then uncomment winbind. I'll try that Monday. -- Stephen
Stephen Carville
2006-Aug-14 06:53 UTC
[Samba] Replacing Windows account with local account.
OK, I'm stumped. I have a Samba server (v3.0.20a) with security=DOMAIN and using winbind to authenticate non-local users against a W2K domain controller. This setup happily serves out home directories and about six other shares. I need to add a local UNIX account for a formerly Windows only user. When I try useradd I get: user <username> exists. This makes sense becasue of winbind. What I cannot figure out is how 'erase' him so I can create a local user account. I've read thru the man ages but I can't see how to do this. -- Stephen Carville -- polluting the ranks of skeptics since 1995. --------------------------------------------------------------- As democracy is perfected, the office of president represents, more and more closely, the inner soul of the people. On some great and glorious day the plain folks of the land will reach their heart's desire at last and the White House will be adorned by a downright moron. -- H. L. Mencken