Re: [Vchanger-users] 'update slots' missing?!
Brought to you by:
jaybus2
|
From: Marco G. <ga...@li...> - 2022-09-03 07:40:33
|
Mandi! Steven A. Falco In chel di` si favelave... > If you look at /etc/password, you will see that the shell is set to "nologin", so you are correct that there is no shell for the bacula account. > $ grep bacula /etc/passwd > bacula:x:133:133:Bacula Backup System:/var/spool/bacula:/sbin/nologin Exactly: root@vipve2:~# grep bacula /etc/passwd bacula:x:110:117:Bacula:/var/lib/bacula:/usr/sbin/nologin > On my vchanger system, the config file permissions are set to: Roughly the same here: root@vipve2:~# ls -la /etc/bacula/bconsole.conf -rw-r----- 1 root bacula 271 Jul 15 16:06 /etc/bacula/bconsole.conf and bacula-sd run as 'bacula' user, that is in group 'bacula'; Anyway, as just stated, if i run by hand the command forcing a valid shell: >> root@vipve2:~# echo 'update slots storage="VIPVE2RDX" drive="0"' | su bacula -s /bin/sh -c '/usr/sbin/bconsole -n -u 30' >> Connecting to Director bacula.lnf.it:9101 >> 1000 OK: 103 lnfbacula-dir Version: 9.4.2 (04 February 2019) command run. So seems a 'shell' trouble. How can i circumvent it? I'm not a c programmer, but i've seen that bconsole get executed here: https://sourceforge.net/p/vchanger/code/ci/master/tree/src/mypopen.cpp#l299 with execvp(), but i can go any further... -- Molti italiani sognavano di vedere Berlusconi in un cellulare, prima o poi... (Stardust®, da i.n.n-a) |