LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 06-23-2009, 02:59 AM   #1
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 86

Rep: Reputation: 15
Sudo and passing environment variables


I am setting sudo to allow operators to start up applications without the need to log in as the applications main user id.

The script they run as sudo requires the LINES enviroment variable to be set as it positions text on the screen. I know that sudo strips environment variables for security but do you know how I could force LINES to be passed?
 
Old 06-23-2009, 05:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,610
Blog Entries: 47

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
With env_keep or SETENV ('man sudoers') or force exporting LINES from the script they run?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo perl script with environment variables powah Programming 1 04-22-2009 11:22 AM
Passing variables between shell scripts big_ginge21 Programming 3 09-26-2006 12:10 PM
Passing variables to an include? Red Squirrel Linux - Software 4 09-23-2005 09:18 PM
passing variables to sed jjfate Programming 8 07-31-2003 04:15 AM
Passing variables in PHP???? vous Programming 3 03-20-2003 06:03 AM


All times are GMT -5. The time now is 04:43 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration