LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-17-2006, 01:53 PM   #1
dcoates
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
Vsftp


Good Afternoon Everyone. I am a newbie to the linux world.


I have setup vsftp on a debian box. I can get one local user with to upload files but when i tried to download as a different users I get 550 Failed to open file.

i would think it is a user rights problem, but I can't seen to get by this.

Below are the instruction I followed for setup.

2) Configuration for passworded logins only

Now to configure by editting /etc/vsftpd/vsftpd/.conf. I suggest that you read all the documentation no matter what (man vsftpd.conf), then use this sample code as a guideline. Still, here's a configuration file that allows local users and disallows anonymous access (that means you must enter a password):
# /etc/vsftpd/vsftpd.conf - destuxor - 3/20/2005 - local logins only
local_enable=YES
write_enable=YES
anonymous_enable=NO
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
idle_session_timeout=600
data_connection_timeout=120
ascii_upload_enable=NO
ascii_download_enable=NO
nopriv_user=downloader
dirmessage_enable=YES
ftpd_banner=Your Banner Goes Here
chroot_list_enable=NO
chroot_local_user=YES
background=YES
listen=YES
ls_recurse_enable=NO

4) Adding user accounts (only do this if you've done (1))

So now that it's configured it's time to add the appropriate user accounts. We're going to create two user accounts with the same home directory. One user will be able to read and write, the other will only be able to read. Both will require passwords. Open a command prompt and get root:
$ mkdir /home/shared
$ useradd -d /home/shared -s /bin/bash -g ftp downloader
$ useradd -d /home/shared -s /bin/bash -g ftp uploader
$ chown uploader:ftp -R /home/shared
$ chmod 750 -R /home/shared
$ passwd downloader
$ passwd uploader
$ rc-update add vsftpd default

any ideas wiould be appreciated

Thanks
Don
 
Old 02-21-2006, 07:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
any ideas wiould be appreciated
- Please be verbose when you report a problem. Don't say "I tested with one user" but post the name and a long listing of files.
- If accounts are FTP-only then they don't need an account on the system, see Vsftpd virtual user example.
- nopriv_user=downloader defaults to "nobody" and should AFAIK be a lesser-privileged system account, not a "wetware" user.
- See chown options.
 
  


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
vsftp help Fredstar Linux - Newbie 1 10-22-2004 12:01 PM
vsFTP toejam Linux - Security 6 05-15-2004 09:38 AM
help with vsftp a2carat Linux - Software 7 02-16-2004 10:38 AM
little help with vsftp thanks a2carat Linux - Networking 2 01-30-2004 12:37 PM
vsftp Greg21 Linux - Software 1 03-01-2003 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:32 AM.

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