|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
| View Poll Results: Shitty hosting or just different | |||
| That's shitty and I wouldn't host there or waste time with it |
|
3 | 60.00% |
| It's ok it's just a different idea of how to run a server |
|
0 | 0% |
| It's shit, but I'd just work around it |
|
0 | 0% |
| This is the best type of hosting...FOOL!!!! |
|
2 | 40.00% |
| Voters: 5. You may not vote on this poll | |||
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
SHITTY Hosting? or just a different?
I need some feedback on some hosting issues.
Hypotheticals: 1. You run a cgi script on your site that creates a file that is chmod 666 but you can't delete it or even downoad it when logged in thru FTP. Shit or just different? 2. should I try to fix this in the script by doing dangerous stuff like running the script as setgid? (which I ain't gonna do, no matter what you say )I got cheap cheap cheap mainstream host to run scripts on to try and find all issues that people might have on their servers and I could not get even one of the problems that people are having on adult hosting.
__________________
![]() ![]()
|
|
|
|
|
|
#2 |
|
Masterbaiter
Industry Role:
Join Date: Feb 2006
Posts: 26,550
|
off topic, do you have any demo sites for that script?
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Well, I was trying to hold out for a few more days to put the final touches on the new release but since you asked.
This is going into the new release: http://facefux.com/channel.shtml/home That template will come in at least 20 different color schemes. No more messing around with templates unless you just want to!! Here are other sites using the original templates: http://tvfux.com http://blackmonsters.com http://crazypussy.com Here are some sites that the webmasters made his own templates http://tushytube.com/ http://pureporntube.com/ FUCk sorry for taking so long to reply but I clicked on this shit and got lost for a minute http://pureporntube.com/maintv.shtml/BBB_9431 ![]() ![]()
__________________
![]() ![]()
|
|
|
|
|
|
#4 | |
|
Confirmed User
Join Date: Jan 2004
Posts: 1,238
|
Quote:
There are a few work arounds. If you're using CGI then you can configure suexec which allows individual VirtualHosts to execute as "myUsername" or any other user that you configure it for. Another is to change the umask settings for Apache or your script, thereby allowing group read/write on new files and making sure that you're part of nobody's group. Another is login to the server with root to do file management although this is quite dangerous, yet will allow you to make any changes you want without any server modifications.
__________________
Managed US/NL Hosting [ [Reality Check Network ] Dell XEON Servers + 1/2/3 TB Packages ICQ: 4-930-562 |
|
|
|
|
|
|
#5 |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
You might check the permissions on the directory where you file is created; it's probably set sticky and/or immutable. Otherwise, make your own temp directory and set your files 666.
Then again, as a programmer, you're both aware, and knowledgeable of this.
__________________
|
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
Those are facts that I already know. The question was "is it shitty hosting to not work around it and have the virtual account user trying to figure it out".
__________________
![]() ![]()
|
|
|
|
|
|
|
#7 | |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Quote:
Generally people wanting to run their own software that's any larger than a basic CMS have at least one problem with their business plan.
__________________
|
|
|
|
|
|
|
#8 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
I don't think the webmasters should run scripts as setgid etc...
__________________
![]() ![]()
|
|
|
|
|
|
|
#9 |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
There's been a way to run securely (albiet much slower) since Apache 1.2, which was released in 1996. It's called SuExec. It allows you to set a UID/GID for every virtualhost. Providers often can't afford to run it due to programmers writing bad code, such as those assuming it's the job of the webserver to ensure files are accessable.
__________________
|
|
|
|
|
|
#10 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
![]()
__________________
![]() ![]()
|
|
|
|
|
|
|
#11 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
I don't want security so tight between each room that I have to use an axe to quickly hack into the bathroom if I feel a really wet beer fart comming. RE: larger than a CMS: The same issue applies to a simple message board script. The script has to delete the files it creates or wack the file with something like chmod 4777 so the user can delete thru FTP on those type configurations. I don't think either of those conditions are highly desired.
__________________
![]() ![]()
|
|
|
|
|
|
|
#12 | |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Quote:
That's why everyone on shared accounts constantly get their pages defaced - usually due to some old unpatched WordPress bug, linkex, etc. The script should be able to delete it's own files, but the script should also chmod the files, or set the umask itself when creating them. If you don't set the umask in FTP (which is usually 022 for files), obviously, you'll need to alter that with your FTP client, since there's no concept of octal permissions on Windows. If your FTP account isn't the same user and group as the webserver, you create a 'cleanup' script, which someone runs from their browser, which will unlink the files and send out a 'cleaned up' or 'file removal failed' message. It's trivial, at best.
__________________
|
|
|
|
|
|
|
#13 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
Remember, we are talking about files that were chmod 0666.
__________________
![]() ![]()
|
|
|
|
|
|
|
#14 |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Did you check if the directory was set immutable? Were there sticky flags? What were the permissions? What was the ownership of the directory? If the directory is 711, and you are not the owner, you can execute files in it, but not even read from it.
__________________
|
|
|
|
|
|
#15 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
Ok, maybe the domain directory in 711 and inherited. But that would be an admin issue for most people. Believe me, this is not a problem on all linux/unix servers because the admin has set the "real users" with permissions to delete and download from user "nobody" or "nobody" automatically turns over ownership to real user. I don't really know how they do it, but they do.
__________________
![]() ![]()
|
|
|
|
|
|
|
#16 | |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Quote:
I agree that the domain directory should not be 711, it should be 755, but owned by the user; which still means that by default, the webserver (if not running as the user) will not be able to write there. Again, this is a security precaution to keep others on the virtualhost from messing with your shit. Most larger virtualhosts use an SQL database as the back end for authentication and transparently set the uid/gid of the files when you upload them; they also have, or use SuExec policies so files will run as your user, with your user permissions. It's possible to even do this with CPanel, but nobody turns it on, since it's a performance hit as all PHP scripts now run as a CGI, rather than a builtin, and ho boy, do people bitch about tightened security.
__________________
|
|
|
|
|
|
|
#17 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
Well, I just want a way around it for people on those type servers without setting uncommon file permissions. I could make directories chmod 4777 and that would solve the problem, but I'd rather stick to things that people beter understand. Everybody understands chmod 0777. And some servers might actually flag chmod 4777 and plenty of servers will not let a perl script run as setgid. Any suggestions?
__________________
![]() ![]()
|
|
|
|
|
|
|
#18 | |
|
Masterbaiter
Industry Role:
Join Date: Feb 2006
Posts: 26,550
|
Quote:
|
|
|
|
|
|
|
#19 |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Wait till you try out the new release. It blows the current script away!
I think I should be able to release it this comming wednesday. BTW: All updates and new versions are free for this script for life, so get it while it's still cheap.
__________________
![]() ![]()
|
|
|
|
|
|
#20 | |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Quote:
So, since you're using Perl, I'd look into Net::FTP, and create a form where they re-enter their FTP username, password, and all of that, and it logs in, and issues SITE CHMOD commands for them.
__________________
|
|
|
|
|
|
|
#21 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
My solution is for everybody to use phatservers or isprime ![]() I mean, there are several ways around it that involve me writing a bunch of new code. I'm just at the point that this stuff takes away from developing the part that makes money for people. Heard at a Santa Monice workshop: "There is no money in chmod". ![]()
__________________
![]() ![]()
|
|
|
|
|