Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th June 2008, 20:01
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 404
Thanks: 33
Thanked 23 Times in 18 Posts
Send a message via ICQ to radim_h
Default how to change ftp root for single user

Helo,
i need to change one user (or should be all users in the domain)
to log directly under /web directory

i know there is solution editing proftpd.ini file
DefaultRoot ~
to
DefaultRoot ~/web

but i'd like to change the root just for single user (or it should be whole domain) and not affect the others

if that is not possbile
can i createsomehow ftp user not depending on ISPC ??

Last edited by radim_h; 26th June 2008 at 20:04.
Reply With Quote
Sponsored Links
  #2  
Old 27th June 2008, 23:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

That's not possible.

Quote:
Originally Posted by radim_h View Post
if that is not possbile
can i createsomehow ftp user not depending on ISPC ??
Yes, you can add a normal system user (with the useradd command) and make the web directory his home directory.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th May 2009, 23:22
sirrus sirrus is offline
Junior Member
 
Join Date: May 2009
Location: Frankfurt am Main
Posts: 15
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via ICQ to sirrus Send a message via Skype™ to sirrus
Question FTP user path

Why is that impossible. You can change the user home directory in /etc/passwd.

Or is there a good reason not to not do that?

Regards,
Andreas
Reply With Quote
  #4  
Old 9th May 2009, 14:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by sirrus View Post
Why is that impossible. You can change the user home directory in /etc/passwd.
Yes, but ISPConfig would overwrite your changes.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th May 2009, 14:47
sirrus sirrus is offline
Junior Member
 
Join Date: May 2009
Location: Frankfurt am Main
Posts: 15
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via ICQ to sirrus Send a message via Skype™ to sirrus
Default Ftp

There is no way to create FTP only users in ISPconfig2? And there is no development on that in the trunk version?

If not - when will ISPconfig3s stable enough to be used? There is an ftp only...
Reply With Quote
  #6  
Old 10th May 2009, 18:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by sirrus View Post
There is no way to create FTP only users in ISPconfig2?
Right.

Quote:
Originally Posted by sirrus View Post
If not - when will ISPconfig3s stable enough to be used? There is an ftp only...
ISPConfig 3 is stable since version 3.0.1.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 12th May 2009, 23:57
Whitenoise Whitenoise is offline
Junior Member
 
Join Date: Nov 2008
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by radim_h View Post
Helo,
i need to change one user (or should be all users in the domain)
to log directly under /web directory

i know there is solution editing proftpd.ini file
DefaultRoot ~
to
DefaultRoot ~/web

but i'd like to change the root just for single user (or it should be whole domain) and not affect the others

if that is not possbile
can i createsomehow ftp user not depending on ISPC ??
You can not modify the DefaultRoot for a single user but you can change DefaultChdir for a group. This will login that user into web but he will still be able to get into its parent folder.

Try this:

1. get the group that user belongs to
2. open /etc/proftpd_ispconfig.conf
3. after

Quote:
DefaultRoot ~
add

Quote:
DefaultChdir web usergroup
where usergroup is the group of your FTP user.

4. restart proftpd
5. you will have to modify the master ispconfig proftpd config template to have this permanent, otherwise proftpd_ispconfig.conf will be reseted as soon as you'll add a new ftp account



Now only that user will chdir into web after login. I tested it on the fly and it seems to work. Correct me if I'm wrong.
__________________
ISPConfig based free web hosting: Beedoo.org
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
monit howto Jamesk5 HOWTO-Related Questions 11 5th August 2008 15:10
i am having some problem ? cobro Installation/Configuration 20 30th April 2008 16:26
clamassassin - centos 4.3 wcsmith Installation/Configuration 41 19th November 2007 23:30
Add Webmin to the system sushestvo Installation/Configuration 44 21st August 2007 16:52
mod_proxy / rewrite rules KenKnight Server Operation 25 30th January 2007 22:21


All times are GMT +2. The time now is 16:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.