Click to See Complete Forum and Search --> : samba and windows 2K
graphixx
05-07-2003, 06:24 PM
Hi All,
I am trying to setup a samba domain server. I am able to get Win98 clients to log on with no issues but I get some strange (to me anyways :p errors) with 2K. I originally had error "Using computer account. Log on with global account or user account to access server". That problem was solved with the following steps:
1.
# adduser -g machines -d /dev/null -s /bin/false -c computername -n computername$
2.
# passwd -l computername$
3.
# smbpasswd -a -m computername
Now I get "specified user does not exist error". The user is a Linux user and is setup in Samba, but whatever I may have screwed up, so I used the following steps to add a new user:
1.
# adduser test
2.
# passwd test
# gave passwd
3.
# smbpasswd -a test
# gave passwd
4.
# /etc/init/smb restart
But I still get same "specified user does not exist error" with test :confused:
Anyone willing to help me out on this?:D
P.S. Using current samba and recent boxed redhat (not sure of ver. at moment)
graphixx
05-08-2003, 06:33 PM
UPDATE:
After more searching I found that I MUST use "root" when connecting to domain from windows 2000. I then made sure "root" was added to smbpasswd and restarted samba. However I still get user does not exist error. What is strange to me is, if I purposely type wrong password for root when trying to connect, I get "logon failure: unknown user name or bad password" which is as I understand a common error for a bad password. This implies to me that user does indeed exist.
I have also tried manually entering machine name into /etc/passwd, /etc/shadow, and added proper group in /etc/groups according to The Unofficial Samba HOWTO.
I am at wits end here and would really appreciate any ideas/suggestions.
TIA
s0rtov
05-08-2003, 06:39 PM
Hi,
I am quite new to this but, have you done a "smbadduser"?
graphixx
05-08-2003, 08:30 PM
It is my understanding that smbpasswd with the "-a" does that already. I probally should've mentioned I can access sever shares through network neighborhood it's just domain logon I am having trouble with.
Thanks for the reply tho:D
graphixx
05-22-2003, 07:11 PM
I now have Samba working properly for all Windows machines execpt for my own workstation (which I musta f'ed up:rolleyes: )
I still get "Specified user does not exist" when loggingon to Domain (I am using root account). All other Win2k machines in office work fine, so it must be a Windows specific problem I am having. Anybody have any ideas before I reinstall :o
cowanrl
05-24-2003, 03:19 PM
I think before I re-installed the Win2k machine, I'd try this if you haven't already done so.
1. Delete any drive mappings you have to the Samba domain controller on your Win2k machine.
2. Create a local user named root on your Win2k machine with the same password as root on the Samba server. Give the user admin rights to the Win2k machine. This user can be deleted later.
3. Un-join the domain on your Win2k machine. Basically you would join a workgroup but be sure the workgroup has a different name than the Samba domain.
3. Power down the Win2k machine
4. Delete and then recreate the machine account for your Win2k machine on the Samba domain controller. Since you have all of your other Win2k machines working properly, you obviously know how to do this.
5. Fire up the Win2k machine and log in with the local root user. Do not browse the network with Windows Explorer! You don't want to have any open connections to your Samba domain controller.
6. Re-join the Samba domain. If prompted for a username and password with permission to join the domain, use the root account.
After you reboot the Win2k machine, try to log in to the domain with the username of your choice.
Hope this helps in some way. I've done this before. I think what happens is that even though you didn't get any error messages when you joined the domain, you never actually joined the domain correctly
graphixx
05-24-2003, 05:08 PM
Thanks, I will give your suggestions a try on Tues. (Love the long weekends:p )
I've done this before. I think what happens is that even though you didn't get any error messages when you joined the domain, you never actually joined the domain correctly
I don't think it changes your advice, but the error message I get is when I am trying to join the domain, not log on, so I know I never succesfully joined. Anyways thanks again and I will give it a try.
graphixx
05-27-2003, 05:39 PM
All fixed;) I had to remove all refrences to my machine from the server (I had duplicates for some reason in /etc/passwd), rejoin a workgroup, like cowanrl outlined and then join domain and all is good.