Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-12-2004, 01:25 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
Unhappy I lose ftp access when I disable shell access for user

When I set my users shell access to /dev/null he loses ftp access and the error sais login not correct. I'm using fedora 2 and vsftpd ftp server. Can someone help me out with why this is happening.

Old 11-12-2004, 04:19 AM   #2
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
If you're routing a user's shell to the linux equivallent of the netherworld, you're disabling that user from issuing commands of his own (ie logging in). Even FTP has to issue commands ("cd /blah/download/stuff/misc" amongst others), and when you disable that shell, you disable their ability to use commands.

We know that there are differences in commands between the bash, sh, and other shells. The difference with /dev/nul is that there are -no- valid commands.
Old 11-12-2004, 08:01 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
FTP and especially vsftpd should have its own built in commands for users.. give this user a shell called.. /bin/false and add that to your /etc/shells file.. then have him try to FTP into the server.

The problem is, with a shell like /dev/null.. well, the system itself is sending him into a blackhole..
Old 11-13-2004, 06:49 PM   #4
LQ Newbie
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0

Thank you , that did the trick !


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
only FTP access to user not ssh or telnet farhank Linux - Security 3 10-27-2005 10:30 AM
how to deny user to use ftp to access system ust Linux - Software 4 05-23-2005 09:39 PM
Disable net access for one user Dawgmatix Linux - Networking 5 02-05-2005 11:25 AM
can you restrict ftp USER access to certain ips? linuxboy69 Linux - Software 2 02-26-2004 05:05 PM
Disable Shell Access Manuel-H Linux - Software 3 06-22-2003 12:06 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration