Fri Nov 21 11:13:24 GMT 2008

| home | dvd_avi | exim | links | mac | other | proxy | running | services | webmail |

RHEL4_custom_dvd
basic_commands
encryption
error
imp_webmail_install
ipcop
kickstart
lazy_website
linux_config
network_logins
organisations
password_generator
smbpasswd_html

smbpasswd html interface

I had a peek about and could not find a web interface for smbpasswd. I have been helping a friend run a school network and after a year they would still rather use something that a text interface.

I had a look at webmin; however although I could add unix users I could not change samba passwords and the swat interface was not helpful. (In addition I did not want people playing with shares or other configuration options in SWAT). There is also smbpasswd.php as an rpm package, which had a load of pear dependencies, which were not a standard part of a distribution and I did not want random items to break on upgrade.

I have three files that require amendments to the sudoers file and server side includes enabled. I should also mention that this has been thrown together and is on a local network and is only accessed using ssl and is behind a password protected page. It is not secure and will allow people to do nasty things to your smbpasswd file.

The files are here: smbpasswd.php; write_data.php; final.shtml.

The changes to sudoers is as follows (using visudo):
apache ALL= NOPASSWD: /usr/bin/smbpasswd -s -a

The changes to the httpd.conf file to enable includes is:
<Directory /var/www/html/sambapath>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Directory>


| home | file_sharing | files | unix_web_gui |



Valid HTML 4.01! Creative Commons License
This website is licensed under a Creative Commons License.