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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-03-2015, 12:17 PM
|
#1
|
Member
Registered: Mar 2003
Posts: 50
Rep:
|
vsftpd wont work for users added with /sbin/nologin
did useradd -s /sbin/nologin user1. then added /usr/sbin/nologin to
/etc/shells, but it still won't let those users ftp in. normal users
work fine. shouldn't this work? any help is appreciated
debian 3.2.0-4
vsftpd 2.3.5-3
|
|
|
04-03-2015, 12:51 PM
|
#2
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
Yes, it should work that way. It will be good if you share your vsftpd.conf file so that we will get better idea of the issue.
|
|
|
04-03-2015, 01:21 PM
|
#3
|
Member
Registered: Mar 2003
Posts: 50
Original Poster
Rep:
|
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
local_root=/var/ftp/pub
listen_port=21
pasv_enable=YES
allow_writeable_chroot=YES
xferlog_file=/var/log/vsftpd.log
ftpd_banner=welcome
deny_email_enable=YES
banned_email_file=/etc/vsftpd.banned_emails
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/chroot_list
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
require_ssl_reuse=NO
ssl_ciphers=HIGH
|
|
|
04-03-2015, 01:26 PM
|
#4
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
Did you try creating a normal user and then changing the shell to /sbin/nologin or /bin/false by editing /etc/passwd or using usermod. Do you see any difference when you set it to /bin/false instead of /sbin/nologin.
|
|
|
04-03-2015, 01:36 PM
|
#5
|
Member
Registered: Mar 2003
Posts: 50
Original Poster
Rep:
|
same thing, it won't let you in. this worked in the past. had it setup this way
|
|
|
04-03-2015, 01:40 PM
|
#6
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
As you said it worked in past what changed you have made to the system since then. Any changes recently performed which resulted in this. When you try to login with the user who have got shell set to /sbin/nologin what is the exact error message that you get? Did you try taking packet trace. If yes, what do you see in packet trace?
Last edited by T3RM1NVT0R; 04-03-2015 at 01:45 PM.
|
|
|
04-03-2015, 01:43 PM
|
#7
|
Member
Registered: Mar 2003
Posts: 50
Original Poster
Rep:
|
it says fail login
|
|
|
04-03-2015, 01:47 PM
|
#8
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
You are not answering to all the queries, without the details how we suppose to know what's going on? You said failed login but what about the error code and what about the other questions that I have posted?
|
|
|
04-03-2015, 01:52 PM
|
#9
|
Member
Registered: Mar 2003
Posts: 50
Original Poster
Rep:
|
set it up a while back and i'm setting it up again because i have a need again. login failed is the only message i get
|
|
|
04-03-2015, 02:06 PM
|
#10
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385
|
Do you have config file from the previous setup. Did you compare the previous and the current config file. As you said you are setting it up again that means it did not work in past. I mean this is a new setup and it never worked with /sbin/nologin. The best way I can think of is to first compare the configs files from previous setup with this one. If that doesn't give you any clue then go with packet trace to see if you find something there.
|
|
|
04-04-2015, 06:21 AM
|
#11
|
Member
Registered: Mar 2003
Posts: 50
Original Poster
Rep:
|
|
|
|
All times are GMT -5. The time now is 03:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|