From nobody@FreeBSD.org  Mon Feb  6 01:22:30 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DA13216A422
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Feb 2006 01:22:30 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9132343D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Feb 2006 01:22:30 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k161MUpj036455
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 6 Feb 2006 01:22:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k161MTtG036454;
	Mon, 6 Feb 2006 01:22:29 GMT
	(envelope-from nobody)
Message-Id: <200602060122.k161MTtG036454@www.freebsd.org>
Date: Mon, 6 Feb 2006 01:22:29 GMT
From: James <jhein_98@swbell.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem with binary permissions in jail
X-Send-Pr-Version: www-2.3

>Number:         92869
>Category:       misc
>Synopsis:       [jail] Problem with binary permissions in jail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 06 01:30:02 GMT 2006
>Closed-Date:    Tue Feb 07 08:52:58 GMT 2006
>Last-Modified:  Tue Feb 07 08:52:58 GMT 2006
>Originator:     James
>Release:        6.0 Release
>Organization:
>Environment:
FreeBSD server2k3-samba 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386 
>Description:
             I was trying to install kerberos from source, and when I went to install it, it couldn't overwrite /usr/bin/rsh.  This isn't a problem with kerberos, it's a problem with binary permissions in the jail.  

# pwd
/usr/bin
# ls -lo rsh
-r-sr-xr-x  1 root  wheel  schg 8016 Feb  4 16:05 rsh

When I try to change permissions on it, so that kerberos can overwrite the binary, I don't have  permission.

# chflags noschg rsh
chflags: rsh: Operation not permitted
# chmod u+w rsh
chmod: rsh: Operation not permitted
#

Just wondered if you could shed some light on how I can change the permissions on these jailed binaries.   
>How-To-Repeat:
              
>Fix:
              
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Tue Feb 7 08:52:16 UTC 2006 
State-Changed-Why:  
Use the security.jail.chflags_allowed sysctl documented in the jail 
manpage. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92869 
>Unformatted:
