Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-18-2006, 02:30 PM   #1
Registered: Jul 2005
Location: USA
Distribution: SuSE 9
Posts: 49

Rep: Reputation: 15
Question how to achieve this in VSFTPD?

I am using Debain v3.1 (Sarge) linux and i recently installed vsftp using:
# apt-get install vsftpd
The version of vsftpd running on my linux box is 2.0.3-1. My present vsftp.conf looks like following:
# Standalone mode

# Access Rights

# Security

# Features

# Logging
With the above settings i am able to log in using any of my linux user's id for whom the home directory is located under /home/<UID> but for the root account it doesn't work and i always get following error message.

Status:	Connecting to ...
Status:	Connected with Waiting for welcome message...
Response:	220 Welcome
Command:	USER root
Response:	331 Please specify the password.
Command:	PASS ******
Response:	530 Login incorrect.
Error:	        Unable to connect!
On this linux box i also have a apache webserver running and i want to use a particular user account which gives read/write access /var/www/*. This folder has got all my webpages and i want it shared so that i could remotely code the scripts. Beside this i also want to have a user account with which i can browse the complete directory structure in Linux, so if required i can upload/download some files. So, is it possible to configure vsftpd such way and behave according to the user logging in? If yes then how can i achieve this?

Thanks in advance.
Old 02-18-2006, 06:09 PM   #2
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,310

Rep: Reputation: Disabled
Hello there.
Looks like you somehow managed to miss some basics. Internet is a place where strongest meet the weakest - no mercy. This means some strict rules must be followed in order to survive and not to be the weakest.
ftp is file transefer protocol and nothing but that, completely insecure,
root account is a technical account and not suitable for using computer nor making remote connections,
ssh is secure shell, can be used for remote administration.
If you need root access in a remote computer you have to use ssh to log on and su to gain superuser rights.
In your situation you should use root account only to set up the Apache, anything else related to the web site you host has to be done via user account.
These guidelines are good even if both boxes are on LAN and behind firewall.
Think, what could happen if you had unlimited access using plaintext ftp connection. Extracting your credentials is a piece of cake and in very next moment somebody might upload a rootkit and execute it ...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to compile apps to achieve maximum performance? kornerr Linux - General 14 06-20-2005 02:00 PM
Something i'am trying to achieve using udev :: need some help small_boy22 Linux - Hardware 1 06-01-2005 10:19 AM
is it possible for me to achieve a 32 bit graphics with this hardware? spyghost Solaris / OpenSolaris 1 03-27-2004 05:21 AM
Can I achieve this? Xiangbuilder Linux - Newbie 20 10-25-2003 08:11 AM
Help This Newb Achieve his Linux Dream! TeknoPhreak Linux - Newbie 9 03-21-2003 08:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 AM.

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