Hi All,

I have just setup Samba so a few select users can now get at some
data without me running ftp (well some users find ftp difficult).
I have not setup Samba before and have got it working mostly. 

If I login to Windows as "mike" then [linda] and [mike] directories appear 
under the Network Neighbouhood. But you can browse *both* linda's and mikes
directories and windows does not ask for a username/password.

I want mike and linda on any Windows 98 machine to be able to browse
their directories on the Linux box (mikel & lindax) but I want them
to have to use a username & password to access them and I dont want anyone else to be 
able to browse the contents of
their directories.

I have tried logging in/out windows in case it is caching usernames/passwds and have 
also disabled mikel in smbpassword
to see how that changes access.
There is prob something that I am confused about. I have the Samba book in front of me 
open at Granting guest access and
have tried a few combinations but I am missing something.

If I login to windows as another user say "test" 
then Windows throws up a dialog box asking for a password but the 
"resource" in the Dialog box is set to \\MOL\IPC$ as I presume that there
is no name mapping for user "test"

The Windows is Windows 98.

smb.conf details follow:

I have a mapping that translates the Windows "mike" to UNIX "mikel" 
and likewise linda to lindax
        bash-2.04# cat username.map 
        mikel = mike
        lindax = linda

This is the relevant entries in smb.conf

username map = /usr/samba/lib/username.map
guest account = nobody
browseable = yes
security = user
encrypt passwords = yes

; I have added mikel and lindax to the smbpasswd file.
smb passwd file = /usr/samba/private/smbpasswd

[mike]
  comment = Mike's
  path = /home/mikel/windows
  browseable = yes
;  user = "mikel" ; dont need as I have a username mappping file
  writeable = yes
;  guest ok = no

[linda]
  comment = Linda's
  path = /home/lindax/Structures
  browseable = yes
;  user = "lindax"
  writeable = yes
;  guest ok = no

-- 
-------------------------------------------------------
Michael Lake
University of Technology, Sydney
Ph: 9514 1724 Fx: 9514 1628 email: [EMAIL PROTECTED]
-------------------------------------------------------

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to