View Full Version : Chmod 0777 vs 0755 ?
MTDesigns
05-03-2001, 06:59 PM
For Ikonboard, they say to set permissions in cgi-bin to 0777, but if that wasn't allowed, 0755 would be acceptable.[nbsp][nbsp]What's the difference?
TIA!
Joi~
777 means writeable, 755 means executable.[nbsp][nbsp]In the case of FQ, you probably don't need to set any permissions, as Terra's servers are trained well enough to figure it out for themselves most of the time.[nbsp][nbsp]:)
Some servers disallow setting files to be writeable, as that is seen to be a security risk in certain situations.
Dan
MTDesigns
05-03-2001, 09:32 PM
Thanx Dan :)!
Joi~
A tutorial worth reading over, at least once, is at http://www.aota.net/Script_Installation_Tips/changemode.php3
It helps to have a general idea of the meaning behind the numbers as it just seems to make it all make a little more sense :)
Deb
[nbsp]- GID (General Internet Diploma)
MTDesigns
05-03-2001, 11:52 PM
Thanx Deb :)!
Joi~
Thanks for posting that URL, Deb :)
[nbsp]I was wondering what the #$*@! "777" was all about[nbsp][nbsp]...at first,[nbsp][nbsp]thought[nbsp][nbsp]"777" and "writeable" might be a weird reference to some sorta hidden and diabolical Qabbalistic Occultified Computerist thing! :þ Computers[nbsp][nbsp]are kinda mystifying, and sometimes demonic! ...'specially to[nbsp][nbsp]clueless types like oh me oh moi :confused:
http://images.amazon.com/images/P/0877286701.01.LZZZZZZZ.gif
I hadn't previously noticed the chmod calculation box at the bottom of the tutorial page Deb mentioned.[nbsp][nbsp]Rather cool.[nbsp][nbsp]I took a peek at the source code, mostly out of curiosity, and was a bit surprised at the wordiness of it.[nbsp][nbsp]For anyone looking to use something similar, the JavaScript can be reduced by about 75% by changing it to:
<script language="JavaScript">
<!--
function calculator(user) {
[nbsp][nbsp][nbsp][nbsp][nbsp]var field4 = user + "4";
[nbsp][nbsp][nbsp][nbsp][nbsp]var field2 = user + "2";
[nbsp][nbsp][nbsp][nbsp][nbsp]var field1 = user + "1";
[nbsp][nbsp][nbsp][nbsp][nbsp]var total = "t_" + user;
[nbsp][nbsp][nbsp][nbsp][nbsp]var number = 0;
[nbsp][nbsp][nbsp][nbsp][nbsp]if (document.chmod[field4].checked == true) { number += 4; }
[nbsp][nbsp][nbsp][nbsp][nbsp]if (document.chmod[field2].checked == true) { number += 2; }
[nbsp][nbsp][nbsp][nbsp][nbsp]if (document.chmod[field1].checked == true) { number += 1; }
[nbsp][nbsp][nbsp][nbsp][nbsp]if (number == 0) { number = ""; }
[nbsp][nbsp][nbsp][nbsp][nbsp]document.chmod[total].value = number;
}
//-->
</script>
and changing the HTML form elements from:
onclick="calculator('owner', 4)"
...
to:
onclick="calculator('owner')"
onclick="calculator('group')"
onclick="calculator('other')"
Reduce, Reuse, Recycle...
Dan
[nbsp]- the things we do at 3am when it's too hot to work during the day...
Sometimes you just can't leave something alone, no matter how much you know it's not worth bothering with...[nbsp][nbsp]Oh well, I proudly/shamefully present the plagiarized (in title and inspiration only (edit: only in inspiration, now)), steroid enhanced, chmod helper:
http://accountbiller.com/scripts/chmod.php
Still significantly less code than the original, despite the added, umm, features.[nbsp][nbsp]:)
Dan
(edited for page change corresponding to name change)
[This message has been edited by dank (edited 05-24-01@12:47 pm)]
Well Dan, I'm impressed...
You've just proven that sometimes, less really is more![nbsp]
Thanks.[nbsp][nbsp]:)
Downplay
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.