[Samba] security level = user

TAKAHASHI Motonobu monyo at monyo.com
Sun Sep 9 05:50:02 MDT 2012


From: "Manuel Santiago" <manuel.santiago at sapo.pt>
Date: Thu, 6 Sep 2012 11:50:30 +0100

> I have debian squeeze system installed, and samba server 3.5.6 installed.
> 
> I need in some shares force to user put username and password to access
> data, but if I use share level, the system doesn´t ask for username, and if
> I use USER Level I need to make login to see all shares even public share.
> 
> I need user level for each folder shared and for public share and first
> access to the computer without username or password (guest).

Samba cannot assosiate different username and password for each share
as well as Windows.

If you set as below,

-----
  [global]
    map to guest = bad user

  [public-share]
    guest ok = yes

  [private-share]
    guest ok = no

  [another-private-share]
    guest ok = no

# "guest ok = no" is default.
-----

you can access to the Samba box without username/password, list shares,
access into the "public-share" and are asked about username/password
when you try to access to "private-share". But once you input correct
username/password for the share, you always access to another shares
("another-private-share" in the example above) with the input
username/password.

---
TAKAHASHI Motonobu <monyo at monyo.com>










More information about the samba mailing list