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

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

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

Post by deepakdeshp »

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

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

Post by deepakdeshp »

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.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Networking”