LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Vsftpd user problem on Mandrake 10.1 (https://www.linuxquestions.org/questions/linux-software-2/vsftpd-user-problem-on-mandrake-10-1-a-295614/)

jjwl89 02-27-2005 06:31 PM

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

eckertc1 02-27-2005 07:06 PM

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 :)


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