LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2005, 01:33 PM   #1
siulung
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Rep: Reputation: 0
Proftpd with plesk on redhat


i am trying to setup a linux server with remote ssh and plesk access only,it have proftpd installed with it.
i need to setup a ftp account on the server to access one of the vhost folder ( /home/vhost/test/httpdoc/somefolder/) and that account can only access such folder only
from plesk web site ---
You need to create system/ftp user, set the home directory for this user to your_domain/some/location and add the user into /etc/ftpchroot file. The user will be 'chroot'-ed to his home only. Do not forget to set directory permissions correctly.

could some of experience user explain to me detaily what to do, i am not too experience with linux, especially with ssh only...

here is the proftpd.conf
-----------
ServerName "ProFTPD"
ServerType inetd
ServerType inetd
DefaultServer on
<Global>
DefaultRoot ~ psacln
AllowOverwrite on
</Global>
DefaultTransferMode binary
UseFtpUsers on

Port 21
Umask 022

MaxInstances 30

configurations
ScoreboardFile /var/run/proftpd/scoreboard

TransferLog /usr/local/psa/var/log/xferlog
<Directory /home/httpd/vhosts>
GroupOwner psacln
</Directory>

Include /etc/proftpd.include
---------
all i can dig up is up to here from here how do i set the user? unlike from the proftpd web site i couldn't figure where the vhost and user...
any help is appericate
thx
P.S. the ftpserver is up and running i can login the ftp with the client plesk setup for me but i don'y know how to customize those account setting and i need to set extra ftp account.
 
Old 02-06-2005, 03:29 PM   #2
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 31
If I understand correctly, you need to add a new user to your ftp, and have it's homedir /home/vhost/test/httpdoc/somefolder/. I'm not sure if I'm doing this correctly, but I'll try. You need to:
Change this "DefaultRoot ~ psacln" to "DefaultRoot ~".
Then run "useradd YOURUSERNAME". That will add a user with the name YOURUSERNAME to the system. Set the password for the user by "passwd YOURUSERNAME". Then do "ln -sf /home/vhost/test/httpdoc/somefolder/ /home/YOURUSERNAME". That will link the /home/vhost/test/httpdoc/somefolder/ directory to your new user's homedir. Add the user to sshd-denied users (for security). Then you need to add this to your proftpd.conf:
Code:
<Anonymous ~YOURUSERNAME>
  User                          YOURUSERNAME
  Group                         ftp

 <Limit WRITE>
    DenyAll
  </Limit>
AllowRetrieveRestart on
AllowStoreRestart on
</Anonymous>
That will deny the user all write access, but allow him to download files and resume downloads.

Please note: I think this should work. Check the permissions for the /home/vhost/test/httpdoc/somefolder/ directory. I hope this helps you!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ProFTPd, Redhat 8.0 and passive mode Slasher Linux - Networking 10 05-09-2008 04:08 PM
plesk and cgi on redhat 9 techhost Linux - Software 0 03-03-2004 10:47 PM
make problems with ProFTPD with mod_tls on RedHat 9 Osten Linux - Software 0 09-28-2003 09:51 PM
Installing proftpd on Redhat 8.0 Yohhan Linux - Networking 1 01-22-2003 05:41 AM
Install ProFTPd on RedHat 7.1 sc300t Linux - General 4 01-23-2002 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration