script wrapper for smbpasswd?
- From: The Natural Philosopher <a@xxx>
- Date: Fri, 31 Aug 2007 05:58:06 +0100
What I want to achieve is:
an administrative user, properly authenticated elsewhere can from a php
generated form, submit a request to add users and passwords, or change
passwords, from an apache2 web server.
The man pages on smbpasswd are plain wrong: it no longer uses a password
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..
A script wrapper executed from the php with setuid set may be an approach..
Anyone done this sort of stuff?
Solutions NOT using apache are not relevant: The whole idea is to build
an integrated intranet machine in which EVERyTHING (apart from really
heavy stuff) is managed via n SQL database with php support and exported
via a web interface.
.
Relevant Pages
- Re: [PHP-WIN] Include Question!
... On 9 May 2008, at 20:49, Matthew Gonzales wrote: ... echo "I AM IN PAGE.PHP!"; ... That's not quite right and I think it's important to understand exactly what PHP does here. ... Once that file's done PHP returns to executing the original file from the statement after the include. ... (php.general) - Re: Capturing Windows Login Name
... annoyance of typing their user names and passwords again. ... I am well aware of how it works because I implemented the SASL PHP ... that among other protocols supports NTLM. ... server in the last step, ... (comp.lang.php) - Re: Why does smbpasswd not work for some users?
... I find some users I create have no problem having their smb ... passwords changed using smbpasswd. ... In stupidity and desperation I've managed to break my smbpasswd file. ... (Fedora) - Re: Question on password visibilty?
... > I have been learning PHP on my own time and have an Apache server on my ... Obviously security is not a problem on this setup. ... > Most use an HTML form that calls a separate php program. ... anybody can download the php script and look at the passwords. ... (comp.lang.php) - Re: OT but: How to let Perl know of a library location
... MySQL 5, and PHP 5. ... configures loads of perl modules from CPAN. ... 12, referer: http://lmgkoha:8080/cgi-bin/koha/acqui.simple/addbiblio.pl ... executing ldd on the executable. ... (comp.unix.solaris) |
|