From pfeifer@dbai.tuwien.ac.at  Tue Jan 22 02:29:36 2002
Return-Path: <pfeifer@dbai.tuwien.ac.at>
Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12])
	by hub.freebsd.org (Postfix) with ESMTP id E0B9E37B404
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Jan 2002 02:29:33 -0800 (PST)
Received: from naos.dbai.tuwien.ac.at (naos [128.130.111.28])
	by vexpert.dbai.tuwien.ac.at (8.11.6/8.11.6) with ESMTP id g0MATUB29867;
	Tue, 22 Jan 2002 11:29:30 +0100 (MET)
Received: (from pfeifer@localhost)
	by naos.dbai.tuwien.ac.at (8.11.6/8.11.6) id g0MATTB94370;
	Tue, 22 Jan 2002 11:29:29 +0100 (CET)
	(envelope-from pfeifer)
Message-Id: <200201221029.g0MATTB94370@naos.dbai.tuwien.ac.at>
Date: Tue, 22 Jan 2002 11:29:29 +0100 (CET)
From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: chroot man page-implementation mismatch
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34159
>Category:       bin
>Synopsis:       chroot man page-implementation mismatch
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 22 02:30:01 PST 2002
>Closed-Date:    Tue Jan 22 02:47:32 PST 2002
>Last-Modified:  Tue Jan 22 02:49:46 PST 2002
>Originator:     Gerald Pfeifer
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD naos.dbai.tuwien.ac.at 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Wed Oct 17 12:35:32 CEST 2001 root@naos.dbai.tuwien.ac.at:/usr/src/sys/compile/DBAI i386

>Description:
	I'm not completely sure whether this is a problem with documentation
	or implementation but...

	o 'man chroot' states that "command or the shell are run as your
	real-user-id" whereas it seems that chroot can only be run by
	the super-user.

	o If chroot indeed can only be run by the super-user, this should
	be properly documented, for example:

	    "This command can be run only by the super-user."

	o "exec's command" should most probably read "exec's command relative
	to newroot".
	
>How-To-Repeat:
	man chroot
	chroot /bin -- as regular user
	chroot /bin /bin/csh -- as super-user

>Fix:
	Update man page as described above (or adjust implementation).
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Tue Jan 22 02:47:32 PST 2002 
State-Changed-Why:  
The misleading comment was removed.  The old BSD code really 
had the "setuid(getuid())" line at some point. 


Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Tue Jan 22 02:47:32 PST 2002 
Responsible-Changed-Why:  

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34159 
>Unformatted:
