Tagged: hikvision QC, HS4, rtsp
-
AuthorPosts
-
pstackParticipant2019-08-16 at 23:04Post count: 4
@sinn3r thanks! Just solved the problem, hs_main runs as user 1000.1000 (uid named ‘hs’ on the original image). Therefore the remanent folder needs rw for this uid/gid.
sinn3rParticipant2019-08-16 at 23:15Post count: 368@pstack you are right, the owner of the files/folders is set to the unzip-user when extracting the hs folder.
>> chown hs:hs /hs -R
after hs_admin has been running the first time should fix this and other problems.RoellerKeymaster2019-08-16 at 23:29Post count: 50So, we should create a user named hs:
adduser hs
and then make this user owner of the hs folder?
chown hs:hs /hs -R
What additional packages are needed?
RoellerKeymaster2019-08-16 at 23:45Post count: 50Maybe we should give the hs_main process the SUID bit? So it will start as Root. Then we might have less problems. For example the host_check Baustein which doesn’t work anymore.. or the remanent folder which needs to have the ‘hs’ user as owner.
Might this be an idea?sinn3rParticipant2019-08-17 at 09:08Post count: 368@roel
a) hs_admin creates the ‘hs’ user on first run. It also creates most of the directories I think, so maybe we can delete them in the ZIP and let hs_admin do the job.b) hs_admin and hs_main both run as root, but hs_main spawns another hs_main process that runs as user ‘hs’. This is on purpose I think. As most logic modules need to be fixed anyway I think it’s best to stay this way.
lebi1976Participant2019-08-17 at 09:32Post count: 45@sinn3r Ich habe das mal versucht mit den anlegen des ´hsˋ Users und der Besitzzuweisung des Ordners ˋhsˋ – hat leider nichts gebracht, im Gegenteil jetzt bekomme ich beim Start die Fehlermeldung
File „./../hs_main/lib_ipc.py“,line 45, in write
IOError: [Errno 13] Permission denied: ´/hs/ipc/version´sinn3rParticipant2019-08-17 at 10:14Post count: 368