LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-11-2008, 12:54 AM   #1
yksudha
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Can a sudo user be allowed use relative path


Hi All,

As a security measure we have implemented sudo users for all the employees in our organization.

I am not sure

if we can allow a sudo user to use relative path to execute commands and navigate through the folders.

example:

Say there is an executable in the following location

sudo user: abc
/home/biz/bin/scirpt.sh

to execute the above scirpt, currently the sudo users are having to give the absolute path like below

abc@hostname# sudo -u biz sh /home/biz/scirpt.sh

If there is a way for the user to navigate through the folders like

abc@hostname# cd /home/biz/bin
abc@hostname# pwd
/home/biz/bin
abc@hostname# sh scirpt.sh

If yes, i would like to know this can be configured.


If needed I can provide more details / clarity.

Thanks every for in advance.

Thanks,
Sudhakar
 
Old 06-11-2008, 01:02 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'm not totally clear what the question is.

To run a command, a user has three choices:
1. Put the path in his/her $PATH variable
2. Enter the full path
3. cd to the directory and use the local path (./)

I don't think giving a user sudo privileges changes this.

I also don't understand how creating a bunch of "sudo users" increases security.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo: "user not allowed to execute" jjonas Linux - Security 6 07-05-2007 05:46 AM
[bash] relative path grezly Programming 1 01-16-2007 02:30 PM
Tracking user logins that was allowed and not allowed eswanepoel Linux - Security 3 08-02-2006 04:37 AM
relative to absolute path vishalbutte Programming 4 01-14-2006 03:17 PM
Relative Path? mikeshn Linux - General 3 05-10-2002 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration