Allen
2003-Jun-20 15:59 UTC
[Samba] Samba 2.2.7a - adduser script only worked the first time
I have WinXP machines loging into a samba domain. I am using this add user script: add user script = useradd -d /dev/null -g 300 -s /bin/false -M %u This worked beautifully with the first WinXP machine I set up. I immediately booted up a second machine and got the "Access Denied" error. I have tried two more computers since and keep getting the same thing but the first machine still logs in and out fine. The samba.log keeps saying that the user does not exist on the domain. All of my WinXP machines were ghosted from the same image so I don't believe the problem is on that side. Any ideas? -Allen ---------------------------- Allen Seelye "DeadTOm" Aseelye@blackfoot.net ICQ# 8286205
Gémes Géza
2003-Jun-20 18:11 UTC
[Samba] Samba 2.2.7a - adduser script only worked the first time
Allen ?rta:>I have WinXP machines loging into a samba domain. I am using this add user script: > > >add user script = useradd -d /dev/null -g 300 -s /bin/false -M %u > >This worked beautifully with the first WinXP machine I set up. I immediately >booted up a second machine and got the "Access Denied" error. I have tried two >more computers since and keep getting the same thing but the first machine still >logs in and out fine. The samba.log keeps saying that the user does not exist >on the domain. >All of my WinXP machines were ghosted from the same image so I don't believe >the problem is on that side. > >Any ideas? >-Allen >---------------------------- >Allen Seelye >"DeadTOm" >Aseelye@blackfoot.net >ICQ# 8286205 >Sorry if it sounds fullish, but have you checked, that your computers don't have all the same name, if you ghost them, you first need to change their names. Best Regards Geza Gemes
Allen
2003-Jun-20 18:51 UTC
[Samba] Samba 2.2.7a - adduser script only worked the first time
>Allen ?rta: > >>I have WinXP machines loging into a samba domain. I am using this add userscript:>> >> >>add user script = useradd -d /dev/null -g 300 -s /bin/false -M %u >> >>This worked beautifully with the first WinXP machine I set up. I immediately>>booted up a second machine and got the "Access Denied" error. I have triedtwo>>more computers since and keep getting the same thing but the first machinestill>>logs in and out fine. The samba.log keeps saying that the user does not exist>>on the domain. >>All of my WinXP machines were ghosted from the same image so I don't believe>>the problem is on that side. >> >>Any ideas? >>-Allen >>---------------------------- >>Allen Seelye >>"DeadTOm" >>Aseelye@blackfoot.net >>ICQ# 8286205 >> >Sorry if it sounds fullish, but have you checked, that your computers don'thave all the same name, if you ghost them, you first need to change their names.> >Best Regards > >Geza Gemes > >Actually that's not a stupid question, that happened when we first started using Ghost. DOH! But I did figured it out. We are using the serial numbers of the machines as their computer names. Some of them start with letters and some of them start with numbers. Linux doesn't won't allow usernames that begins with a number. So when the add user script was running it would hit that name, fail to create a system user, then smbpasswd couldn't enter it because there was no system user, then windows would kick back an 'access denied' message. It would have been nice for that to show up in the samba.log but it didn't. I found out by manually entering the computer name at the console and seeing the 'invcalid username' message. We'll just have to modify our naming convention a little bit for the computers. Thanks for the response though. -Allen ---------------------------- Allen Seelye "DeadTOm" Aseelye@blackfoot.net ICQ# 8286205