On Friday 20 June 2003 8:02 pm, Joe Morris (NTM) wrote:
On 06/21/2003 12:25 AM, Allen wrote:
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.
Any ideas? -Allen
IIANM, that will only add the user to the Linux system, not to samba, it is separate, though I believe samba users DO have to be system users as well, but not all system users are samba users. See man smbpasswd.
-- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
Oops, I guess the last email I sent only went to the last guy that responded and not to the list. The problem was the names I was using. We use the machines serial number as its computer name on the network. Some of those serial numbers start with numbers and some start with letters. It just so happened that the first one I tried started with a letter and the others started with numbers. Linux doesn't allow user names that start with numbers so it wasn't allowing the script to enter the username. I changed all the computer names so they start with "PC" and they all work fine. Creates both system and samba names without a hitch. For some reason this didn't show up in the samba.log. I found out by attempting to manually run the script via ssh and got a "invalid user name" error.