Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 11:29:57 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Martin McCormick <martin@dc.cis.okstate.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: I Created an Interesting Permission Problem.
Message-ID:  <3E9D76F5.2030001@potentialtech.com>
In-Reply-To: <200304161432.h3GEWTgx081076@dc.cis.okstate.edu>
References:  <200304161432.h3GEWTgx081076@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 are the perms on individual's directories?  It sounds like you've
got both the setuid and setgid bits set on those directories.  This
causes files/directories placed in the directory to have the same
owner/group as the parent.

Just a guess ... what does ls -l of the home directory say?

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E9D76F5.2030001>