Hi,
I'm debugging an issue with GNU tar. Without going into a lot of
details (though I can if needed), here's a truss snippet of 'tar -xzf
foo.tar.gz' running as root:
2655: getppriv(PRIV_EFFECTIVE, {ffffffffffffffffffffffff}) = 0
2655: all
2655: setppriv(PRIV_SET, PRIV_EFFECTIVE, {ffffffffffffbfffffffffff}) = 0
2655: all,!sys_linkdir
2655: unlink("usr/bin/passwd") = 0
2655: open64("usr/bin/passwd", O_WRONLY|O_CREAT|O_EXCL, 0500) = 4
.
.
.
2655: chown("usr/bin/passwd", 0, 3) = 0
2655: chmod("usr/bin/passwd", 06555) Err#1 EPERM [ALL]
Looking at the chmod(2) man page, I don't see why I would require all
privileges. Is this undocumented behaviour or am I missing something?
Thanks,
David
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code