I use raw socket to send an ip packet and fill the source ip 5.5.5.5. I use
tcpdump to capture it:
15:01:29.385061 IP 5.5.5.5 > 224.0.0.18: VRRPv4, unknown type (9)
It works well.
But when I setns to a lxc and also send the packet:
15:03:41.724126 IP 10.28.50.198 > 224.0.0.18: VRRPv4, unknown ty
Hello!
I use raw socket to send an ip packet and fill the source ip 5.5.5.5. I use
tcpdump to capture it:
15:01:29.385061 IP 5.5.5.5 > 224.0.0.18: VRRPv4, unknown type (9)
It works well.
But when I setns to a lxc and also send the packet:
15:03:41.724126 IP 10.28.50.198 > 224.0.0.18: VRRPv4, unk
Thanks a lot.
After checking the super document carefully, it seems like there's no easy way
to slove this problem with super.
Then I try to excute shell export before my script. It works:
$ export LD_LIBRARY_PATH=/whatever/
But when I use python to set the LD_LIBRARY_PATH, it failed:
os.environ
Addtion:
when config sudo with:
Default env_keep +="LD_LIBRARY_PATH"
This way can not keep LD_LIBRARY_PATH as well.
What I need is to use super to gain privilge and keep enviroment variable
LD_LIBRARY_PATH.
super manpage:
http://manpages.ubuntu.com/manpages/hardy/ma
http://manpages.ubuntu.com/manpages/hardy/man5/super.tab.5.html#contenttoc6
From: skon...@movik.com
To: sanyechon...@live.com; ubuntu-devel-discuss@lists.ubuntu.com
Date: Tue, 31 Mar 2015 05:48:51 -0400
Subject: RE: super , keep LD_LIBRARY_PATH
Did you try the solution given at
http://stackoverf
setenv not work as well.
From: sanyechon...@live.com
To: ubuntu-devel-discuss@lists.ubuntu.com
Subject: super , keep LD_LIBRARY_PATH
Date: Tue, 31 Mar 2015 08:13:42 +
Hi everybody!
How can I keep the enviromet variable LD_LIBRARY_PATH when I excute a super
command?
I have modifie
Hi everybody!
How can I keep the enviromet variable LD_LIBRARY_PATH when I excute a super
command?
I have modified /etc/super.tab:
:global env=PATH,LD_LIBRARY_PATH,PYTHONPATH
bzytest /root/test admin
/root/test:
#!/bin/bash
export
I can get PATH, PYTHONPATH ke