Report message:*
 

Re: Php handlers like suphp as related to .tar.gz file ownership (chown) and permissions (chmod)

Subject: Re: Php handlers like suphp as related to .tar.gz file ownership (chown) and permissions (chmod)
by Dave_L on 2008/2/9 13:35:59

Files in a .tar.gz always have permissions. When extracting the contents of a .tar.gz, I think it works like this:

If the current user is root, the permissions are preserved. If the current user is not root, the permissions are overridden by the umask setting. tar has options for modifying this behavior.

Of course, this only applies to Linux.