Re: sudo - changing ownership of a single file



On Wed, 09 Aug 2006 17:31:24 -0500, John Hasler wrote:

Sounds like you need fakeroot:

Description: Gives a fake root environment
This package is intended to enable something like:
dpkg-buildpackage -rfakeroot
i.e. to remove the need to become root for a package build.
This is done by setting LD_PRELOAD to libfakeroot.so,
which provides wrappers around getuid, chown, chmod, mknod,
stat, and so on, thereby creating a fake root environment.

AFAICT, what fake root does is allow you to build a package with a file
owned by root. But you still need root permissions to install it...

I am installing to a live NFS-mounted system. So I need some way for an
ordinary user to create a file owned by root....

For now I've set the sticky bit on chmod and chown, but that leaves me
with a system that's very easy to compromise. I'd like some way to set up
sudo to run chmod and chown to change one single file with no password
needed.

--Yan

--
o__
,>/'_ o__
(_)\(_) ,>/'_ o__
Yan Seiner, PE (_)\(_) ,>/'_ o__
Certified Personal Trainer (_)\(_) ,>/'_ o__
Licensed Professional Engineer (_)\(_) ,>/'_
Who says engineers have to be pencil necked geeks? (_)\(_)

.