OSSG / surma

Tiny and simple web-interface for changing Samba passwords stored in smbpasswd file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

surma

simple Samba UseR MAnager

Quick install guide for ALT Linux

# apt-get install perl-CGI perl-Crypt-SmbHash lighttpd sudo
# chkconfig lighttpd --add
# chkconfig lighttpd on

$ tar xvfz surma.tar.gz
$ cd surma
# mkdir /var/www
# mv html /var/www
# mv bin/* /usr/local/bin
# chmod 750 /usr/local/bin/get_tmpsmbpw /usr/local/bin/put_tmpsmbpw
# chown :lighttpd  /usr/local/bin/get_tmpsmbpw /usr/local/bin/put_tmpsmbpw

# control sudo public
# echo "lighttpd  ALL=(ALL) NOPASSWD:/usr/local/bin/get_tmpsmbpw" >> /etc/sudoers
# echo "lighttpd  ALL=(ALL) NOPASSWD:/usr/local/bin/put_tmpsmbpw" >> /etc/sudoers

# subst '/"mod_cgi",$/ s/^#//' /etc/lighttpd/lighttpd.conf

# cat << __END__ >>/etc/lighttpd/lighttpd.conf
## surma addon
index-file.names += ("surma.pl")
cgi.assign        = ( ".pl"  => "/usr/bin/perl")
__END__

About

Tiny and simple web-interface for changing Samba passwords stored in smbpasswd file

License:GNU General Public License v3.0


Languages

Language:Perl 42.4%Language:Shell 23.8%Language:HTML 22.6%Language:Ruby 11.2%