[SOLVED]Samba share opens but I am asked password , so share cant be browsed

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
deepakdeshp
Level 8
Level 8
Posts: 2493
Joined: Sun Aug 09, 2015 10:00 am

[SOLVED]Samba share opens but I am asked password , so share cant be browsed

Postby deepakdeshp » Tue Oct 24, 2017 3:22 am

Hello ,
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


Any suggestions will be gratefully accepted.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB

deepakdeshp
Level 8
Level 8
Posts: 2493
Joined: Sun Aug 09, 2015 10:00 am

Re: [SOLVED]Samba share opens but I am asked password , so share cant be browsed

Postby deepakdeshp » Tue Oct 24, 2017 6:51 am

I was trying to add Windows user with smbpasswd command . After I added Mint user with smbpasswd, everything is working.

Code: Select all

smbpasswd -a mintuser
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB


Return to “Other networking topics”