Frontpage

Tony

Well-Known Member
#1
I can get frontpage working for users manually by doing:

Code:
chgrp nobody service.pwd
chmod 0640 service.pwd


Do it across all users which is great. But any cPanel update and that'll break.

I tried using this command:


Code:
sed -rie 's/(safe_)?chmod\(( )?0600,( )?("\$\{myuid\}",)?( )?"\$(\{)?homedir(\})?\/public_html\$\{subweb\}\/_vti_pvt\/service.pwd"( )?\);/\1chmod(\20644,\3\4\5"$\6homedir\7\/public_html${subweb}\/_vti_pvt\/service.pwd"\8);/' /scripts/fp-auth /usr/local/frontpage/version5.0/apache-fp/fp-auth /usr/local/cpanel/bin/convertfppassthrough /scripts/fixfrontpageperm
I end up with

sed: can't read /usr/local/frontpage/version5.0/apache-fp/fp-auth: No such file or directory

So the /scripts/fixfrontpageperm does not actually change things the way I'd like.


So is anyone using something else to make so the /scripts/fixfrontpageperm does not break everything?
 
Last edited:

Tony

Well-Known Member
#3
looks like cPanel has changed some scripts. will look into it.
They should stop doing that.

My Perl is a little rusty and I never looked at the old frontpage scripts so I'm not sure what all they did and where they had the changing of permissions and ownership of the files previously.
 

Tony

Well-Known Member
#5
I believe the file that needs changed now is:

/scripts/cPScript/FrontpageAdmin.pm

So I believe it's just a matter of adding that file to the list.
 
Last edited:
Top