----- Original Message ----- From: "Andrew Fellingham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 4:46 PM Subject: [Samba] Help to a wet-behind-the-ears Linux newbie
> Hi :-) > > I am struggling through a RH 8.0 install on a machine we are looking to > replace our Netware server. I got tapped to do this as I support the <snip> Try it like this first, I'm not familiar with SWAT, I prefer to do it my own way :) Can you ping the machine from one of the workstations? ping flashsrv or ping ip address the shares are examples of mine, you should easily be able to adapt them for your own use. Good luck. This simple config should get you going: [global] ## ## Basic Server Settings ## # workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4 workgroup = YourDomainOrWorkgroup netbiosname = FLASHSRV # server string is the equivalent of the NT Description field server string = FLASHSRV Samba File Store # This option is important for security. hosts allow = 172.17.2.3/255.255.0.0 127.0.0.1 # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used ; guest account = pcguest # this tells Samba to use a separate log file for each machine # that connects log file = /usr/local/samba/var/log.%m # How much information do you want to see in the logs? # default is only to log critical messages log level = 5 # Put a capping on the size of the log files (in Kb). max log size = 50 # Security mode. security = user # Most people will find that this option gives better performance. socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 ## ## Network Browsing ## # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply local master = no ## ## WINS & Name Resolution ## # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server wins support = no # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both wins server = WinsServerIPIfYouHaveOne # WINS Proxy - Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. ; wins proxy = yes # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS nslookups. dns proxy = no ## ## Passwords & Authentication ## # You may wish to use password encryption. encrypt passwords = yes # Should smbd obey the session and account lines in /etc/pam.d/samba ? # only available if --with-pam was used at compile time obey pam restrictions = yes # When using encrypted passwords, Samba can synchronize the local # UNIX password as well. You will also need the "passwd chat" parameters ; unix password sync = yes # how should smbd talk to the local system when changing a UNIX # password? See smb.conf(5) for details ; passwd chat = *new*password* %n\n *new*password* %n\n map to guest = bad user # This is only available if you compiled Samba to include --with-pam # Use PAM for changing the password ; pam password change = yes ## ## Printing ## printer admin = root, @usergroups, @lpd printing = lprng lpq command = /usr/bin/lpq -P %p lprm command = /usr/bin/lprm -P %p %j lppause command = /usr/sbin/lpc hold %p %j lpresume command = /usr/sbin/lpc release %p %j queuepause command = /usr/sbin/lpc stop %p queueresume command = /usr/sbin/lpc start %p oplocks = no kernel oplocks = no level2 oplocks = no #============================ Share Definitions ============================== # HP Laserjet 4500N Share. [lj4500n] comment = HP LaserJet 4500N path = /var/spool/samba read only = No guest ok = Yes printable = Yes print command = lpr -P lj4500n -r %s -h; rm %s printer name = lj4500n oplocks = No share modes = No admin users = @ITADMIN valid users = @EveryoneInMyDomain # Hidden printer drivers share. [print$] path = /usr/printers admin users = root @lp, @ITADMIN write list = root @lp, @ITADMIN create mask = 0755 guest ok = Yes # Home Directory Shares [homes] comment = Home Directories browseable = no writable = yes valid users = %S # This one is useful for people to share files [Temp] comment = Temporary File Space path = /usr/temp read only = no writable = yes public = yes create mask = 0700 # IT Users Share [IT] comment = IT Staff Only path = /usr/company/it read only = no writable = yes create mask = 0777 directory mask = 0777 security mask = 0777 valid users = @IT # A publicly accessible directory [Public] comment = Public Stuff path = /usr/public create mask = 0775 directory mask = 0775 security mask = 0777 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba