PDA

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~

dank
05-03-2001, 09:23 PM
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~

Deb
05-03-2001, 10:22 PM
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~

Mong
05-23-2001, 02:01 AM
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

dank
05-23-2001, 06:01 AM
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=&quot;JavaScript&quot;>
<!--
function calculator(user) {
[nbsp][nbsp][nbsp][nbsp][nbsp]var field4 = user + &quot;4&quot;;
[nbsp][nbsp][nbsp][nbsp][nbsp]var field2 = user + &quot;2&quot;;
[nbsp][nbsp][nbsp][nbsp][nbsp]var field1 = user + &quot;1&quot;;
[nbsp][nbsp][nbsp][nbsp][nbsp]var total = &quot;t_&quot; + 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 = &quot;&quot;; }
[nbsp][nbsp][nbsp][nbsp][nbsp]document.chmod[total].value = number;
}
//-->
</script>

and changing the HTML form elements from:

onclick=&quot;calculator('owner', 4)&quot;
...

to:

onclick=&quot;calculator('owner')&quot;
onclick=&quot;calculator('group')&quot;
onclick=&quot;calculator('other')&quot;

Reduce, Reuse, Recycle...

Dan
[nbsp]- the things we do at 3am when it's too hot to work during the day...

dank
05-23-2001, 11:55 PM
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)]

Mong
05-24-2001, 04:56 AM
Well Dan, I'm impressed...

You've just proven that sometimes, less really is more![nbsp]

dank
05-24-2001, 01:17 PM
Thanks.[nbsp][nbsp]:)

Downplay