PDA

View Full Version : Samba Configuration


anw
24th January 2009, 18:55
Good day,

Any samba experts out there? I have it *almost* set up the way I want. Here's what I want to do (everything is referenced between a linux file server and a M$ workstation):

1. Anyone that has an account on the linux machine maps their home directory, the available USB drives, printers (there are two printers, one shared by a M$ workstation, one attempting to be shared by the linux workstation), and a large, public "guest" area that is also in /home (/home/guest).

2. If they don't have an account on the linux machine, anyone on the private 192.168.1/24 subnet has access to the guest area and printers.

The situation is that #1 works, #2 doesn't.

So, the bottom line, how do I give access to everyone on the private subnet to the guest area, even if they don't have a login?

Here's smb.conf:

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2008/09/06 20:20:02

[global]
workgroup = CSUNV-EXECUTIVE
printcap name = cups
disable spoolss = Yes
show add printer wizard = No
printing = cups
print command =
lpq command = %p
lprm command =

server string = Big Share
wins support = no
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[public]
comment = Public Data
path = /home/guest
force user = guest
read only = No

available = yes
browseable = no
public = yes
writable = yes
[usb_disk]
comment = USB disk on Linux
path = /media/usb
read only = No

available = no
browseable = no
public = no
writable = no
[printers]
comment = All Printers
path = /var/spool/samba
printer admin = root, anw
create mask = 0600
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No


TIA!
anw

anw
4th February 2009, 02:50
Well, for anyone who's interested (and because I try to maintain a minimum level of netiquette):

The lines
hosts deny = ALL
hosts allow = 192.168.1.plus some hints from http://tech.waltco.biz/2008/01/26/private-and-guest-no-password-prompt-samba-shares-with-securityuser/ did it!
anw

Raven Bryson
6th October 2009, 13:46
Hello everyone!

I think the sampa will be used for a linux servers.I dont know the configyration about samba.Can any one please explain about the configuration..