Problems with sudo and PATHS

Benjamin.Cuthbert at Benjamin.Cuthbert at
Wed Feb 13 08:57:43 EST 2002

Here is my current setup ,


export PATH

Sudo File.

Cmnd_Alias     FT_ROOT_CMDS=\
                /usr/bin/cat /var/log/*,\
                /usr/bin/cat *,\
                /opt/gnu/bin/ls *,\
                /opt/digisle/bin/localpass *,\
                /usr/bin/mkdir /opt/customer/*,\
                /usr/bin/chown * /opt/customer/*,\
                /usr/bin/chmod * /opt/customer/*\
                /usr/bin/rm * /opt/customer/*,\
     /usr/bin/touch /opt/customer/*

What i am trying to do


sudo touch testfile
Sorry, user benc is not allowed to execute '/usr/bin/touch testfile' as
root on testmachine-1

[benc at testmachine-1]$sudo touch /opt/customer/testfile
[benc at testmachine-1]$

Brent Fortman <Brent.Fortman at> on 02/13/2002 01:32:04

Sent by:  sudo-users-admin at

To:   "'Benjamin.Cuthbert at'" <Benjamin.Cuthbert at>,
      sudo-users at
Subject:  RE: Problems with sudo and PATHS

/opt/customer needs to be added to $PATH.


-----Original Message-----
From: Benjamin.Cuthbert at [mailto:Benjamin.Cuthbert at]
Sent: Wednesday, February 13, 2002 5:43 AM
To: sudo-users at
Subject: Problems with sudo and PATHS

Hi all

we have just installed sudo on our solaris 2.8
and the one problem i have is , that

if i have sudo ALL

i am able to to do

sudo touch /testme
sudo rm /testme

but when i have defined a user with permissions to only do rm in

when he does this

cd /opt/customer
sudo touch testme

Access denied

but if i do

sudo touch /opt/customer/testme ,

i am able to do it

Why ?


 Please visit the web site of the Financial Times at:

 For UK personal finance, please visit

 For real-time market news and tools for the private investor, please visit

 Please note that this email transmission is confidential and may be
 If you are not the intended recipient you must not use, disclose or
 disseminate this message or any associated files. Please notify the sender
 immediately if you receive this transmission in error and then delete this
 email.  Thank you for your co-operation.

 Internet communications cannot be guaranteed to be secure. The Financial
 Times Limited (or the FT group company that has sent this email) does not
 accept liability for any errors, alterations or omissions in the contents
 this message that arise as a result of email transmission. Please call the
 sender if you suspect that the message has been intercepted or amended.
 Outgoing and incoming email messages may be monitored for security and
 customer service purposes.

 This message has been sent via the email service for The Financial
 Times Limited or on behalf of other FT group companies who also use this
 facility. The Financial Times Limited Registered office: Number One
 Bridge, London, SE1 9HL, United Kingdom. Registered in England and Wales
 no 227590

postmaster at


sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:
sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list