Re: script wrapper for smbpasswd?



Davide Bianchi wrote:
On 2007-08-31, The Natural Philosopher <a@xxx> wrote:
file - instead it is all munged up in a passwd.tdb format, so it seems that executing smbpasswd is the best approach: However when executed by (essentially) the web server, - user www-data - it won't have sufficient permissions to utilize smbpasswd..

This is where you have to start reading up no suexec and how to run
scripts with a different user.

Oh been ther, done that, just wondered if smbpasswd would work the same in a rooted script as it does in a root console session.
Anyone done this sort of stuff?

Yes, and is a very lame way of doing it, better to use a different
authentication system for samba (ldap/sql/wathever).

Now that IS a thought. I didn't know you could...

SQL would be ideal..I'll go and research that..
Davide

.