Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Permission Problems (UNIX)

Quote Reply
Permission Problems (UNIX)
This is bizarre, and I can't think what I need to do to correct it. For some reason, when I manually add a new entry into the links.db file (i.e. through the control panel, Links->Add) it works fine, but I think it changes the file permissions on links.db to: rw-r--r--. This then causes a problem, as I get a 'permissions error' when trying to validate an entry through the control panel. The only solution that I've had was to manually change CHMOD the links.db file 666 and then to re-ad that entry again... and then because that's through the links->add, I then have to re-CHMOD again as well!

What's wrong here, and what should I do to correct he 'bug'?

JG - jakeg@lineone.net

Quote Reply
Re: Permission Problems (UNIX) In reply to
This is covered and addressed in a FAQ in the Resource section of this web site. Search for permission change in the Resources section of this site.

And if you can't find it, then search the Links 2.0 forums for 666 644 permission change and you WILL find relevant Threads.

Regards,

Eliot Lee
Quote Reply
Re: Permission Problems (UNIX) In reply to
It is?... I did have a look before, and I've just had another extensive look and can't find the solution. The nearest I got was a post by you saying to someone else to look in resources -> faq for 644/666 file permissions problem. I've looked... damn it I've spent ages looking, but I really can't find this anywhere!

I just ran nph-build.cgi and found that it also changed links.db from 666 to 644, and made-by 'www'.

I've checked all the file permissions - the directory is 777, I make links.db 666, and it all seems to be done correctly.

If there is a file somewhere on this site with the answer I'm looking for... it's damn hard to find. What's the URL?

Quote Reply
Re: Permission Problems (UNIX) In reply to
Using the same KEYWORDS I gave you and the following search
options in the FORUM SEARCH FORUM:

1) Forum: Links 2.0 Customization
2) Keywords: 644 666 Permissions
3) Search Options: And
4) Date Range: All posts
5) Hits: 250

I was able to find the following Threads where solutions have
been provided:

http://gossamer-threads.com/...isc&Number=82627

AND

http://gossamer-threads.com/...pl?ubb=000656:Forum2

AND

http://www.gossamer-threads.com/...200&Old=allposts

AND

http://www.gossamer-threads.com/...200&Old=allposts

I also selected other LINKS 2.0 FORUMS and came up with
some of the other Threads.

Regards,

Eliot Lee
Quote Reply
Re: Permission Problems (UNIX) In reply to
IE: the thread Eliot referenced at http://gossamer-threads.com/...isc&Number=82627. I just moved my site to a new server and am running nph-build.cgi via cron and am having the permissions change problem. The closest code I find to the code that Eliot suggested be changed is:

while (<DB>) { print DBTMP; }
close DB;
close DBTMP;
}

Is this the spot?

Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: Permission Problems (UNIX) In reply to
Yes, thats the spot. He is right about having the script change permissions. Just add the code

else { chmod 0666, $db_links_name; }

in the subs
sub build_update_ratings
sub build_update_newpop

directly AFTER
while ( ) { print DBTMP; }
close DB;
close DBTMP;
}

Also, sorry about Eliot. He'd rather post "search the forums" all day long instead of helping people. He could have helped you out in half as many words as it took him to deliver his tutorial on searching the forums as is the case in a great number of his posts.

Good Luck!

Quote Reply
Re: Permission Problems (UNIX) In reply to
The FACT of the matter is that MANY questions posed in the Forums have ALREADY been answered, BENNY HILL! Mad And if people took the time to search the forums, they would find the answers to their questions!

Regards,

Eliot Lee
Quote Reply
Re: Permission Problems (UNIX) In reply to
Thanks Bennie,

If you noticed, my code is just slightly different, but the fix worked anyway.

Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: Permission Problems (UNIX) In reply to
Eliot,

If it all frustrates you to the point you feel you have to be a jerk to everyone, please just refrain from posting. I'm here to help just as many others are. You just seem to have time to patrol the boards 24/7 waiting for a chance to utter the words "search the forum". The rest of us will help users out, just give us a chance. We might not answer as quickly as you do, but we will answer....and we'll deliver a real answer instead of condescending remarks or tutorials on how to use the search function you are so fond of. Please Eliot, just take a break for a while.



Quote Reply
Re: Permission Problems (UNIX) In reply to
In Eliot's defense, he can be extremely helpful when he wants to be, but he can also be a royal pain in the butt and he knows it. He knows the Links scripts inside out.

Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
Quote Reply
Re: Permission Problems (UNIX) In reply to
Yes, he does know his stuff. Ill give him that, but lots of other folks know it just as well if not better. It's always better to get a straight answer instead of rhetoric. If he could just post a straight forward answer referencing previous related posts instead of the condescending crap he normally posts it would be wonderful. I just wish he'd give others a chance to help out before he rushes in with his belittling comments.

I do installations all the time and have heard countless comments from my clients about "some *insert rude name here* from gossamer-threads was rude to me when I asked for help so will you install this for me". It's always Eliot! The customers do not realize that he is NOT an employee of GT. I know if I ran GT, I would ask him to post politely or not at all. Some of these people have never been here before and the search function may not be as obvious to a first time visitor as it is to a "seasoned pro" like Eliot. This is something that has been an issue here several times before (why the powers that be at GT don't do something, I'll never know).

Once something is mentioned he calms down for a week or so but then he's back to his good 'ol self and this whole cycle starts over again!

Oh well, sometimes you have to take the good with the bad.

Quote Reply
Re: Permission Problems (UNIX) In reply to
I suppose we should end this Eliot bashing. He could get a complex. Wink

Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/