I am using Mint 18.2 with all updates applied.
I can see the samba share on a Win7 machine named AIMCOMP-PC with same user name , But I am asked for password as I try to open the samba share.
I added following lines to smbd.conf
Code: Select all
[share]
path = /home/aimserver/share
valid users = aimserver2,aimserver
read only = No
create mask = 0777
directory mask = 0777:
Code: Select all
sudo smbpasswd -L -a aimcomp2-pc
New SMB password:
Retype new SMB password:
Failed to add entry for user aimcomp2-pc.
net usershare info
aimserver@aimserver /var/log/samba $ sudo net usershare info
[sudo] password for aimserver:
aimserver@aimserver /var/log/samba $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[share]
path = /home/aimserver/share
valid users = aimserver2 aimserver
read only = No
create mask = 0777
directory mask = 0777
directory mode = 0777