From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Udo Grabowski Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: non-root chowns Date: Tue, 12 Nov 2002 14:27:33 +0100 Organization: Forschungszentrum Karlsruhe Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3DD101C5.8040701@imk.fzk.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1037107574 30227 80.91.224.249 (12 Nov 2002 13:26:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2002 13:26:14 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Bb3U-0007rO-00 for ; Tue, 12 Nov 2002 14:26:13 +0100 Original-Received: (qmail 28238 invoked by uid 5); 12 Nov 2002 13:27:40 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 28229 invoked by uid 49493); 12 Nov 2002 13:27:40 -0000 Original-Received: from Udo.Grabowski@imk.fzk.de by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-6.4/5.0):. Processed in 0.442022 secs); 12 Nov 2002 13:27:40 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 12 Nov 2002 13:27:40 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5G00CFDTE1S4@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 12 Nov 2002 08:27:40 -0500 (EST) Original-Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H5G0074NTDYB3@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 12 Nov 2002 08:27:36 -0500 (EST) Original-Received: FROM FZKMSX4.ka.fzk.de BY fzkmail2.fzk.de ; Tue Nov 12 14:27:33 2002 +0100 Original-Received: from imk.fzk.de ([141.52.58.53]) by FZKMSX4.ka.fzk.de with Microsoft SMTPSVC(5.0.2195.5329); Tue, 12 Nov 2002 14:27:33 +0100 Original-To: tru64help X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827 X-OriginalArrivalTime: 12 Nov 2002 13:27:33.0724 (UTC) FILETIME=[422F49C0:01C28A4F] Xref: main.gmane.org gmane.os.tru64.managers:2397 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2397 Thanks to Dr. Thomas Blinn and Martin Moore ! There's no consensus on the topic yet, Dr.Blinn says it's supposed to work like required by default when exporting in a homogeneous environment. We meet al the requirements mentioned, but it does not work on a Tru64-Solaris mix. Mr. Moore states that only a suid root script can do this (in the general case ?). But that can only be done if the filesystem is exported with the 'root=...' option (see man exports), which maps root on different machines to uid 0 instead of nobody, opening more severe security holes. Life would be much easier if there were no crackers... ==================== Original question ===================== We try to allow non-root chowns on exported filesystems on Tru64 5.1a, NFS V3. On Solaris, this is forbidden by default (Posix compatibility), but can be allowed by setting the parameter rstchown to 0 in /etc/system. I cannot find any analogous parameter in sysconfigtab for Tru64. We know that this may open security holes, but we think we are in a secure enough environment, and we need this for specific tasks. ------------------------------------------------------------ Dr.Thomas Blinn writes: In my recollection (but I'd have to do some tests to confirm this), the behavior you want is the default provided that the user ID maps correctly (that is, the user who wants to do the "chown" really does own the resource based on their user ID). Of course, to make this work, both the client and the server have to cooperate and the client has to pass the right credentials, etc. I have had this "just work" in the homogeneous case (both systems running Tru64 UNIX, same user ID mapping in effect on both through NIS or local passwd files being identical). ------------------------------------------------------------ Martin Moore writes: No inherent way to do it in the system (i.e., no parameter, option, etc.) You'd have to write your own wrapper program that runs setuid root and performs the chown. -- Dr. Udo Grabowski email: udo.grabowski@imk.fzk.de Institut f. Meteorologie und Klimaforschung II, Forschungszentrum Karslruhe Postfach 3640, D-76021 Karlsruhe, Germany Tel: (+49) 7247 82-6026 http://www.fzk.de/imk/imk2/ame/grabowski/ Fax: " -6141