LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-13-2010, 08:29 PM   #1
xxmasrawy
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 0
vsftpd configuration


Hi All,
O/S : fedora 12
FTP : vsftpd-2.2.2-6.fc12.i686

to create user using FTP is that should be local user on FTP server
or i can create user specific to FTP only and it is non a local user on my server

regards
xxmasrawy
 
Old 08-14-2010, 01:13 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by xxmasrawy View Post
Hi All,
O/S : fedora 12
FTP : vsftpd-2.2.2-6.fc12.i686

to create user using FTP is that should be local user on FTP server
or i can create user specific to FTP only and it is non a local user on my server

regards
xxmasrawy

As i understand your question, you want to know that users which are login on ftp are local users or create special users for ftp only

Ans.

You have to create users on ftp server. if you define login shell then users can login if you don't want to login on local machine then you can setup nologin or false shell.

Code:
useradd -s /bin/bash user1

useradd -s /bin/nologin user2
HTH
 
Old 08-14-2010, 02:13 AM   #3
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
Hi Sam007,

I have tried your ans on my Ubuntu system but not got success. when i am changing the shell of user from /bin/bash to /bin/false, the ftp gives below error.

Code:
530 Login incorrect.
Login failed.
Thanks,

Mahi_nix
 
Old 08-14-2010, 02:19 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Good call.

in ubuntu and debina there is no shell entry in /etc/shell.

check is there false or nologin shell present or not?

Code:
ls -l /bin/false
ls -l /usr/bin/nologin
add shell entry in /etc/shells file

Code:
echo /usr/sbin/false >> /etc/shells
echo /bin/false >> /etc/shells
then try once again.

HTH

Last edited by sem007; 08-14-2010 at 02:23 AM. Reason: provide more info
 
1 members found this post helpful.
Old 08-14-2010, 02:24 AM   #5
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
Hi Sem007,

It's Working form me.

Thanks,

Mahi_nix
 
Old 08-14-2010, 03:01 AM   #6
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled
Quote:
Hi Sam007,

I have tried your ans on my Ubuntu system but not got success. when i am changing the shell of user from /bin/bash to /bin/false, the ftp gives below error.

Code:

530 Login incorrect.
Login failed.
I have same issue and finally resolved as suggested by sem007.

Can i use database like mysql with vsftpd?
 
Old 08-14-2010, 03:59 AM   #7
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
yes you can use mysql database.

vsftpd with mysql

HTH
 
Old 08-14-2010, 04:05 AM   #8
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled
thanks,

let's i check and get back if any problem.
 
Old 08-14-2010, 07:11 AM   #9
xxmasrawy
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 0
thanks sem007
it is working for me
 
Old 08-16-2010, 06:26 AM   #10
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by xxmasrawy View Post
thanks sem007
it is working for me
will you please marke thread as "SOLVED" from thread tools
 
  


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 configuration help yorkman Linux - General 2 04-28-2009 12:58 PM
VSFTPD Configuration bharaniks Linux - Security 2 10-16-2005 11:58 PM
vsftpd configuration cdang Linux - Software 0 03-04-2004 02:37 AM
vsftpd configuration pazvant Linux - Security 1 10-22-2003 01:05 PM
vsftpd configuration help soonerjim Linux - Software 6 05-22-2003 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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