|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: tar preserves setuid bit
From: Neil McKellar (mckellar
telusplanet.net)
Date: Fri Aug 05 2005 - 16:34:04 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Imran Ghory <imranghory
gmail.com> wrote:
> If running as the root user tar restores the original permissions to
> extracted files, this includes the setuid bit. No warning is given to
> the user that this has happened.
From the default man page for tar:
The owner, modification time, and mode are restored (if possible);
This isn't specific to GNU, it's *expected behaviour* for every version of tar.
In fact, a failure to conform to this behaviour breaks essential functionality
of tar. If the root user doesn't know what this tool does or what it's for,
then don't run it.
What part of 'Tape ARchive' wasn't clear? Would you be happy if your backup and
restore procedures failed to actually restore files in their original condition?
Sheesh.
--
Neil (mckellar
telusplanet.net)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]