projects
/
infodrom
/
musiikki-web.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Finish web interface for admin
[infodrom/musiikki-web.git]
/
bin
/
musiikki-shares
1
#! /bin/sh
2
3
read ro_passwd
4
read rw_passwd
5
6
logger -t musiikki "Samba: newpasswd"
7
8
if [ -n "${ro_passwd}" ]
9
then
10
(
11
echo "${ro_passwd}"
12
echo "${ro_passwd}"
13
) | /usr/bin/smbpasswd -s "musicread" > /dev/null 2>&1
14
fi
15
16
if [ -n "${rw_passwd}" ]
17
then
18
(
19
echo "${rw_passwd}"
20
echo "${rw_passwd}"
21
) | /usr/bin/smbpasswd -s "musicwrite" > /dev/null 2>&1
22
23
fi