restored a backup and can't su to root now

Arnie Stender astender at aagstender.org
Sun Feb 4 10:21:44 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Nicholson wrote:

> Not if you did it as an unprivileged user. It'd be a security hole for
> you to copy stuff and retain other's privileges. Only root can do
> that. A simple `cp -a' works, but `tar' or `cpio' are probably better
> suited for this. I move package contents around all the time with tar.
> But, the important part is being root if you want to retain
> ownership/permissions.
> 
> --
> Dan

Hi Dan,
	I don't have time right now to test tar and cpio but I do know for sure
a straight cp of an SUID file does NOT produce an SUID copy of the file,
even if done as root.

Arnie

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFxiQ4I9lqJPlLBqQRAkpwAJ9AcUrx8d+Bzk3E7qazeBJcdj0lggCfQi1f
4j8A0+uR5sgw+x6+kiBbbqs=
=kCgd
-----END PGP SIGNATURE-----



More information about the blfs-support mailing list