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/man5/super.tab.5.html#contenttoc6

thanks a lot
 From: sanyechon...@live.com
To: skon...@movik.com; ubuntu-devel-discuss@lists.ubuntu.com
Subject: RE: super , keep LD_LIBRARY_PATH
Date: Tue, 31 Mar 2015 09:53:16 +0000




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://stackoverflow.com/questions/8633461/how-to-keep-environment-variables-when-using-sudo
 From: ubuntu-devel-discuss-boun...@lists.ubuntu.com 
[mailto:ubuntu-devel-discuss-boun...@lists.ubuntu.com] On Behalf Of 
sanyechon...@live.com
Sent: 31 March 2015 14:54
To: ubuntu-devel-discuss@lists.ubuntu.com
Subject: RE: super , keep LD_LIBRARY_PATH 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 +0000Hi 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 kept. But LD_LIBRARY_PATH is not.
    
    Forgive my bad english.
                                                 
    Best wishes                                                                 
                      
    Shuai
    sanyechon...@live.com
-- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com 
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss                  
                    

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss                  
                       
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to