Home » Questions » Computers [ Ask a new question ]

gzip compressed file ownership and permissions

gzip compressed file ownership and permissions

"I'm trying to find out how gzipping a file changes its permissions.
The gzip manual (man gzip) says:"

Asked by: Guest | Views: 278
Total answers/comments: 1
Guest [Entry]

Changing file ownership can only be done by root. Ordinary user_a simply cannot create a file owned by ordinary user_b, whether file creation is done by gzipping or by gunzipping. If you need to preserve ownership, unzip as root.