Skip to content

Commit 9e85a93

Browse files
committed
Fix smbpasswd typo
1 parent f287810 commit 9e85a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

svc/init.d/00-setpass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ ! -e /mnt/secure/etc/passwd ] || [ -n "$(find -L /mnt/ext1/password.txt -pr
77
fi
88
suff=":[U ]:LCT-00000001:"
99
pw="$(cat /mnt/secure/etc/passwd)"
10-
(echo "root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "$pw")"$suff"; echo "reader:100:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "")"$suff") > /mnt/secure/etc/samba/
10+
(echo "root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "$pw")"$suff"; echo "reader:100:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "")"$suff") > /mnt/secure/etc/samba/smbpasswd
1111

1212
echo -e "ftp:*:100:100::/mnt/ext1/public:/bin/false\nroot:"$(mkpasswd "$pw")":0:0::/mnt/ext1:/bin/false" > /mnt/secure/etc/ftpd.passwd
1313
chmod 700 /mnt/secure/etc/ftpd.passwd

0 commit comments

Comments
 (0)