Add automatic chmod file permissions to installation routine

RumpyBumpy posted 30th of July 2008 in Community Voice. 15 comments.

When is Boonex going to add a chmod permissions routine to installation to automate it and come OUT of the abacus era???

Making users change all those permissions by hand is INSANE and just plain RUDE!!! (no respect for customers)

ESPECIALLY since it would be SO EASY for them to add it to the install.

At the least, it is very POOR product carma as word of mouth travels fast and the product is labeled VERY DIFFICULT to install!

At the most, it would REALLY boost product value perception and reputation for a great product! (yes)

EDIT: 02:22 7/31/2008

Removed file as it did not work on all servers.

Sorry guys didn't think of that.

 
Comments
·Oldest
·Top
Please login to post a comment.
AndreyP
Hey,

We can comment it.
Yes, it will work if your server run scripts as CGI application (where scripts run as ftp user), so, in this case owners of script and files will same, and yes, this change permissions

But, many hosts run scripts as apache handle (world, nobody is owner), so your script can`t work here,
Just now I check your script at such host .. and - it give me - failed at all positions, all just because owners not same,
Script was run as 'nobody', but owner was my account member see more ('andrey' for example).
Hope now you understand this.

So we, as company, must provide something that will work anywhere, .. possible we include shell php file in our installs to apply permissions (chmods) under shell (SSH) , that was sure that it was run under account member
sammie
most shared hosts forbid the use of ssh access, so i think that would get people in more problems than it would solve
DosDawg
andreyP is the user is using a shared host that is not setup to run the dolphin script, then this could be true. however, in going by the developers own server requirements, this would never present itself as a problem. and a script running as nobody. the instance you speak of this server could and should on a shared environment be minimum SUPHPexec and that would alleviate what you are saying. so you tried on one server that was not configured to run dolphin. i have used this scirpt on 150+ servers, see more and found one problem only once.

just wanted to bring that to your attention.

later,
DosDawg
theGhost
It's the IMMEDIATE part in your STEPS that is precisely why I am glad it is NOT there!

If I cared??? I would take your post down because...I could attack your server and that file 1 million times in less then 30 seconds...

The attack recently should have opened your eyes to this possibility.?

Which is why I will NEVER ask for that "automatic" chmod file. It's the file that scares me not 15minutes of file permission configuration.
gkcgautam
Attack 1 million times in 30 secs!
Dear, that's no reason to avoid using this. Why? While installing dolphin, we set permissions of so many files as writeable for few mins. Even that could be attacked million times (dat's wat u mean).

Just a friendly comment :-)
RumpyBumpy
EDIT: 02:22 7/31/2008

Removed file as it did not work on all servers.

Sorry guys didn't think of that.
DosDawg
rumpybumpy,
i have actually written a mod that does this. you can find it over on expertzzz.com i offered it here on boonex as my one free extension, but for some reason it hasnt been reviewed. basically what it does is you overwrite your install directory on your dolphin site. there is a link on the top of the page that will in turn open a subsequent file that lets you pass your login parameters to the ftp server, and this will in turn fire off the chmod automation. as you continue through the see more installation you get to the point where you will need to reverse some of the file permissions and this is provided for you as well using the same method of logging into ftp, and passing the chmod requirements across the server.

Now to rebutt the statements about being unsafe on here, this may be true for whatever it was you were mentioning, but with this mod, you will be deleting it, as its a requirement to remove the install directory from the server after the install is complete. so i think i have provided what most would just love to have. not all are familiar with shell and CLI and it is an event to chmod 80+ files just to get an install.

hope that sheds some light on things.

later,
DosDawg
RumpyBumpy
This would be what is needed on a wide scale basis.

What I have was php which as mentioned and I forgot will work with php-cgi only.

I worked up the reverse permissions also before I was reminded it wouldn't work for all.
sammie
the one DosDawg wrote and i tested, looks part of the normal install pages, but it logs into the server via ftp to chmod the files so this works on all servers, as it is not a CGI dependent GUI.
it is fast and it part of the normal Dolphin install GUI and as such it is deleted when install is complete.

having a lot of dolphin sites, i use it for multi installs time and time again, it saves me time, because i install dolphin over 20 times a month,

.
RumpyBumpy
v6.1.4 now stands at 92 files/directories to change coming in and 6 going out for a total of 98 changes. (by hand)
pttinc
Anyone ever think that this is a good thing, as too many average intelligence "installers" and everyone has a dolphin site....where are your members going to come from if we could install this 1.2.3. Lets not make it as easy as installing adaware or we will have 223 million dolphin sites..
I myself had fun installing and found the routine lengthy but smart in the above sence.....just my 3 cents, get it, got it...Good :-))
hcgoodman
HERE IS WHAT YOU NEED! BEST OF ALL- IT'S FREE!

http://www.christianatlanta.com/AutomateSettingPermissions-Dolphin.zip

Hello, I'm Heath Goodman, not a significant person in this world really. However, I try to contribute to worthy causes. Boonex seems to be a worthy cause.
Dolphin installations don't have to be so tedious anymore, in regards to setting permissions to the almost 100 files. Save a bunch of time by doing the following-

1. Put the two php files provided- chmodauto.php and chmodautorev.php see more in the root folder where all the main dolphin files reside such as www.yourdomain.com/dolphin. THESE FILES MUST BE IN THE ROOT DOLPHIN FOLDER!
2. When you come to the first install screen that asks you to set the permissions and all of the files are in red, point another browser window to www.yourdomain.com/dolphin (or whatever name you've chosen)/chmodauto.php (this calls up the php script- where it resides).
If all goes as planned the window should report that all permissions on the files have successfully been updated.
3. Close the window that successfully executes the script chmodauto.php
4.Click check on the install window to check to see if all files are green indicating a green light to go to the next step.
5. After going through the other steps (naming database, setting up cron jobs etc.) you will come to a screen that will tell you to reverse a few files in regards to their permissions. You could do this manually (not as tedious as setting the 92 permissions) or you could just point another browser window to www.yourdomain.com/dolphin (or whatever name you've chosen)/chmodautorev.php (this calls up the php script). This should display a successful reversal of these files.
6. Close the window that successfully executes the script chmodautorev.php
7. Click check on the install window to check to see if all files are green indicating a green light to go to the final step (which is to remove the install folder from your directory.
8.However, the final step in this case is then to remove the files chmodauto.php and chmodautorev.php from the root folder where they reside.
Wala- you just saved a bunch of time. Now go use that time to do something even more important like snuggling up to the ones you love.
If I can help further, you can email me; sales@creatorgraphics.com
Thanks. Heath G.
RumpyBumpy
That is what this post is all about .....

I created an auto chmodder also in PHP however it will NOT work on all servers so was REMOVED!

Suggest you actually READ through the posts before making such a post and you REMOVE your file for download for ALL the above agreed upon reasons!

Thank you very much .....
.
g00rek
Why should he remove it? It worked for me! Thanx!
farouchia
It is great!!! It works like a charm! TY so much hcgoodman!
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.066468000411987