Discussion Locked

Question about Samba:

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Dear Sir or Madam:

I have the following to ask you related to Samba written script.The questions are like the following:
How to write a script to automatically
1) add a Samba user when a Unix user is added
2) change the Samba user when a Unixuser is changed
3) delete the Samba user when a Unix user is deleted
Thank you so much for your assistance.

3 replies

by aaube

Write shell scripts that take user information (like username, password, home directory, etc) from the shell, then calls useradd, passwd, userdel, etc and another custom script that creates/modifies/deletes Samba users.

Then use these scripts instead of useradd, passwd, or userdel.

by choth

Would you mind to tell me in detail about script if you use script to configure this? Thanks anyway.

by ddotterw

If you want to use users in an NT Domain, see http://www.lplug.org/?March_2002 for a powerpoint persentation on setting up Samba with NT authentication. At the end there are several shell scripts to create accounts and permissions for a group of users. The scripts could easily be modified to create linux accounts as well.

This discussion is closed to new replies.