Jump to content

ProFTPd - handy links


Recommended Posts

  • 1 year later...

Hey everyone i'm running proftpd on fedore core 2 and i unziped it all in the main directory and have no idea how to install it. Cant find what is the right readme and hoping someone can alberate better cause after all i'm a noob.

Link to post
Share on other sites

easy answer.. use the rpm.. if you have apt-get its as easy as

 

apt-get update && apt-get install proftpd

 

if not

 

rpm -ivh http://ayo.us5.freshrpms.net/fedora/linux/...fc2.fr.i386.rpm

 

then run the following commands to get it running

 

chkconfig proftpd on

service proftpd start

 

fedora is rpm based.. you should almost never install anything from source unless you really need to or know what you are doing :)

Link to post
Share on other sites
... you should almost never install anything from source unless you really need to or know what you are doing :)

 

thats.. thats.. eureka.. i knew i should be installing from source all this time... :P

Link to post
Share on other sites
  • 2 months later...

if im remembering right, all that usr has to do is have either ownership or group privs for the dir in question. so chmod and chown would be where to start.

Link to post
Share on other sites
I want to configure this progarm to give a particaular user access to the web folder /var/www/html so he can do updates to the folder.. how do i do this ?

 

I have proftpd 1.2 on FC4

 

its all about the permissions, so all you need to do is add the user to the web group (for instance my 'web' group is apache).

 

# usermod -G web `groups user | cut -d':' -f2-` user

 

that adds 'web' to the existing list of groups that the 'user' has. as long as the directory and files have permissions for the web group to edit it will work..

 

# chgrp -R web /var/www/html
# chmod -R g=rw /var/www/html

 

that alters the group to be web and alters the permissions to give read write access to the group.

Link to post
Share on other sites
  • 1 year later...

This is what I used to do and I am not sure if its right or wrong but always worked.

 

 

To add a user for ftp purpose only so they can log into their home dir and nothing else and upload and download.

 

use:

 

useradd -m -k /dev/null -s /sbin/nologin {username}

 

 

for web use

 

useradd -d /var/www/html/{username} -m -k /dev/null -s /sbin/nologin {username}

 

To remove the user:

 

userdel {username}

 

to delete the user and all thier stuff:

 

userdel -r {username}

Link to post
Share on other sites
  • 8 months later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...