Quote:
Originally Posted by radim_h
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
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.
Recent comments
1 hour 16 min ago
2 hours 16 min ago
6 hours 3 min ago
7 hours 17 min ago
10 hours 53 min ago
18 hours 8 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 19 hours ago
1 day 22 hours ago