Re: [Vserver] OCS Inventory

From: Jean-Michel Caricand <jean-michel.caricand_at_laposte.net>
Date: Thu 15 Mar 2007 - 15:51:13 GMT
Message-Id: <JEYC1D$A665AB25E6927ED50A4367350888CC31@laposte.net>

> On 3/15/07, Jean-Michel Caricand
<jean-michel.caricand@laposte.net> wrote:
>
> > I want to install OCS Inventory Agent on a guest. When I
> > launch agent, I can read this error in log file:
>
> > I'am under root account. How can I resolve this ?
>
> When you are running in a guest you don have as many rights
as root on
> the host, the guest has certain capabilities disabled. Do
you know
> what the Agent is trying to do when it installs, perhaps
starting the
> installer with strace will give you an idea what capability
it needs
> to install.
>
> D.
>
>
> blaze your trail
>
> --
> redhat
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>

I use strace. I can see this :

... skip ...

read(3, "?($n++):($n=0);}\n\t\tif((/dmi type"..., 4096) = 4096
brk(0x86d8000) = 0x86d8000
brk(0x86d7000) = 0x86d7000
read(3, "($1);\n\t\t\t};\n\t\t\tif((/driver\\s+\"(."..., 4096)
= 4096
read(3, "\t# If we receive account informa"..., 4096) = 4096
read(3, "n LAST_STATE, \">$install_path/la"..., 4096) = 1202
brk(0x86f8000) = 0x86f8000
read(3, "", 4096) = 0
close(3) = 0
time(NULL) = 1173973225
open("/var/log/ocsinventory-client/ocsinv.log",
O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 3
_llseek(3, 0, [423], SEEK_END) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8df118) = -1
ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [423], SEEK_CUR) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=423, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
time([1173973225]) = 1173973225
write(3, "Thu Mar 15 16:40:25 2007 => Gene"..., 47) = 47
close(3) = 0
dup(1) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig
icanon echo ...}) = 0
_llseek(3, 0, 0xbf8df190, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1),
...}) = 0
dup2(3, 2) = 2
close(3) = 0
fcntl64(2, F_SETFD, 0) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig
icanon echo ...}) = 0
_llseek(2, 0, 0xbf8df160, SEEK_CUR) = -1 ESPIPE (Illegal seek)
stat64("/dev/mem", 0x814e0c8) = -1 ENOENT (No such
file or directory)
time([1173973225]) = 1173973225
write(2, "Thu Mar 15 16:40:25 2007 => You "..., 77Thu Mar 15
16:40:25 2007 => You don't have enough rights to run this program
) = 77
exit_group(2) = ?
Process 5092 detached

Do you have a idea ? bcapabilities ?

Jean-Michel Caricand
mail : jean-michel.caricand@laposte.net
  Envoyez vos cartes de voeux depuis www.laposte.net
Elles seront ensuite distribuées par le facteur : pratique et malin !

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Mar 15 16:14:58 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 15 Mar 2007 - 16:15:01 GMT by hypermail 2.1.8