Jump to content

[SOLVED] seeking chmod info from wise old people


nadeemshafi9

Recommended Posts

if u have a file with permissions 0777 and the directory it is in has the permissions 0755, is this file still insecure can it be manipulated, i guess what im asking is, is the directories permissions the ones that are in use not the files?

 

thanks guys

OK, after doing some testing I'm pretty sure in the situation you described, the file can be manipulated.

 

If a file has 777 permissions then pretty much all the time, anyone can manipulate it. They're only stopped if the directory doesn't have read access. Also, if the directory doesn't have write access then you won't be able to delete/create the file (but you can still write to that particular file). So be careful when using fopen with the 'x', 'a' or 'w' options. Make sure the file exists first.

OK, after doing some testing I'm pretty sure in the situation you described, the file can be manipulated.

 

If a file has 777 permissions then pretty much all the time, anyone can manipulate it. They're only stopped if the directory doesn't have read access. Also, if the directory doesn't have write access then you won't be able to delete/create the file (but you can still write to that particular file). So be careful when using fopen with the 'x', 'a' or 'w' options. Make sure the file exists first.

 

thanks very much for that im really greatfull for ur help, catch u around the threads m8.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.