Changes

Jump to navigation Jump to search
Then add the user (it doesn't matter what you put for -p, it is going to be overwritten):
/usr/sbin/useradd -g username -G root smbusers -s /bin/bash -p xxxx -d /home/username -m username
where g is the primary group, G is other groups, p sets a password,
d declares a home directory and m makes the directory
$ smbpasswd -a alexjiang
$ usermod -G smbusers alexjiang
Then restart the samba services:
Anonymous user

Navigation menu