samba für mich

Post Reply
Message
Author
giand
Posts: 7
Joined: 29. Aug 2003 12:24

samba für mich

#1 Post by giand »

hallo leute ich hab ein riesen Problem......ich bekomm samba nicht zum laufen.
ich habe suse 8.1 installiert und alles geht....nuur kann ich mit windoof rechnern nicht auf das netzwerk bzw den linux sever zugreifen. er wird auch nicht in der netzumgebung angezeigt.
ich hab den workshop zu samba durchgearbeitet...........
kann mir jemand eine smb conf. und smbpasswd schreiben??
also ich habe drei windoof pc und den linux
alle 4 hängen über einen router mit switsch zusammen und können darüber online gehen.
ip's hab ich zugewiesen
Heimnetzwerk
router ip 192.168.2.1
pc1 ip 192.168.2.2
pc2 ip 192.168.2.3
pc3 ip 192.168.2.4
linux rechne ip 192.168.2.7
ich weiss das es viel verlangt ist, aber ich weiss echt nicht weiter......hab soviel gelesen das ich nun garnichts mehr weiss....
bitte helft mir....... viele grüsse micha......danke

demian

Re: samba für mich

#2 Post by demian »

Wenn die Samba Rechner nicht in der Windows Netzwerkumgebung auftauchen liegt das meist daran, dass der netbios name server nicht gestartet ist. Versuch mal nmbd zusätzlich zu smbd zu starten. Vielleicht geht's dann.

arno

Re: samba für mich

#3 Post by arno »

hi
smb.conf kann ich dir posten ist halt für einen pdc.
anpassen musst sie selber.
smbpasswd ist ein bisserl viel verlangt.
du musst den user erst auf linuxebene anlegen.
dann mit
smbpasswd -a username
einen samba user anlegen.

die clients brauchen die gleiche workgroup wie der server.

mfg
arno



[global]

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

# server string is the equivalent of the NT Description field
server string = Samba Server auf Host
netbios name = host
netbios aliases = test test2
#include = /etc/samba/test.conf
# This option is important for security. It allows you to restrict

hosts allow = 192.168.1. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
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
printing = cups

# 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 = /var/log/samba/%m.log

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

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

# The following is needed to keep smbclient from spouting spurious errors
# when Samba is built with support for SSL.
; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt

unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n
*Retype*new*password* %n
*passwd:*all*authentication*tokens*updated*successfully*



pam password change = yes

# Unix users can map to different SMB User names
username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
# include = /etc/samba/%L.conf

# This parameter will control whether or not Samba should obey PAM's
# account and session management directives. The default behavior is
# to use PAM for clear text authentication only and to ignore any
# account or session management. Note that Samba always ignores PAM
# for authentication in the case of encrypt passwords = yes

obey pam restrictions = yes

# 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
nt acl support = yes
# Browser Control Options:
# 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 = 64

# 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

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
domain logons = yes
domain admin group = root @arno
domain guest group = nobody @test
printer admin = root @arno
#printer admin = root
#domain group map = /etc/samba/pdcgroups
# 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 roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
logon path = \<!--no-->%L\profiles\%U
logon drive = H:
#username map = /etc/samba/usermap.txt
time server = yes

add user script = useradd -d /dev/null -g 100 -s /bin/false -M %u
dns proxy = no

# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no
#######ldap##########
#ldap admin dn = "cn=Samba Manager,ou=people,dc=root-riders"
#ldap server = localhost
#ldap ssl = start tls
#ldap port = 389
#ldap suffix = "ou=people,dc=root-riders

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user


# Un-comment the following and create the netlogon directory for Domain Logons
[netlogon]
comment = Network Logon Service
path = /var2/pdc/netlogon
guest ok = yes
writable = no
share modes = no



[profiles]

path = /tmp
browseable = no
create mask = 0600
directory mask = 0700
read only = no

giand
Posts: 7
Joined: 29. Aug 2003 12:24

Re: samba für mich

#4 Post by giand »

hallo.... danke für die infos.........jetzt geht es ich kann über windoof zugreifen....nur ich hab noch das problem
das ich in dem ordner bzw unterordner nichts speichern kann. fehlermeldung schreibgeschützt.auf dem linuxrechner hab ich den schreib und leseschutz entfernt...kann es an der smd conf liegen?? ich poste die mal hier,hoffe ihr könnt mir nochmal helfen. danke micha

[global]
workgroup = HEIMNETZ
security = SHARE
encrypt passwords = Yes
log level = 1
syslog = 0
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
printcap name = CUPS
os level = 2
path = /server
printing = cups
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
delete readonly = Yes

[incoming]
comment = Hier kann alles rein!
guest ok = Yes

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

arno

Re: samba für mich

#5 Post by arno »

hi

das haut sicher nicht hin da da keine pfad angabe ist
>>[incoming]
>>comment = Hier kann alles rein!
>>guest ok = Yes
probier mal path=/tmp
weil auf tmp kann jeder user schreiben.
dann siehst gleich mal ob es an den berechtigungen liegt

mfg
arno

giand
Posts: 7
Joined: 29. Aug 2003 12:24

Re: samba für mich

#6 Post by giand »

pfad angabe hab ich hier gemacht
[global]
workgroup = HEIMNETZ
security = SHARE
encrypt passwords = Yes
log level = 1
syslog = 0
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
printcap name = CUPS
os level = 2
path = /server
printing = cups
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
delete readonly = Yes

hab einen extra ordner erstellt mit unterordnern.
dann hab ich unter
[incoming]
comment = Hier kann alles rein!
guest ok = Yes

ein writable = yes eingfügt.........nun geht es.......

es wird vielleicht nicht die feine englische art sein.... aber ich freu mich das ich das hinbekommen habe.....
learn by doing*gg*
danke für deine hilfen.....werde wohl noch öfter nerven..........das ist ein tolles board hier,es ist nicht umbedingt üblich das newbys geholfen wird in linux boarden,,,,,,,,,,hab ich jedenfalls festgestellt.
danke....michael

arno

Re: samba für mich

#7 Post by arno »

hi

ich würde die pfadangabe nicht in der globalsection machen.
ist nicht wirklich sauber.

das wichtigste für linux ist lesen und google.

und wenn du richtig fragst (net, freundlich usw.)
bekommst du hier fast immer eine antwort.

mfg
arno

Post Reply