LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-04-2007, 01:17 AM   #1
orpheon
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
Creating non-local machine vsftpd users


Hey, does anyone know how to create vsftpd users without creating users in /etc/passwd ? I tried reading up on userlist_enable in the man file but could not figure out how to do so.

Or is there an alternative method of setting up my ftp server so I can have multiple-user/password logins for the server such that they cannot also log into my system?

thanks in advance!
 
Old 02-04-2007, 04:42 AM   #2
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
I can't answer your vsftp question since I don't use it, but you can deny Linux user accounts from access to your system by editing your /etc/passwd file and assigning them an invalid shell.

For example, this user can log in to my system via SSH or Telnet:

nobody:x:65534:65534:nobody:/nonexistent:/bin/sh

This user cannot log in:

syslog:x:101:102::/home/syslog:/bin/false

Note the last entry after the final colon (/bin/false for example). This specifies the shell. If a user has no shell, they cannot log in via SSH or telnet but (depending on your configuration) will still be able to log in via ftp.

There are different "non-valid shells" depending on your distro, but /bin/false should work for most if not all.
 
Old 02-04-2007, 03:56 PM   #3
Frogular
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
regarding /bin/false - aren't there security implications where users can still authenticate and port forward even though they don't get a shell?
 
Old 02-04-2007, 04:16 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by Frogular
regarding /bin/false - aren't there security implications where users can still authenticate and port forward even though they don't get a shell?
Actually, I was thinking so as well ... not quite sure, but I remember reading something about that. So, maybe it's not the best way ...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsFTPd virtual AND local users gag.halfrunt Linux - Software 0 02-17-2006 10:25 AM
vsftpd local users read-only fluffyvoidbunny Linux - Networking 2 02-07-2006 11:55 AM
vsftpd and local users mieslep Linux - Networking 6 11-05-2004 12:21 PM
vsftpd and (some) local users totothehero Linux - Networking 0 09-29-2004 04:08 PM
creating users with vsftpd myk3 Linux - Newbie 1 11-19-2003 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:58 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