|
#44650
07/10/2002 3:50 PM
|
Joined: Mar 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 4 |
Hello! Dont know where else to ask this question -
I've been running the Attachment Hack 1.6 for over a year with no problems - suddenly, this weekend, when a file is uploaded its persmions are set wrong (they should be 644 to allow people to view but its no 640) and I have to manually go into the users folder and chmod the file - it gets uploaded but not chmodded right - nothing has been changed on the site or in the cgi-bin -this is driving me nuts - I searched all the cgi files and I couldnt find any that directed how the uploaded files are chmodded, only that the folder they reside in is chmodded to 777 - please help thanks - eric
|
|
|
#44651
07/10/2002 5:35 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Not sure if this will work, but you could try this in upload.cgi Find this: [/code]After that add [code] Let us know how you go.
I can't afford a good signature editor
|
|
|
#44652
07/10/2002 11:43 PM
|
Joined: Mar 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 4 |
Yes! So far so good - thanks so much my sanity has returned =)
Eric
|
|
|
#44653
07/11/2002 5:25 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
No problems, glad to be of service 
I can't afford a good signature editor
|
|
|
#44654
07/14/2002 8:19 AM
|
Joined: Mar 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 4 |
quote: Originally posted by BassTeQ: No problems, glad to be of service
Great - so far so good except once in a while a file still gets uploaded that I have to manually to in there and chmod - I wonder why?
|
|
|
#44655
07/14/2002 5:49 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
No idea sorry ?? I haven't looked right through the code, but ... It may be that under some circumstances the code follows a different flow and this secsion doesnt get executed. Not sure. An easy fix would just be to write a small shell script and add it to your crontab to execute a daily chmod 644 on that whole directory ??
I can't afford a good signature editor
|
|
|
#44656
07/15/2002 1:39 AM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
It shouldn't be hard to Chmod that whole directory with the code you gave him. Just take off the end /whatever/whatever so it's just UploadDir. Maybe that won't work.
|
|
|
#44657
07/31/2002 3:53 PM
|
Joined: Mar 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 4 |
Its been workin fine for the last couple weeks with 100% accuracy - dont know what the deal is but I aint gonna mess with it!=)
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|