From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 11:42:36 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCA3937B401 for ; Wed, 16 Apr 2003 11:42:36 -0700 (PDT) Received: from mail2.aus1.texas.net (mail2.aus1.texas.net [206.127.30.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AE9343FBF for ; Wed, 16 Apr 2003 11:42:36 -0700 (PDT) (envelope-from dread@texas.net) Received: from localhost.texas.net (tcnet19-018.austin.texas.net [209.99.96.81])h3GIgX924604; Wed, 16 Apr 2003 13:42:34 -0500 (CDT) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200304161432.h3GEWTgx081076@dc.cis.okstate.edu> Date: Wed, 16 Apr 2003 13:42:33 -0500 (CDT) From: Don Read To: Martin McCormick cc: freebsd-questions@freebsd.org Subject: RE: I Created an Interesting Permission Problem. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 18:42:37 -0000 On 16-Apr-2003 Martin McCormick wrote: > I just added a new secondary drive to enlarge the /usr/home > file system and it is working as expected for the most part. The part > that has me confused became apparent when a cron-driven script in one > of our user directories successfully ran but produced this warning: > > mv: ./testfile: set owner/group (was: 1003/0): Operation not permitted > > The script did the following: It created a file in /tmp and, > like any such file, it's ownership looks like owner:wheel. If you mv > that file back to your user directory, the mv used to happen silently > but still retain the owner:wheel permissions. > > Now, I do get the file back in the user's directory with > permissions of owner:owner instead of owner:wheel and I get that > warning. > > I figure it might be in the way I mounted /usr/home > > /dev/da1s1 /usr/home ufs rw 2 2 > > or maybe I made some subtle change to /usr or /usr/home, but they look > like they do on every other FreeBSD system I can look at. > > drwxr-xr-x 16 root wheel 512 Mar 12 12:36 usr > drwxr-xr-x 28 root wheel 1024 Apr 15 20:02 home > > What else might cause this change in behavior? > what's your permissions on tmp? localhost.dread$ ls -l / | grep tmp drwxrwxrwt 28 root wheel 5632 Apr 16 13:35 tmp localhost.dread$ ls >/tmp/testfile localhost.dread$ ls -l /tmp |grep testfile -rw-r--r-- 1 dread wheel 1115 Apr 16 13:35 testfile localhost.dread$ mv /tmp/testfile . localhost.dread$ ls -l |grep testfile -rw-r--r-- 1 dread wheel 1115 Apr 16 13:35 testfile Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.