We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f287810 commit 9e85a93Copy full SHA for 9e85a93
svc/init.d/00-setpass.sh
@@ -7,7 +7,7 @@ if [ ! -e /mnt/secure/etc/passwd ] || [ -n "$(find -L /mnt/ext1/password.txt -pr
7
fi
8
suff=":[U ]:LCT-00000001:"
9
pw="$(cat /mnt/secure/etc/passwd)"
10
-(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
11
12
echo -e "ftp:*:100:100::/mnt/ext1/public:/bin/false\nroot:"$(mkpasswd "$pw")":0:0::/mnt/ext1:/bin/false" > /mnt/secure/etc/ftpd.passwd
13
chmod 700 /mnt/secure/etc/ftpd.passwd
0 commit comments