fehler beim mounten von /mnt/opsi

Antworten
pimperator
Beiträge: 5
Registriert: 20 Jan 2010, 21:43

fehler beim mounten von /mnt/opsi

Beitrag von pimperator »

Hallo,
ich habe soeben opsi 3.4 auf Debian installiert und bekomme vergleichbar zu diesem hier eine Fehlermeldung:
viewtopic.php?f=5&t=988&p=4955&hilit=Po ... 48e3#p4955
Cannot mount: Command '***********************' failed (1):
mount error: could not resolve address for opsi-test: Name or service not known
No ip address specified and hostname not found
(Posix.py|575)
Der OPSI-Server ist quasi DHCP-Client, bekommt aber immer wieder die gleiche IP

hat jemand eine Idee?

smb.conf:

Code: Alles auswählen

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

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server

;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast

#### Networking ####

;   interfaces = 127.0.0.0/8 eth0

;   bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

#   security = user

   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

   pam password change = yes

########## Domains ###########

;   domain logons = yes

;   logon path = \\%N\profiles\%U

;   logon drive = H:
#   logon home = \\%N\%U

;   logon script = logon.cmd

; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g

########## Printing ##########

#   load printers = yes

;   printing = bsd
;   printcap name = /etc/printcap

;   printing = cups
;   printcap name = cups

############ Misc ############

;   include = /home/samba/etc/smb.conf.%m

;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

;   winbind enum groups = yes
;   winbind enum users = yes

;   usershare max shares = 100

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

[homes]
   comment = Home Directories
   browseable = no

   read only = yes

   create mask = 0700

   directory mask = 0700

   valid users = %S


;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes
;   share modes = no


;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700


[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

;   write list = root, @lpadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes


;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom


[opt_pcbin]
 available = yes
 comment = opsi depot share
 path = /opt/pcbin
 oplocks = no
 level2 oplocks = no
 writeable = yes
 invalid users = root

[opsi_config]
 available = yes
 comment = opsi config share
 path = /var/lib/opsi/config
 writeable = yes
 invalid users = root

[opsi_workbench]
 available = yes
 comment = opsi workbench
 path = /home/opsiproducts
 writeable = yes
 invalid users = root
 create mask = 0660
 directory mask = 0770
dpkg -l | grep opsi

Code: Alles auswählen

ii  opsi-atftpd                          0.7.dfsg-1.4                  advanced TFTP server - opsi version with pcre, fifo and max-bl
ii  opsi-configed                        1.4.05-2                      OPSI config editor
ii  opsi-depotserver                     3.4-1                         server fuer das Softwareverteilungssystem OPSI
ii  opsi-linux-bootimage                 20090911-1                    Linux-Bootimage fuer das Softwareverteilungssystem OPSI
ii  opsi-utils                           3.4-1                         OPSI utils
ii  opsiconfd                            2.0.0.19-5                    OPSI configuration service
ii  opsipxeconfd                         0.3.8-1                       OPSI PXE configuration daemon
ii  python-opsi                          3.4.0.2-2                     OPSI python library


testparm:

Code: Alles auswählen

opsi-test:~# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[opt_pcbin]"
Processing section "[opsi_config]"
Processing section "[opsi_workbench]"
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.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        server string = %h server
        obey pam restrictions = Yes
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d

[homes]
        comment = Home Directories
        valid users = %S
        create mask = 0700
        directory mask = 0700
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[opt_pcbin]
        comment = opsi depot share
        path = /opt/pcbin
        invalid users = root
        read only = No
        oplocks = No
        level2 oplocks = No

[opsi_config]
        comment = opsi config share
        path = /var/lib/opsi/config
        invalid users = root
        read only = No

[opsi_workbench]
        comment = opsi workbench
        path = /home/opsiproducts
        invalid users = root
        read only = No
        create mask = 0660
        directory mask = 0770
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: fehler beim mounten von /mnt/opsi

Beitrag von d.oertel »

Hi,
geht das mounten des shares von Hand (aus dem explorer)
a) mit dem netbios-namen
b) mit der IP-Nummer

gruss
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


pimperator
Beiträge: 5
Registriert: 20 Jan 2010, 21:43

Re: fehler beim mounten von /mnt/opsi

Beitrag von pimperator »

Hallo,
danke für die schnelle Antwort!
d.oertel hat geschrieben:Hi,
geht das mounten des shares von Hand (aus dem explorer)
a) mit dem netbios-namen
ja, im Konqueror mit "smb://adminuser@opsi-test" und dem smbpasswort für den adminuser geht es.
Welcher Account wird als smbclient-user verwendet? ich habe nur root, sql-root, pcpuser und adminuser.
Auf dem Client wird wenn ich mit dem Plugin "hwinvent" per PXE boote keines der o.g. Accounts akzeptiert :(
d.oertel hat geschrieben: b) mit der IP-Nummer
Ja, das funktioniert auch mit "smb://adminuser@[IP]" im konqueror

Lediglich in der Konsole bekomme ich mit "smbclient -L opsi-test" bekomme ich einen authentifizierungsfehler:

Code: Alles auswählen

opsi-test:~# smbclient -L localhost
Enter root's password:
session setup failed: NT_STATUS_LOGON_FAILURE
Gruesse

Erik

P.S.: opsi-test ist der hostname
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2045
Registriert: 29 Mai 2008, 15:14

Re: fehler beim mounten von /mnt/opsi

Beitrag von j.schneider »

Es wird der Benutzer pcpatch verwendet.


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


pimperator
Beiträge: 5
Registriert: 20 Jan 2010, 21:43

Re: fehler beim mounten von /mnt/opsi

Beitrag von pimperator »

j.schneider hat geschrieben:Es wird der Benutzer pcpatch verwendet.
nope, mit dem username kann ich mich auf der Konsole am pxe-client nicht einloggen. Könnte das die Ursache sein für den o.g. Fehler?

Übrigens: per Konqueror auf smb://pcpatch@opsi-test bekomme ich Zugriff

Hier nochmal der Output von "smbclient -L opsi-test":

Code: Alles auswählen

opsi-test:~# smbclient -L opsi-test
Enter root's password:
session setup failed: NT_STATUS_LOGON_FAILURE
opsi-test:~# su pcpatch
pcpatch@opsi-test:/root$ smbclient -L opsi-test
Enter pcpatch's password:
Domain=[OPSI-TEST] OS=[Unix] Server=[Samba 3.2.5]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        opt_pcbin       Disk      opsi depot share
        opsi_config     Disk      opsi config share
        opsi_workbench  Disk      opsi workbench
        IPC$            IPC       IPC Service (opsi-test server)
        pcpatch         Disk      Home Directories
Domain=[OPSI-TEST] OS=[Unix] Server=[Samba 3.2.5]
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: fehler beim mounten von /mnt/opsi

Beitrag von d.oertel »

Hi,

ich tippe auf ein Netbios-Namensauflösungs Problem (wins).

Bitte mal am bootimage
mit root/linux123 einloggen und von dort den share mounten mit

mount.cifs //opsi-test/opt_pcbin /mnt -o user=pcpatch

gruss
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


pimperator
Beiträge: 5
Registriert: 20 Jan 2010, 21:43

GELÖST: fehler beim mounten von /mnt/opsi

Beitrag von pimperator »

Hallo,
tatsächlich lag es an der fehlerhaften Namensauflösung.

Ich habe nun auch auf Opsi 4.0 gewechselt und bin vollauf zufrieden.

Erik
Antworten