nadeemshafi9 Posted January 15, 2008 Share Posted January 15, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/86146-solved-seeking-chmod-info-from-wise-old-people/ Share on other sites More sharing options...
Fyorl Posted January 15, 2008 Share Posted January 15, 2008 I think the file can be manipulated but I'll test when I get home to my Linux laptop. Quote Link to comment https://forums.phpfreaks.com/topic/86146-solved-seeking-chmod-info-from-wise-old-people/#findComment-440057 Share on other sites More sharing options...
Fyorl Posted January 15, 2008 Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/86146-solved-seeking-chmod-info-from-wise-old-people/#findComment-440355 Share on other sites More sharing options...
nadeemshafi9 Posted January 16, 2008 Author Share Posted January 16, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/86146-solved-seeking-chmod-info-from-wise-old-people/#findComment-440984 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.