Page 1 of 1

additional ftp accounts below /public_html/ ?

Posted: Sat Aug 30, 2003 10:50 pm
by ZeroFill
hi all. i was wondering if it was possible to add a additional ftp users with access below /public_html/ in cPanel. i want to keep out my more sensitive includes (such as config files w/ mysql user/pass) outside public domain as well as *.tpl files

i already use the main account to access everything, but want to lock the designers in ~/templates/ (or where ever we decide to put all the *.tpl files)

Posted: Sun Aug 31, 2003 11:49 pm
by porcupine
I'm not sure if this can be done in CPanel. I actually don't think it can without additional work (what about adding subdomains instead of additional FTP users?).

If not, .htaccess is your friend :).

Posted: Mon Sep 01, 2003 2:31 am
by ZeroFill
adding sub-domains won't help because we want the *.tpl files outside of public domain (below ~/public_html/).

pseudo dir structure

Code: Select all

~/public_html
~/projects/project_name/templates/themes/theme_name/*.tpl
~/projects/project_name/templates/compiled/
~/projects/project_name/cache/
~/projects/project_name/config/
~/projects/project_name/locale/
i want to lock the designers into

Code: Select all

~/projects/project_name/
so they don't even think about touching the business logic.

btw, we're using Smarty Template Engine if you're wondering. we just switched to it and it makes life a lot more livable by keeping design and business logic seperate :D

would it be possible to make this request as a licensee to cPanel because, imo, not allowing us to set sub-ftp's home dirs anywhere in OUR folder is just ridiculous. i would ask but apparently they want ticket submissions. same goes with not allowing users to have full control over THEIR databases such as locks and grants (mySQL)

Posted: Wed Sep 03, 2003 7:07 pm
by porcupine
ZeroFill wrote:adding sub-domains won't help because we want the *.tpl files outside of public domain (below ~/public_html/).

pseudo dir structure

Code: Select all

~/public_html
~/projects/project_name/templates/themes/theme_name/*.tpl
~/projects/project_name/templates/compiled/
~/projects/project_name/cache/
~/projects/project_name/config/
~/projects/project_name/locale/
i want to lock the designers into

Code: Select all

~/projects/project_name/
so they don't even think about touching the business logic.

btw, we're using Smarty Template Engine if you're wondering. we just switched to it and it makes life a lot more livable by keeping design and business logic seperate :D

would it be possible to make this request as a licensee to cPanel because, imo, not allowing us to set sub-ftp's home dirs anywhere in OUR folder is just ridiculous. i would ask but apparently they want ticket submissions. same goes with not allowing users to have full control over THEIR databases such as locks and grants (mySQL)
Better submit a ticket then, because I'm fairly certain you can't do it the way you're thinking of there. Its under their support section, and pretty easy to use (though not intended for end users, you can fake it I guess. Remember when it asks for IP to put in the main server IP).

Posted: Thu Sep 04, 2003 12:05 am
by MITeacher
Im pretty sure this feature is available on cPanel. When you create an FTP account, I believe it tells you more about the feature. I know it lets you specify "userx" can only access "foldery" and so on. Im not sure if this is exactly what you're looking for though.

Posted: Tue Sep 09, 2003 10:49 pm
by ZeroFill
MITeacher wrote:Im pretty sure this feature is available on cPanel. When you create an FTP account, I believe it tells you more about the feature. I know it lets you specify "userx" can only access "foldery" and so on. Im not sure if this is exactly what you're looking for though.
the only option found is setting a new ftp user's home directory anywhere within /public_html/.

i want to set a new ftp user's home directory to /projects/proj_name/ (which has no relation to /public_html/). if this is possible, please let me know how to do this. take a second look at my pseudo dir structure example above to get a better picture of what i mean.

this is pretty much how the new ftp user account setup looks like

Login: |¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
Password: |¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
Directory: /home/zero/public_html |¯¯¯¯¯¯¯¯¯¯¯¯¯¯|

notice how directory is fixed at /home/zero/public_html than /home/zero, how it "should" be.

Posted: Thu Sep 11, 2003 10:58 am
by Matt
Have you tried setting the path to /home/zero/public_html/../projects/.

Shouldn't work, but it might as a bug/undocumented feature. Just be sure you change the ownership/permissions of the files to the right user.

-Matthew

Posted: Thu Sep 11, 2003 1:19 pm
by ZeroFill
yeah, i already tried tricks like that, no dice :cry:

it seems like they strip out double dots (..) even when trying to escape (\.) them.