PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Dienste für Samba automatisch starten lassen



Hannibal19xx
12.11.04, 15:17
Hallo

Wie kann ich die 3 Dienste für Samba (smbd, nmbd und winbindd) beim Systemstart und Suse Linux 9.2 Pro automatisch starten lassen?


THX

cane
12.11.04, 16:04
Yast2 --> System --> Runlevel-Editor

mfg
cane

Hannibal19xx
12.11.04, 16:43
THX...geht nur anscheinend beim winbind nicht...jemand ne idee wieso?

nach nem neustart war er nämlich nicht gestartet...stehen alle bei 3 und 5...

Fly
13.11.04, 10:09
Hallo

Wie kann ich die 3 Dienste für Samba (smbd, nmbd und winbindd) beim Systemstart und Suse Linux 9.2 Pro automatisch starten lassen?


THX

mittels insserv smb, insserv winbind insserv nmb kann man die Dienste automatisch starten lassen, will man das wieder abstellen, dann nimmt man an den Befehl ein -r an also insserv -r smb... weitere Fragen siehe man insserv

HackThor
13.11.04, 11:13
Läuft der Winbind denn wenn du ihn per Hand startest (rcwinbind start)? Was sagt "testparm"? Was sagt "/var/log/samba/log.winbind" nach dem Start?
Eventuell hast du nur nen Fehler in der smb.conf, dann weigert sich der Winbind auch zu starten.

ciao

Michael

Hannibal19xx
13.11.04, 12:16
Wenn ich ihn per Swat starte, geht alles einwandfrei...

Testparm sagt folgendes:


dennis@Dennis:~> su
Password:
Dennis:/home/dennis # testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/dhcp.conf
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[users]"
Processing section "[groups]"
Processing section "[pdf]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Windows]"
Processing section "[hplaserjet1100]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Invalid combination of parameters for service hplaserjet1100. Level II oplocks can only be set if oplocks are also set.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = ARBEITSGRUPPE
security = SHARE
map to guest = Bad User
username map = /etc/samba/smbusers
printcap cache time = 750
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
printer admin = @ntadmin, root, administrator
cups options = raw
include = /etc/samba/dhcp.conf

[homes]
comment = Home Directories
valid users = %S
read only = No
inherit acls = Yes
browseable = No

[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[pdf]
comment = PDF creator
path = /var/tmp
create mask = 0600
printable = Yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z

[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

[Windows]
path = /Windows
read only = No
guest ok = Yes

[hplaserjet1100]
comment = Hewlett-Packard HP LaserJet 1100
path = /var/tmp
read only = No
create mask = 0600
guest ok = Yes
printable = Yes
printer name = hplaserjet1100
oplocks = No
share modes = No

Sieht jemand nen Fehler?

Hannibal19xx
13.11.04, 16:18
Hilft euch diese Meldung aus dem RunLevel-Editor evtl. weiter?




/etc/init.d/winbind start gab 6 (Programm ist nicht konfiguriert) zurück:
Starting Samba WINBIND daemon Samba WINBIND daemon not configured in /etc/samba/smb.conf.
You have to set parameters for 'idmap uid' and 'idmap gid'. ..skipped

Hannibal19xx
13.11.04, 17:54
Hat keiner mehr eine Idee?

Fly
13.11.04, 22:35
laut deiner smb.conf sehe ich nichts von winbind. Du solltest zuerst eine Dokumentation lesen, über Winbind gibt eh nicht viel zu studieren. Dann konfigurierst du winbind in smb.conf und /etc/nswitch.conf usw.

HackThor
13.11.04, 23:11
Steht doch in der Beschreibung drin:
Die Settings "idmap uid" / "idmap gid" (bzw. "winbind uid" / "winbind gid") fehlen. Ohne die startet der Winbind erst gar nicht. Schau mal in der Manpage der smb.conf nach.


ciao

Michael

Hannibal19xx
14.11.04, 12:06
Weiß jemand, welche zeilen ich dafür wo ergänzen muss?

Fly
14.11.04, 19:55
Weiß jemand, welche zeilen ich dafür wo ergänzen muss?

gib folgendes in [global] section der smb.conf ein:

winbind uid = 15000 - 20000
winbing gid = 15000 - 20000

aheinhold
14.11.04, 20:52
Hallo,

vielleicht solltest du dir wirklich mal die manpage von smb.conf ansehen!!
Da steht nämlich alles beschrieben.
Hier ein Auszug:
idmap backend (G)
The purpose of the idmap backend parameter is to allow idmap to NOT use the local
idmap tdb file to obtain SID to UID / GID mappings, but instead to obtain them
from a common LDAP backend. This way all domain members and controllers will have
the same UID and GID to SID mappings. This avoids the risk of UID / GID inconsis*
tencies across UNIX / Linux systems that are sharing information over protocols
other than SMB/CIFS (ie: NFS).

Default: idmap backend =

Example: idmap backend = ldap:ldap://ldapslave.example.com

winbind gid
This parameter is a synonym for idmap gid.

idmap gid (G)
The idmap gid parameter specifies the range of group ids that are allocated for
the purpose of mapping UNX groups to NT group SIDs. This range of group ids
should have no existing local or NIS groups within it as strange conflicts can
occur otherwise.

The availability of an idmap gid range is essential for correct operation of all
group mapping.

Default: idmap gid =

Example: idmap gid = 10000-20000

winbind uid
This parameter is a synonym for idmap uid.

idmap uid (G)
The idmap uid parameter specifies the range of user ids that are allocated for
use in mapping UNIX users to NT user SIDs. This range of ids should have no
existing local or NIS users within it as strange conflicts can occur otherwise.

Default: idmap uid =

Example: idmap uid = 10000-20000