Official Xtreamer Forums: Install VSFTPD - Official Xtreamer Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Install VSFTPD

#1 User is offline   outkastm 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 08-December 09
  • City:Oud-turnhout
  • Country:Belgium

Posted 23 December 2009 - 15:37

What is VSFTPD

vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution.

Features

Despite being small for purposes of speed and security, many more complicated FTP setups are achievable with vsftpd! By no means an exclusive list, vsftpd will handle:
Virtual IP configurations
Virtual users
Standalone or inetd operation
Powerful per-user configurability
Bandwidth throttling
Per-source-IP configurability
Per-source-IP limits
IPv6
Encryption support through SSL integration

This is HOWTO install VSFTPD with possibility to add more users on your eTRAYz


First u need to stop FTP server from eTrayz web interface

Secon follow this tutorial to instal ipkg and nano
viewtopic.php?p=67892#p67892

/opt/bin/ipkg install xinetd
/opt/bin/ipkg install vsftpd



Config vsftpd:

/opt/bin/nano /opt/etc/vsftpd.conf


Add this lines at the bottom

secure_chroot_dir=/opt/usr/share/empty



To lock users in their home directory add this line

chroot_local_user=YES


To be able to setup write access for users add this line

user_config_dir=/etc/vsftpd.users



Create folder

mkdir /etc/vsftpd.users


Now lets create the vsftpd xinetd script


/opt/bin/nano /opt/etc/xinetd.d/vsftp


Enter the following lines into the file.

# description: The vsftpd FTP server serves FTP connections. 
# it uses normal, unencrypted usernames and passwords for auth
service ftp 
{ 
disable = no 
socket_type = stream 
user = root 
server = /opt/sbin/vsftpd 
server_args = /opt/etc/vsftpd.conf 
wait = no 
nice = 10 
only_from = 0.0.0.0/0 
}


Now make this script executable

chmod  x /opt/etc/xinetd.d/vsftp



Now make the log file, the default location is /opt/var/log/vsftpd.log

mkdir -p /opt/var/log
cd /opt/var/log
touch vsftpd.log




Now we can start the xinetd daemon and at the same time, the vsftpd server.

/etc/init.d/S10xinetd


For autostart
cp /opt/etc/init.d/S10xinetd /etc/init.d/xinetd



Create user

cd /etc
/opt/bin/nano passwd


You will now see something like this

sysadmin:x:500:500:sysadmin:/home/sysadmin:/bin/sh


if we break this down, the format of these lines is as follows:

username:passwordhash:UserID:GroupID:comment:/my/home/directory/:/shellpath


Now, lets make a new user, for this guide, we will call the user 'share'. Go to the bottom of the passwd file and add the following line.

share::1001:1001:shareuser:/home/share:/bin/sh


Note that we have given the user 'share' shell access. If you want to disable this:

replace /bin/sh with /sbin/nologin


Now we make the password for the user 'share', type:

pwconv
passwd share
password
password (again)



Now create access rights for user

/opt/bin/nano /etc/vsftpd.user/share


Add this lines:

dirlist_enable=yes
download_enable=yes
write_enable=no


I dont know linux...i can't give support
eTRAYz
0

#2 Guest__*

  • Group: Guests

Posted 23 December 2009 - 16:09

why not using more users with proftpd ?
0

#3 User is offline   outkastm 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 08-December 09
  • City:Oud-turnhout
  • Country:Belgium

Posted 23 December 2009 - 17:09

With proftp i don't know how to set permission for users (home folder, write access )
eTRAYz
0

#4 Guest__*

  • Group: Guests

Posted 27 December 2009 - 14:29

outkastm said:

With proftp i don't know how to set permission for users (home folder, write access )

is there something like proftpdadmin ( web adiministration "script" ) for vsftpd?
0

#5 User is offline   outkastm 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 08-December 09
  • City:Oud-turnhout
  • Country:Belgium

Posted 27 December 2009 - 19:20

Try this:
http://www.webmin.co...i-bin/search_th ... rch=vsftpd
eTRAYz
0

#6 Guest__*

  • Group: Guests

Posted 28 December 2009 - 20:40

outkastm - webmin is a nice application - but - everyone that install it, should take care of what settings they edit !

for instace one can disable SSH, which could be very bad :D
0

#7 Guest__*

  • Group: Guests

Posted 06 January 2010 - 11:58

outkastm said:


doesn't work on etrayz :ugeek:

or i'm to dumb to install it :cry:
0

#8 Guest__*

  • Group: Guests

Posted 06 April 2010 - 09:54

it may be a stupid question, but can i use this program to upload file's to a one-click hoster (like hotfile) just like i can do with WS_FTP?
0

#9 User is offline   woete 

  • Member
  • Group: Members
  • Posts: 164
  • Joined: 19-November 09
  • Country:Country:

Posted 08 April 2010 - 21:59

is VSFTPD faster in files transfers then proftpd ?
I tried webmin with proftpd plugin, but it messed up all settings and ftp server didn't work anymore after webmin changes so be carefull.
xtreamer - etrayz - synology ds110j
3 x 1,5TB sasmung ecogreen
allready lost 2x data on etrayz
loves the app installer from thehijacker !!!
0

#10 Guest__*

  • Group: Guests

Posted 09 April 2010 - 10:01

Very nice guide.

We will have a look to add this to the installer of the hijacker.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users