armbian / config

Armbian Linux configuration utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Samba install script changes linux password of user, not just their samba password

tonydiep opened this issue · comments

ISSUE

Using softy to install Samba changed my linux user password, left unable to log in.

TRIAGE

Samba install script changes linux password of user, not just their samba password.

useradd $SMBUSER
echo -ne "$SMBPASS\n$SMBPASS\n" | passwd $SMBUSER >/dev/null 2>&1
echo -ne "$SMBPASS\n$SMBPASS\n" | smbpasswd -a -s $SMBUSER >/dev/null 2>&1

WORKAROUND

Use chroot to change password back

FIX

Do not change user's linux password as part of samba install, just their samba password.

merged the PR