Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

after nph-build, links.db chmods to 644

Quote Reply
after nph-build, links.db chmods to 644
Everytime I run nph-build its sets links.db to 644. (Not the whole data directory, just links.db) Is anyone else ahving this problem, or does anyone have a fix?
Quote Reply
Re: [cheshirekat] after nph-build, links.db chmods to 644 In reply to
You could just add some code into nph-build.cgi to chmod it back.

chmod 0777, $db_links_name;

Or the sexy way:

use Fcntl ':mode';

chmod S_IRWXU|S_IRWXG|S_IRWXO, $db_file_name;

Last edited by:

RedRum: Oct 28, 2001, 3:49 AM