LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2005, 06:31 PM   #1
jjwl89
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
Vsftpd user problem on Mandrake 10.1


Hello
I installed vsftpd on a machine running mandrake 10.1. I'm fairly new with linux. I would like users to be able to log in and access a directory. My conf file reads as follows:

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
hide_ids=YES
ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=NO

When I try to ftp my machine it gives me the following error:

[root@localhost jason]# ftp localhost
Connected to localhost.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:jason): jason
530 Permission denied.
Login failed.
ftp> quit
221 Goodbye.
[root@localhost jason]#

What files should I place the users I want to be able to log in into? Also, does each user need an account on the machine and when they log in what directory can they access? Finally, where do I place the passwords for the users to login with?

Thanks
 
Old 02-27-2005, 07:06 PM   #2
eckertc1
Member
 
Registered: Feb 2005
Posts: 57

Rep: Reputation: 15
i use the following method for giving my users access to my ftp directory. im fairly new to linux myself so im not sure if this is the correct way to do things, nor if its the most secure way but so far it has worked and i have had no troubles with it.

open up a new Terminal and try the following:

start your vsftp service:
[root@whoever tmp]# service vsftpd start

create a new user directory:
[root@whoever tmp]# groupadd ftp-users

[root@whoever tmp]# mkdir /home/ftp-docs

Make this directory accessable:
[root@whoever tmp]# chmod 750 /home/ftp-docs

[root@whoever tmp]# chown root:ftp-users /home/ftp-docs

Add a user and a password:
[root@whoever tmp]# useradd -g ftp-users -d /home/ftp-docs user1
[root@whoever tmp]# passwd user1

now restart your ftp service:
[root@whoever tmp]# service vsftp restart

this method seemed to work fine for me. try it out and good luck

Last edited by eckertc1; 02-27-2005 at 07:08 PM.
 
  


Reply


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
VSFTPD:How to have vsftpd ask for anon user to "send email for password"? dmurray8888 Linux - Networking 1 08-31-2008 07:04 PM
VSFTPD virtual user problem exalik Linux - Networking 1 07-26-2006 11:22 PM
How to specify different authority to different user in VSFTPD luxxing2000 Linux - Software 0 11-04-2005 06:25 AM
VSFTPD virtual user login using pam.d problem exalik Linux - Networking 3 11-07-2003 05:29 PM
vsftpd virtual user LinuxNoobs Linux - Software 1 05-20-2003 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration