[Samba] homedir login account issue

Thomas Schlosser tschlosser at gmx.net
Mon Sep 13 14:45:03 GMT 2004


Shahid Hussain <shahid at zonewave.net> schrieb am So, Sep 12:
> I am having problem with Samba 2.x.
> I am be able to login to Samba without a problem :).  When I login to 
> "Shahid" account it directed to "/home/shahid" but I can still can see 
> another user home dir too? why that
[...] 
> [global]
>    workgroup = MSHOME
>    netbios name = TEST
>    server string = FreeBSD Samba Server
>    encrypt passwords = Yes
> 
> [Share]
>    comment = This is Share
>    path = /tmp
>    read only = No
>    guest ok = Yes
> 
> [Shahid]
>    comment = Shahid Home Dir
>    path = /home/shahid
>    guest account = shahid
>    read only = No
> 
> [Testing]
>    comment = Test Home Dir
>    path = /home/test
>    guest account = test
>    read only = No 


You don't need a entry for every "homedir".
Delete the [Shahid] section and add the following to you
smb.conf:

[homes]
        comment = Home Directories
        valid users = %S
        browseable = No
        read only = No

To hide the other Share use the option:
browseable = No

Hope this will help you.


Regards,
Thomas




More information about the samba mailing list