FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General FutureQuest Hosting Support
User Name
Password  Lost PW
Home Guidelines Register Today's Posts Posts In Options Calendar

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-03-2001, 06:59 PM   Postid: 14797
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,689
Chmod 0777 vs 0755 ?

For Ikonboard, they say to set permissions in cgi-bin to 0777, but if that wasn't allowed, 0755 would be acceptable.  What's the difference?

TIA!

Joi~
MTDesigns is offline   Reply With Quote
Old 05-03-2001, 09:23 PM   Postid: 14798
dank
Registered User

Forum Notability:
410 pts: Community Guru
[Post Feedback]
 
Join Date: Mar 2000
Location: MWV
Posts: 3,986
777 means writeable, 755 means executable.  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.  

Some servers disallow setting files to be writeable, as that is seen to be a security risk in certain situations.

Dan
dank is offline   Reply With Quote
Old 05-03-2001, 09:32 PM   Postid: 14799
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,689
Thanx Dan !

Joi~
MTDesigns is offline   Reply With Quote
Old 05-03-2001, 10:22 PM   Postid: 14800
Deb
FutureQuest, Inc.
 
Deb's Avatar

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
A tutorial worth reading over, at least once, is at http://www.futurequest.net/Script_In...hangemode.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
 - GID (General Internet Diploma)
Deb is offline   Reply With Quote
Old 05-03-2001, 11:52 PM   Postid: 14801
MTDesigns
Site Owner
 
MTDesigns's Avatar

Forum Notability:
83 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Aug 1999
Location: U.S.
Posts: 1,689
Thanx Deb !

Joi~
MTDesigns is offline   Reply With Quote
Old 05-23-2001, 02:01 AM   Postid: 14802
Mong
Registered User

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 2001
Posts: 27
Thanks for posting that URL, Deb

 I was wondering what the #$*@! "777" was all about  ...at first,  thought  "777" and "writeable" might be a weird reference to some sorta hidden and diabolical Qabbalistic Occultified Computerist thing! :þ Computers  are kinda mystifying, and sometimes demonic! ...'specially to  clueless types like oh me oh moi



Mong is offline   Reply With Quote
Old 05-23-2001, 06:01 AM   Postid: 14803
dank
Registered User

Forum Notability:
410 pts: Community Guru
[Post Feedback]
 
Join Date: Mar 2000
Location: MWV
Posts: 3,986
I hadn't previously noticed the chmod calculation box at the bottom of the tutorial page Deb mentioned.  Rather cool.  I took a peek at the source code, mostly out of curiosity, and was a bit surprised at the wordiness of it.  For anyone looking to use something similar, the JavaScript can be reduced by about 75% by changing it to:


Code Sample:
<script language=&quot;JavaScript&quot;>
<!--
function calculator(user) {
     var field4 = user + &quot;4&quot;;
     var field2 = user + &quot;2&quot;;
     var field1 = user + &quot;1&quot;;
     var total = &quot;t_&quot; + user;
     var number = 0;

     if (document.chmod[field4].checked == true) { number += 4; }
     if (document.chmod[field2].checked == true) { number += 2; }
     if (document.chmod[field1].checked == true) { number += 1; }

     if (number == 0) { number = &quot;&quot;; }
     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
 - the things we do at 3am when it's too hot to work during the day...
dank is offline   Reply With Quote
Old 05-23-2001, 11:55 PM   Postid: 14804
dank
Registered User

Forum Notability:
410 pts: Community Guru
[Post Feedback]
 
Join Date: Mar 2000
Location: MWV
Posts: 3,986
Sometimes you just can't leave something alone, no matter how much you know it's not worth bothering with...  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.  

Dan

(edited for page change corresponding to name change)

[This message has been edited by dank (edited 05-24-01@12:47 pm)]
dank is offline   Reply With Quote
Old 05-24-2001, 04:56 AM   Postid: 14805
Mong
Registered User

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Feb 2001
Posts: 27
Well Dan, I'm impressed...

You've just proven that sometimes, less really is more! 
Mong is offline   Reply With Quote
Old 05-24-2001, 01:17 PM   Postid: 14806
dank
Registered User

Forum Notability:
410 pts: Community Guru
[Post Feedback]
 
Join Date: Mar 2000
Location: MWV
Posts: 3,986
Thanks.  

Downplay
dank is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 06:53 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.