Jump to content

samba and 9.0 final


Guest
 Share

Recommended Posts

Rickles, did you manually configure samba.conf from localhost:901?  I had to do that as the control center got me nowhere? I, too have had samba and cups configuration problems with 9.0 that I never had with 8.1 and 8.2 (still don't have printing going, my printer's on a Win xp system on my LAN).

 

Yes, I have try configuring with swat on port 901, still no joy, however I do have printing working but that was setup during installation. :roll:

Link to comment
Share on other sites

#======================= Global Settings =====================================

[global]

 

# 1. Server Naming Options:

# workgroup = NT-Domain-Name or Workgroup-Name

workgroup = st-wilfrids

 

# server string is the equivalent of the NT Description field

server string = The Server

 

# 2. Printing Options:

# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK

# (as cups is now used in linux-mandrake 7.2 by default)

# if you want to automatically load your printer list rather

# than setting them up individually then you'll need this

printcap name = lpstat

load printers = yes

 

# It should not be necessary to spell out the print system type unless

# yours is non-standard. Currently supported print systems include:

# bsd, sysv, plp, lprng, aix, hpux, qnx, cups

printing = cups

 

# Samba 2.2 supports the Windows NT-style point-and-print feature. To

# use this, you need to be able to upload print drivers to the samba

# server. The printer admins (or root) may install drivers onto samba.

# Note that this feature uses the print$ share, and not the printers share,

# so you will need to enable it below.

# This parameter works like domain admins:

# printer admin = @<group> <user>

printer admin = @teachers

 

# 3. Logging Options:

# this tells Samba to use a separate log file for each machine

# that connects

log file = /var/log/samba/log.%m

 

# Put a capping on the size of the log files (in Kb).

max log size = 50

 

# Set the log (verbosity) level (0 <= log level <= 10)

; log level = 3

 

# 4. Security Options:

# This option is important for security. It allows you to restrict

# connections to machines which are on your local network. The

# following example restricts access to two C class networks and

# the "loopback" interface. For more examples of the syntax see

# the smb.conf man page. Do not enable this if (tcp/ip) name resolution does

# not work for all the hosts in your network.

hosts allow = 10.0.0. 127.

 

# Uncomment this if you want a guest account, you must add this to /etc/passwd

# otherwise the user "nobody" is used

; guest account = pcguest

 

# Security mode. Most people will want user level security. See

# security_level.txt for details.

security = user

# Use password server option only with security = server or security = domain

# When using security = domain, you should use password server = *

; password server = <NT-Server-Name>

 

# Password Level allows matching of _n_ characters of the password for

# all combinations of upper and lower case.

password level = 8

username level = 8

 

domain admin group = root @installer

 

# You may wish to use password encryption. Please read

# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.

# Do not enable this option unless you have read those documents

# Encrypted passwords are required for any use of samba in a Windows NT domain

# The smbpasswd file is only required by a server doing authentication, thus

# members of a domain do not need one.

encrypt passwords = yes

smb passwd file = /etc/samba/smbpasswd

 

# The following are needed to allow password changing from Windows to

# also update the Linux system password.

# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.

# NOTE2: You do NOT need these to allow workstations to change only

# the encrypted SMB passwords. They allow the Unix password

# to be kept in sync with the SMB password.

; unix password sync = Yes

; passwd program = /usr/bin/passwd %u

; passwd chat = *New*UNIX*password* %nn *ReType*new*UNIX*password* %nn

;*passwd:*all*authentication*tokens*updated*successfully*

 

# Unix users can map to different SMB User names

username map = /etc/samba/smbusers

 

 

 

# 5. Browser Control and Networking Options:

# Most people will find that this option gives better performance.

# See speed.txt and the manual pages for details

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

 

# Configure Samba to use multiple interfaces

# If you have multiple network interfaces then you must list them

# here. See the man page for details.

interfaces = 10.0.0.1/24

 

 

 

# 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 = yes

 

# OS Level determines the precedence of this server in master browser

# elections. The default value should be reasonable

os level = 66

 

# Domain Master specifies Samba to be the Domain Master Browser. This

# allows Samba to collate browse lists between subnets. Don't use this

# if you already have a Windows NT domain controller doing this job

domain master = yes

 

# Preferred Master causes Samba to force a local browser election on startup

# and gives it a slightly higher chance of winning the election

preferred master = yes

 

# 6. Domain Control Options:

# Enable this if you want Samba to be a domain logon server for

# Windows95 workstations or Primary Domain Controller for WinNT and Win2k

domain logons = yes

 

# if you enable domain logons then you may want a per-machine or

# per user logon script

# run a specific logon batch file per workstation (machine)

; logon script = %m.bat

# run a specific logon batch file per username

logon script = %U.bat

 

# Where to store roaming profiles for WinNT and Win2k

# %L substitutes for this servers netbios name, %U is username

# You must uncomment the [Profiles] share below

logon path = %LProfiles%U

 

# Where to store roaming profiles for Win9x. Be careful with this as it also

# impacts where Win2k finds it's /HOME share

logon home = %L%U.profile

 

# The add user script is used by a domain member to add local user accounts

# that have been authenticated by the domain controller, or by the domain

# controller to add local machine accounts when adding machines to the domain.

# The script must work from the command line when replacing the macros,

# or the operation will fail. Check that groups exist if forcing a group.

# Script for domain controller for adding machines:

add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u

# Script for domain member for addig local accounts for authenticated users:

; add user script = /usr/sbin/useradd -s /bin/false %u

 

 

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names

# via DNS nslookups. The built-in default for versions 1.9.17 is yes,

# this has been changed in version 1.9.18 to no.

dns proxy = no

 

 

 

 

 

 

#============================ Share Definitions ==============================

# Gives authenticated users access to their homes

[homes]

comment = Home Directories

browseable = no

writable = yes

 

# The place where windows stores roaming/roving profiles

[profiles]

path = /home/share/profiles

browseable = no

writeable = yes

root preexec = /bin/mkdir /home/share/profiles/%U;

/bin/chown %U /home/share/profiles/%U;

/bin/chmod 700 /home/share/profiles/%U

 

# A place for students to share files among each other

[students]

comment = File sharing among students

path = /home/share/students

public = yes

writeable = no

write list = @students, @teachers, @admin, @installer

force create mode = 664

force directory mode = 775

force group = @students

 

# A place for teachers to supply files to students

[Learning]

comment = Files provided by teachers to students

path = /home/share/learning

writeable = no

write list = @teachers, @admin, @installer

force create mode = 664

force directory mode = 775

force group = @teachers

 

# A place for teachers to share files among each other

[Teachers]

comment = File sharing among teachers

path = /home/share/teachers

browseable = no

writeable = yes

valid users = @teachers, @admin, @installer

force create mode = 664

force directory mode = 775

force group = @teachers

 

# Teachers and admins can see any students home directory

[AdminStu]

comment = Students directories for administration purposes

path = /home/students

browseable = no

public = no

writeable = yes

valid users = @teachers, @admin, @installer

force create mode = 664

force directory mode = 775

force group = @teachers

 

# Admins can see techers directories for administration purposes

[AdminTeach]

comment = Teachers directories for administration purposes

path = /home/teachers

browseable = no

public = no

writeable = yes

valid users = @admin, @installer

force create mode = 664

force directory mode = 775

force group = @admin

 

# Directory for server installed applications

[Apps]

comment = Server installed applications

path = /home/share/applications

browseable = no

writeable = no

write list = @installer

force create mode = 664

force directory mode = 775

force group = @installer

 

# Directory to contain the boot images

[GHOST]

comment = Boot images to boot workstations

path = /home/share/bootimages

writeable = no

browseable = no

write list = @installer

force create mode = 664

force directory mode = 775

force group = @installer

 

 

# The netlogon directory for Domain Logons

[netlogon]

comment = Network Logon Service

path = /home/share/netlogon

guest ok = no

writable = no

browseable = no

share modes = no

root preexec = /home/share/scripts/makelogonscript.1 %U %L %G

root postexec = rm /home/share/netlogon/%U.bat

 

[EAS]

path = /home/share/EAS

writable = yes

comment =

public = yes

available = yes

 

 

It Works ok in 8.2, but not 9.0

Link to comment
Share on other sites

I think its a good bet that shorewall could be blocking that.  I couldn't even connect to the internet on my first boot into MDK9.  I had to disable the firewall to do that.

 

Try disabling it and see what happens.

 

it was shorewall stoping it, any one know how to configure it so samba and internet sharing can run together

Link to comment
Share on other sites

  • 2 weeks later...
it was shorewall stoping it, any one know how to configure it so samba and internet sharing can run together

 

In the file /etc/shorewall/rules, you should see 4 rules, that start like this:

 

ACCEPT masq fw tcp

ACCEPT masq fw udp

ACCEPT fw masq tcp

ACCEPT fw masq udp

 

Add ports 137-139 in the list of allowed ports, mine looks something like this now:

ACCEPT masq fw tcp domain,bootps,http,https,631,imap,pop3,smtp,nntp,ntp,137,138,139,ssh -

ACCEPT masq fw udp domain,bootps,http,https,631,imap,pop3,smtp,nntp,ntp,137,138,139,ssh -

ACCEPT fw masq tcp 631,137,138,139 -

ACCEPT fw masq udp 631,137,138,139 -

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...