Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

how are permissions determined when extracting tar.gz on your website?

4:26 am on Jun 18, 2008 (gmt 0)

New User

10+ Year Member

joined:Aug 18, 2005
posts: 31
votes: 0

I am having a problem with folders/files that I create by uploading a tar.gz and extracting onto my site. I love the fact that it is SOOOO much quicker to do it this way, rather than extracting the files on my pc, and uploading them to my site.

but.. when I go to delete anything created by the tar.gz.. I run into all kinds of problems because of permissions. Evidently, the extraction of these files from the tar.gz creates a bunch of files and folders that don't have write permission for the owner, and when I go to delete something, it won't let me.

are the permissions assigned determined by the tar.gz file? or by the server extracting the file?

I'm not sure who to go to for this problem, the creator of the tar.gz file, or my host. I've tried to find information on how this is determined, and I must not be searching for the "right terminology", because I can't find an explanation of how this works.

can someone either explain how this works or point me to a document that will explain? thanks.

5:46 am on June 18, 2008 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 79

the file permissions are usually preserved from the original files that were used to create the archive.
you could always do a 'chmod -R o+w' after extracting the files.
i think you can also use umask to set create permissions.
7:37 am on June 18, 2008 (gmt 0)

New User

10+ Year Member

joined:Aug 18, 2005
posts: 31
votes: 0

thanks for the quick reply. I appreciate it.

I will ask FCKEditor about the tar.gz file.

and.. I am on a shared host. cannot do the chmod.. but I am going to request shell access. It is really limiting not to have it.