Gday,
You don't say that you want samba to work for other directories and users as
well, so I assume not. {that's a whole lot harder :) and I am also having
trouble with that.}

To state the bleedin obvious, there's a whole man page about smb.conf. I
havnt read the book you mention. but samba has changed from early versions.

in smb.conf,
hosts allow = ipaddr
will forbid all connections except host whose IP address matches ipaddr.

hosts deny = ipaddr
will allow all connections except hosts whose IP address matches ipaddr

valid users = name1 name2
only users in the list of names can access the service


The following listing will share the users home dir , /tmp, a "stuff" dir
that only rogersj and basil can use, and all printers. Users will need an
account and password on linux that matches their windows details.  Only the
hosts with IP's xxx.xxx.28.139 and 28.140 can connect to the samba machine. 
It is used in a WinNT domain as a peer, not a server.

you will need to change IP address's, workgroup and users names for your
setup. 

Only the active parameters are shown here, I removed the remarked out lines
and comments for shortness. the file seems to work o.k. with ver 2.05 samba.

-----------------------------------------------start smb.conf-

[global]
   workgroup = FAULTY
   server string = Small black bird
   hosts allow = xxx.xxx.28.139 xxx.xxx.28.140
   load printers = yes
   printing = lprng
  log file = /var/log/samba.d/smb.%m
   max log size = 50
   security = share
  password level = 8
  username level = 8
 password.
  unix password sync = Yes
  passwd program = /usr/bin/passwd %u
  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
   socket options = TCP_NODELAY 
   remote browse sync = xxx.xxx.28.190
   local master = no
   os level = 33
   preferred master = no
; name resolve order = wins lmhosts bcast
   wins server = xxx.xxx.28.190
   dns proxy = no 
#============================ Share Definitions
==============================
[homes]
   comment = Home Directories
   path = %H
   valid users = %S
   browseable = no
   writable = yes
   create mask = 0750
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   writable = no
   printable = yes
   create mask = 0700

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

[stuff]
   path = /stuff
   public = yes
   valid users = rogersj basil
   writable = yes
   printable = no

------------------------------------------------------------end smb.conf
> -----Original Message-----
> From: Jack Barnett [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 20 May 2000 8:15
> To: [EMAIL PROTECTED]
> Subject: Samba Config file?
> 
> 
> 
> Hi,
> 
> I am trying to setup samba on a Linux machine to export 2 
> directories to 2
> differant machines using 2 differant user name, for example
> 
> directories
> 
> /tmp
> /home/user/tmp
> 
> both should be shared, and only accept connections from IPs
> 
> 192.168.17.5
> 192.168.17.7
> 
> and valid on *either* username
> 
> bob
> tim
> 
> each user name has a differant password.
> 
> I have been at this for the last 4 hours and everytime I try to access
> anything I get a permissions denied error message or 
> something simlair, it
> hasn't worked once!  It needs to be alter secure and only 
> allow those 2
> hosts, and those 2 users read/write to both of those 
> directories and nothing
> else, any ideas?
> 
> I have tried editing the config file directly, have tried 
> using swat, man
> pages, "teach yourself samba in 24 hours" and am really lost 
> on how to get
> this working.
> 
> Any idea or sample config files would be greatly appeicated.
> 
> Thanks,
> Jack
> 
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to