1753701 Members
5022 Online
108799 Solutions
New Discussion юеВ

tar with suid

 
SOLVED
Go to solution
dkt
Advisor

tar with suid

Hi

I have a compiled binary (unix top) which has suid set. I then tar it binary and restore it locally in a different directory or another machine.

The problem is that the suid permission is not restored.

I've tried GNU tar and the suid bit is restored.

Any comments?
3 REPLIES 3
Michael Schulte zur Sur
Honored Contributor
Solution

Re: tar with suid

Hi,

use tar xp
I think you have to be root.

greetings,

Michael
dkt
Advisor

Re: tar with suid

Yes, it works. Thanks!
dkt
Advisor

Re: tar with suid

problem solved.