Problems with sudo and PATHS

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


Here is my current setup ,

.profile

PATH=/usr/bin:/usr/ucb:/etc:/usr/local/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/xpg4/bin:/usr/openwin/b
in:/opt/gnu/bin:/opt/local/bin:/opt/customer/:.
export PATH

Sudo File.

Cmnd_Alias     FT_ROOT_CMDS=\
                /usr/bin/sh,\
                /usr/bin/ksh,\
                /usr/bin/truss,\
                /usr/sbin/snoop,\
                /usr/bin/cat /var/log/*,\
                /usr/bin/cat *,\
                /opt/gnu/bin/ls *,\
                /opt/digisle/bin/rotate_logs,\
                /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

pwd
/opt/customer

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 radioshack.com>@sudo.ws on 02/13/2002 01:32:04
PM

Sent by:  sudo-users-admin at sudo.ws


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


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

Brent

-----Original Message-----
From: Benjamin.Cuthbert at ft.com [mailto:Benjamin.Cuthbert at ft.com]
Sent: Wednesday, February 13, 2002 5:43 AM
To: sudo-users at sudo.ws
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
/opt/customer

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:
 http://www.ft.com

 For UK personal finance, please visit http://www.ftyourmoney.com

 For real-time market news and tools for the private investor, please visit
 http://www.ft.com/investor

 IMPORTANT NOTICE AND DISCLAIMER
 Please note that this email transmission is confidential and may be
privileged.
 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
of
 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 FT.com 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
Southwark
 Bridge, London, SE1 9HL, United Kingdom. Registered in England and Wales
 no 227590

postmaster at ft.com

****************************************************************************

******
____________________________________________________________
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users
____________________________________________________________
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users






More information about the sudo-users mailing list