Subject: Re: How to build X source?
To: None <email@example.com>
From: Jeremy C. Reed <firstname.lastname@example.org>
Date: 12/18/2002 13:02:42
On Wed, 18 Dec 2002, Frederick Bruckman wrote:
> How does a regular user make "xterm" suid root?
For those who don't know about it:
pax now has capability to set the permissions (for the files in the
created archive file) using mtree specifications. (Thanks to L. Mewburn.)
For example, my destdir's passwd(1):
-r-xr-xr-x 2 reed src 17800 Nov 19 12:08 usr/bin/passwd
Then the METALOG file (built via the build.sh script) used by the
pax to create a tarfile contains:
./home/src/usr/bin/passwd type=file mode=04555 uname=root gname=wheel
So software in the tar sets can be setuid root. Now extracting and
preserving this info must be done as root.
Jeremy C. Reed