Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 4
RnR
Offline
Junior Member
Junior Member
Offline
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

Sponsored Links
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Not sure if this will work, but you could try
this
in upload.cgi

Find this:
Code
[/code]After that add
[code]
Let us know how you go.


I can't afford a good signature editor frown
Joined: Mar 2001
Posts: 4
RnR
Offline
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 4
Yes! So far so good - thanks so much my sanity has returned =)

Eric

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
No problems, glad to be of service smile


I can't afford a good signature editor frown
Joined: Mar 2001
Posts: 4
RnR
Offline
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 4
quote:
Originally posted by BassTeQ:
No problems, glad to be of service smile

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?

Sponsored Links
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
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 frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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.

Joined: Mar 2001
Posts: 4
RnR
Offline
Junior Member
Junior Member
Offline
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!=)


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)