I already had put in<div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; ">local_enable=YES<br>write_enable=YES</span></div><div><br>
</div><div>Then on a whim I took out</div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">auth    required        pam_shells.so</span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">from /etc/vsftpd.conf, and then it started working. I guess it didn&#39;t like that /bin/bash was set as my shell in /etc/passwd and also in /etc/shells. Or something.<br>
</span></font><br><div class="gmail_quote">On Tue, Mar 22, 2011 at 12:43 PM, Trevor Cordes <span dir="ltr">&lt;<a href="mailto:trevor@tecnopolis.ca">trevor@tecnopolis.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 2011-03-22 Kevin McGregor wrote:<br>
&gt; Maybe someone can throw in their two cents on this:<br>
&gt;<br>
&gt; I installed vsftpd on my Ubuntu 10.04 server, and I set<br>
&gt;<br>
&gt; local_enable=YES<br>
&gt; write_enable=YES<br>
&gt;<br>
&gt; When I FTP to the server, I get prompted for a username and password,<br>
&gt; but it seems to just reject it and ask for username/password again.<br>
&gt; What else do I need to do? I just want one account to be able to FTP<br>
&gt; upload files to this server.<br>
<br>
</div></div>Ah, you&#39;re assuming it&#39;s easy.  Vsftp config is for sure not that!<br>
<br>
Here&#39;s my config:<br>
anonymous_enable=NO<br>
<div class="im">local_enable=YES<br>
write_enable=YES<br>
</div>local_umask=0002<br>
dirmessage_enable=YES<br>
xferlog_enable=YES<br>
connect_from_port_20=YES<br>
xferlog_file=/var/log/vsftpd.log<br>
xferlog_std_format=YES<br>
idle_session_timeout=3600<br>
nopriv_user=ftp<br>
ascii_upload_enable=YES<br>
ascii_download_enable=YES<br>
ftpd_banner=This is a private system.  Unauthorized use is strictly<br>
prohibited.  Violators will prosecuted.<br>
pam_service_name=vsftpd<br>
userlist_enable=YES<br>
userlist_deny=NO<br>
userlist_file=/etc/vsftpd/user_list<br>
listen=YES<br>
tcp_wrappers=YES<br>
chroot_local_user=YES<br>
anon_max_rate=50000<br>
local_max_rate=100000<br>
anon_umask=0007<br>
file_open_mode=0666<br>
user_config_dir=/etc/vsftpd/userconfs<br>
<br>
Then make a /etc/vsftpd/user_list and populate it with allowed user ids<br>
for login.  One per line.  Mine only has 2 entries (the more locked<br>
down the better).<br>
<br>
Then make files, one per user allowed, the filename the same as the<br>
username in /etc/vsftpd/userconfs/.  I have 1 line in each:<br>
local_root=/var/ftp/pub<br>
<br>
Or wherever you want them to be able to access.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
</div></div></blockquote></div><br></div>