Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to CHMOD a file when it is built

Quote Reply
How to CHMOD a file when it is built
How would you chmod all of the category files to 755 when you build the pages?

------------------
Quote Reply
Re: How to CHMOD a file when it is built In reply to
I don't understand why you want to change world readable files into executable and writable files...but your problem is probably associated with building the pages via your web browser. If you do this, the owner of the files are defaulted to "nobody", which denies permissions to change permissions of files.

What you need to do is build your pages via telnet:

(But first delete all your current files in the category directories. You can do this via FTP or telnet. FTP is faster.)

(You can also look into copying the codes for the backup file where it reads chmod 666. You can modify these codes to work with the build pages sub-routine. Change the codes to reflect processes in build pages and also change the permission setting to 755.)

THEN

1) Go to your LINKS admin directory.
2) Type in "perl nph-build.cgi".
3) This will automatically re-build your pages.

If you do not feel comfortable copying the backup codes into the build pages sub-routine, you can just build your pages via telnet. Then go to the directory above your categories directory. Type in the following command line:

chmod 755 linksdirectory/*.shtml

OR

chmod 755 linksdirectory/*.html

(Depending on what file extension you have specified in your links.cfg file. Change linksdirectory to the name of your main links directory.)

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: How to CHMOD a file when it is built In reply to
I couldn't find any code that the build_backup uses to chmod it.

------------------
Quote Reply
Re: How to CHMOD a file when it is built In reply to
 
CEGlobe -

You might also want to check this FAQ:

http://www.gossamer-threads.com/...es/Detailed/344.html

Vann