(SOLVED) opsi-setup --set-rights not working

Antworten
loggenk
Beiträge: 163
Registriert: 15 Nov 2012, 17:34

(SOLVED) opsi-setup --set-rights not working

Beitrag von loggenk »

Hi,

I created a new win10-x64 image. However, when i try to set the rights nothing happens :

root@opsi:/var/lib/opsi/depot# opsi-set-rights win10-x64/
root@opsi:/var/lib/opsi/depot#

Thats all I'll see.
When I try to opsi-setup --set-rights :

root@opsi:/var/lib/opsi/depot/win10-x64# opsi-setup --set-rights
[5] [Dec 17 15:06:11] Setting rights on directory u'/etc/opsi' (Rights.py|150)
[5] [Dec 17 15:06:11] Setting rights on directory u'/home/opsiproducts' (Rights.py|150)
[5] [Dec 17 15:06:11] Setting rights on directory u'/tftpboot/linux' (Rights.py|150)
[5] [Dec 17 15:06:11] Setting rights on directory u'/var/lib/opsi' (Rights.py|150)
[5] [Dec 17 15:06:17] Setting rights on directory u'/var/log/opsi' (Rights.py|150)
[5] [Dec 17 15:06:18] Setting rights on directory u'/var/lib/opsi/depot' (Rights.py|150)

However the rights in win10-x64 are still the same

Greetings,

Kees...
Zuletzt geändert von loggenk am 12 Feb 2016, 07:51, insgesamt 1-mal geändert.
bourhis
Beiträge: 115
Registriert: 07 Nov 2012, 15:57

Re: opsi-setup --set-rights not working

Beitrag von bourhis »

Hi,

if you don't specify a target "opsi-setup --set-rights" works on the default directory use by opsi (/var/lib/opsi, /etc/opsi/, ...).

Try :

Code: Alles auswählen

opsi-setup --set-rights .
if you are in the directory or :

Code: Alles auswählen

opsi-setup --set-rights win10-x64
Regards.
loggenk
Beiträge: 163
Registriert: 15 Nov 2012, 17:34

Re: opsi-setup --set-rights not working

Beitrag von loggenk »

Hi,

I know. When i execute opsi-set-rights win10-x64/ on another opsi server i do see output :

root@opsi-nl-dev:/var/lib/opsi/depot# opsi-set-rights win10-x64/
[5] [Dec 18 06:48:08] Setting rights (opsi-setup|548)
[5] [Dec 18 06:48:09] Getting current system config (opsi-setup|123)
[5] [Dec 18 06:48:09] System information: (opsi-setup|176)
[5] [Dec 18 06:48:09] distributor : Debian (opsi-setup|177)
[5] [Dec 18 06:48:09] distribution : Debian GNU/Linux 6.0.10 (squeeze) (opsi-setup|178)
[5] [Dec 18 06:48:09] ip address : 192.168.13.60 (opsi-setup|179)
[5] [Dec 18 06:48:09] netmask : 255.255.255.0 (opsi-setup|180)
[5] [Dec 18 06:48:09] subnet : 192.168.13.0 (opsi-setup|181)
[5] [Dec 18 06:48:09] broadcast : 192.168.13.255 (opsi-setup|182)
[5] [Dec 18 06:48:09] fqdn : opsi-nl-dev.xxx.xxx.xx (opsi-setup|183)
[5] [Dec 18 06:48:09] hostname : opsi-nl-dev (opsi-setup|184)
[5] [Dec 18 06:48:09] domain : xxx.xxx.xxl (opsi-setup|185)
[5] [Dec 18 06:48:09] win domain : WORKGROUP (opsi-setup|186)
[5] [Dec 18 06:48:09] Setting rights on directory '/var/lib/opsi/depot/win10-x64' (opsi-setup|635)
[5] [Dec 18 06:48:10] Setting rights on directory '/var/lib/opsi/depot/win10-x64' (opsi-setup|635)
root@opsi-nl-dev:/var/lib/opsi/depot#

When i execute this on the other server i see :

root@opsi:/var/lib/opsi/depot# opsi-set-rights win10-x64/
root@opsi:/var/lib/opsi/depot#

On the first system rights are correct. On the second system they aren't!

Greetings,

Kees...
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsi-setup --set-rights not working

Beitrag von n.wenselowski »

Hi Kees,

what Version of python-opsi and opsi-depotserver are you running on those servers?
They seem to differ and I suspect the one running 4.0.6 is not up-to-date.


With kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten