LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

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


Hello,
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.

thanks
 
Old 11-12-2004, 03:19 AM   #2
Poetics
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, 07:01 AM   #3
trickykid
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, 05:49 PM   #4
captainObvious
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
hello

Thank you , that did the trick !
 
  


Reply



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 09:30 AM
how to deny user to use ftp to access system ust Linux - Software 4 05-23-2005 08:39 PM
Disable net access for one user Dawgmatix Linux - Networking 5 02-05-2005 10:25 AM
can you restrict ftp USER access to certain ips? linuxboy69 Linux - Software 2 02-26-2004 04:05 PM
Disable Shell Access Manuel-H Linux - Software 3 06-22-2003 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:48 PM.

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
Open Source Consulting | Domain Registration