[ UP ] update cgi. add display percentege bar icons.
[archserver.git] / httpd / lighttpd / htdigest.lua
bloba1db4b7a2fc121cece4386c84022dede7fd9494f
1 #!/usr/bin/lua
2 ------------------------------------
3 -- author: kylin
4 -- date: 2008.10.10
5 ------------------------------------
7 local username = "admin"
8 local realm = "authorized users only"
9 local passfile = "passwd" -- "/etc/lighttpd/.passwd"
11 local cmd = string.format([[htdigest -c %s '%s' %s]], passfile, realm, username)
13 os.execute(cmd)
15 -- cp passwd /etc/lighttpd/.passwd