[Samba] Problems mapping a network drive on my PC to a LINUX directory using samba

Sonic sonicsmith at gmail.com
Mon Dec 7 23:21:00 UTC 2015


On Mon, Dec 7, 2015 at 5:16 PM, Kenneth Watanabe
<watana43 at unlv.nevada.edu> wrote:
>Below is the /etc/samba/smb.cnf file

By default the file is smb.conf unless you're specifically starting
Samba using a different named file.

> [share]
>        path = /home/kwatanabe/share
>        available = yes
>        valid users = kwatanabe
>        read only = No
>        browseable = yes
>        public = yes
>        writeable = yes
>        create mask = 0777
>        directory mask = 0777

For starters I would suggest simplifying your share definition:
In at least one case you use the main parameter and its synonym, too
easy to shoot yourself in the foot this way.
I also suggest using the main parameters and staying away from their
synonyms for consistency, readability, and troubleshooting - I've
wished for Samba to deprecate the synonyms for a long time.
You may consider dropping the parameters that are simply echoing the defaults.
Next drop the conflicting statements - you're stating only a specific
user is valid "valid users = kwatanabe", yet also claiming "guests ok
= yes" (you're using the synonym "public").
And temporarily drop the mask parameters until you have the basics down.

Leaves us with:
[share]
       path = /home/kwatanabe/share
       valid users = kwatanabe
       read only = No

Then make sure you've added the user kwatanabe to Samba and set its
Samba password.
Note that I'm not aware of "share" being a reserved name in Samba but
you may want to stay away from it as a section name as it is a
possibility.

Always test your smb.conf file with "testparm". And make sure the
guest account actually exists on your system "username map" can assist
if needed.

As to the missing protocols on you Windows system (you may need them),
that's for the Windows support forum :-)

Chris



More information about the samba mailing list