Skip to content

Commit

Permalink
Fix smbpasswd typo
Browse files Browse the repository at this point in the history
  • Loading branch information
1waP2toxuw committed Nov 30, 2019
1 parent f287810 commit 9e85a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svc/init.d/00-setpass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ ! -e /mnt/secure/etc/passwd ] || [ -n "$(find -L /mnt/ext1/password.txt -pr
fi
suff=":[U ]:LCT-00000001:"
pw="$(cat /mnt/secure/etc/passwd)"
(echo "root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "$pw")"$suff"; echo "reader:100:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "")"$suff") > /mnt/secure/etc/samba/
(echo "root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "$pw")"$suff"; echo "reader:100:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:"$(ntlmhash "")"$suff") > /mnt/secure/etc/samba/smbpasswd

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

0 comments on commit 9e85a93

Please sign in to comment.