From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David.Knight@clubcorp.com Newsgroups: gmane.os.tru64.managers Subject: How-To Prevent command execution in vi - SUDO Date: Tue, 16 Mar 2004 07:06:08 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079442626 31773 80.91.224.253 (16 Mar 2004 13:10:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Mar 2004 13:10:26 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Mar 16 14:10:18 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1B3EKn-00042S-00 for ; Tue, 16 Mar 2004 14:10:18 +0100 Original-Received: (qmail 1352 invoked by uid 5); 16 Mar 2004 13:10:05 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 1336 invoked by uid 49493); 16 Mar 2004 13:10:05 -0000 Original-Received: from David.Knight@clubcorp.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-1.5/5.0):. Processed in 18.286217 secs); 16 Mar 2004 13:10:05 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 16 Mar 2004 13:09:46 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HUO0020R78607@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 16 Mar 2004 08:09:46 -0500 (EST) Original-Received: from smtp3.clubcorp.com (fw2.clubcorp.com [204.146.199.6]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HUO000JD784LK@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 16 Mar 2004 08:09:41 -0500 (EST) Original-Received: from nshub1.clubcorp.com (Not Verified[10.10.7.10]) by smtp3.clubcorp.com) id ; Tue, 16 Mar 2004 07:09:46 -0600 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 X-MIMETrack: Serialize by Router on NSHUB1/CLUBCORP/US(5012HF429 | October 14, 2003) at 03/16/2004 07:04:02 AM, Serialize complete at 03/16/2004 07:04:02 AM Xref: main.gmane.org gmane.os.tru64.managers:6622 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6622 ALl, I am currently in to process of implementing SUDO on my Tru64 Servers. However, I have one question: 1) I need to be able to lock down accounts to the point of only allowing them access to a very very limited command set I.E Just "ls" "pwd" "cd" and "vi" however I have found that SUDO is mainly to allow users access to commands ran by other users. so I figured that I could write a script to force them to use sudo or a limited command set however I find that if you allow some one access to the "vi" command they can execute any command the wish by doing a :! and the command. I have been unable to find any options to SUDO either on compile time or execution nor with vi that will prevent this from happening. any help would be grateful. Thanks in advance, David Knight