[Samba] Re: Samba with Domain User accounts
Jamrock
news_jamrock at yahoo.com
Sat Nov 8 13:08:17 GMT 2003
"anth jaz" <antsoundz at eudoramail.com> wrote in message
news:BKDKLCJBJFNDBAAA at whowhere.com...
There are a lot of users and equally a lot of passwords on the domain and
it isn't very efficient to add every user to the Linux box. Is there a way
to get around this. Have the Linux server communicate with the PDC or BDC
since it is a member of the domain?
Yes. You can use the add user script.
Create a group for the users. You could use staff for example.
groupadd staff
Add the following line to the global section of your smb.conf file.
add user script = useradd -c "Account from PDC"
-s /bin/false \ -d /home/%u -m -n -g staff %u
The commands do the following:
useradd -c "Account from PDC". Adds a user to the Linux box and call it
"Account from PDC".
-s /bin/false \ Prevents the user from logging in locally.
-d /home/%u -m Creates the user's home directory
-n -g staff %u Adds the user to the staff group
The commands may vary slightly from one distro to the next.
More information about the samba
mailing list