Python Scripte - keine Berechtigung

Antworten
majoso1953
Beiträge: 30
Registriert: 28 Okt 2016, 12:08

Python Scripte - keine Berechtigung

Beitrag von majoso1953 »

Hallo zusammen,

mir ist aufgefallen, dass ich das Script für die Treiberintegration nicht mehr aufrufen kann. Es wird nicht mehr als ausführbar erkannt - auch bei "./crea..." nicht mehr gefunden. Als root bekommt auch eine Fehlermeldung.

Hat jemand einen Tipp :?: danke im Voraus

Code: Alles auswählen

Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

bash: /var/lib/opsi/depot/win10-v4.2-ltsc1809-ltv/create_driver_links.py: Keine Berechtigung

Code: Alles auswählen

-rw-rw----  1 opsiconfd pcpatch 11525 Okt 27  2021 create_driver_links.py
drwxrws---  3 opsiconfd pcpatch  4096 Jan 13  2022 custom
drwxrws---  3 opsiconfd pcpatch  4096 Aug  8 16:14 drivers
lrwxrwxrwx  1 root      pcpatch    62 Jan 13  2022 installfiles -> /var/lib/opsi/depot/#os_slink/win10-ltsc-2019-ltv/installfiles
drwxrws---  4 opsiconfd pcpatch  4096 Jan 13  2022 linutils
-rw-rw----  1 opsiconfd pcpatch  7276 Okt 27  2021 nt6_repartition.opsiscript
drwxrws---  3 opsiconfd pcpatch  4096 Jan 13  2022 opsi
-rw-rw----  1 opsiconfd pcpatch 32437 Okt 27  2021 opsipreparelib.py
-rw-rw----  1 opsiconfd pcpatch 52701 Okt 27  2021 opsisetuplib.py
-rw-rw----  1 opsiconfd pcpatch 24185 Okt 27  2021 setup.opsiscript
-rw-rw----  1 opsiconfd pcpatch 97474 Jan 13  2022 setup.py
-rw-rw----  1 opsiconfd pcpatch 21561 Okt 27  2021 show_drivers.py
-rw-rw----  1 opsiconfd pcpatch  1819 Jan 13  2022 win10-v4.2-ltsc1809-ltv.files
-rw-rw----  1 opsiconfd pcpatch 29477 Okt 27  2021 windows.png
drwxrws--- 41 opsiconfd pcpatch  4096 Feb 15  2019 winpe
drwxrws--- 41 opsiconfd pcpatch  4096 Dez  7  2021 winpe_uefi

Code: Alles auswählen

+++-========================-============-============-=========================================================
ii  libwhoopsie-preferences0 22           amd64        Ubuntu error tracker submission settings - shared library
ii  libwhoopsie0:amd64       0.2.69       amd64        Ubuntu error tracker submission - shared library
un  opsi-atftpd              <keine>      <keine>      (keine Beschreibung vorhanden)
ii  opsi-configed            4.0.7.6.34-2 all          OPSI config editor
un  opsi-depotserver         <keine>      <keine>      (keine Beschreibung vorhanden)
ii  opsi-directory-connector 47.8-1       amd64        opsi directory connector
ii  opsi-linux-bootimage     20220516-1   all          opsi bootimage for netboot tasks.
ii  opsi-linux-support       4.2.0.0-1    all          Configure system to be able to deploy Linux with opsi.
un  opsi-server              <keine>      <keine>      (keine Beschreibung vorhanden)
un  opsi-server-expert       <keine>      <keine>      (keine Beschreibung vorhanden)
ii  opsi-server-full         4.2.0.69-1   all          opsi server
un  opsi-tftp-hpa-server     <keine>      <keine>      (keine Beschreibung vorhanden)
un  opsi-tftpd               <keine>      <keine>      (keine Beschreibung vorhanden)
ii  opsi-tftpd-hpa           5.2.8-78     amd64        HPA's tftp server
ii  opsi-utils               4.2.0.182-1  amd64        Utilities for working with opsi
ii  opsi-windows-support     4.2.0.0-1    all          Install utilities useful for deploying Windows with opsi.
un  opsi4ucs                 <keine>      <keine>      (keine Beschreibung vorhanden)
ii  opsiconfd                4.2.0.282-1  amd64        opsi configuration service
ii  opsipxeconfd             4.2.0.30-1   amd64        opsi pxe configuration service
un  opsiwebservice           <keine>      <keine>      (keine Beschreibung vorhanden)
un  python-opsi              <keine>      <keine>      (keine Beschreibung vorhanden)
un  whoopsie                 <keine>      <keine>      (keine Beschreibung vorhanden)
ii  whoopsie-preferences     22           amd64        System preferences for error reporting
Jan.Schmidt
Beiträge: 439
Registriert: 08 Jul 2017, 12:02

Re: Python Scripte - keine Berechtigung

Beitrag von Jan.Schmidt »

bash: /var/lib/opsi/depot/win10-v4.2-ltsc1809-ltv/create_driver_links.py: Keine Berechtigung
bash
python
keine Berechtigung
ist die denn auch ausführbar?
majoso1953
Beiträge: 30
Registriert: 28 Okt 2016, 12:08

Re: Python Scripte - keine Berechtigung

Beitrag von majoso1953 »

:?: mit python aufgerufen kommt folgender Fehler ...

Code: Alles auswählen

root@ltg-vsrv-adm12:/var/lib/opsi/depot/win10-v4.2-ltsc1809-ltv# python3 ./create_driver_links.py
Traceback (most recent call last):
  File "./create_driver_links.py", line 46, in <module>
    from OPSI.Config import (
ModuleNotFoundError: No module named 'OPSI'
majoso1953
Beiträge: 30
Registriert: 28 Okt 2016, 12:08

Re: Python Scripte - keine Berechtigung

Beitrag von majoso1953 »

Hallo,

also wir haben die netboot Pakete neu installiert und damit funktioniert wieder alles.

... so einfach

trotzdem vielen Dank
Antworten