LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2012, 12:03 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
how to add new users if user_list is used for maintaining the users in vsftpd(centos)


I'm confused with the vsftpd configuration in ftp servers.

in one of the ftp servers ftp user names are stored in user_list file instead of virtual-user.txt

So in such case how do i add new users and load the db?

db4-utils has been used.
 
Old 05-29-2012, 12:58 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The user_list file is used by the 'userlist_enable' option to provide a list of denied users, unless 'userlist_deny' is set to NO then it means the opposite. This file is not where you create users, do it in the usual place - either local or virtual.
 
Old 05-29-2012, 01:26 AM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
Well virtual-user.txt file isnt there at all....or is it that we need to create that ourselves?

And there are users along with their passwords in userlist file like the way we usually have in virtual-user.txt file.And i tried to ftp with those username and password and it worked. so i'm stuck with adding of new users now.
.
And userlist option in vsftpd.conf is as follows:

userlist_enable=YES
userlist_deny=NO
 
Old 05-29-2012, 01:50 AM   #4
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
or just adding the user over there ,i mean in the userlist file will add the new users unlike in virtual-user.txt file where we need to load the db as well.

will that not erase my other users?
 
Old 05-29-2012, 01:51 AM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Then I guess they were added as local users, if you run 'getent passwd' can you see the accounts?
 
Old 05-29-2012, 01:58 AM   #6
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
ya i can see them when i run that...but the user mentioned in the userlist file cant be seen..
 
Old 05-29-2012, 02:09 AM   #7
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
then can i add users to it then?
 
Old 05-29-2012, 02:23 AM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You'll need to add a local user via 'useradd'.
 
Old 05-29-2012, 02:46 AM   #9
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
I'm not talking about the local user...ya for local user we can add by useradd..

I'm talking about the ftp users who are allowed to upload and have their own links in the web where the uploaded materials are..

Actually when i type that ftp address in web,it asks for password and only those users present in user_list are allowed to login there..

The other users added via useradd can login only through the terminal..

so i wanted to add new user to that user_list file and i even added to it,but i cant login with that username..so what should i do for it?actually if it's for virtual-users.txt,we use db_load ..... command so that the new user comes into play..

So i'm asking how should i do that with user_list file?
 
Old 05-29-2012, 10:25 PM   #10
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You didn't get what I said in my first post - this file is not used to authenticate users, just to determine those who are permitted or not permitted to log in.
 
Old 05-29-2012, 11:18 PM   #11
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
ya i got that...

But my question is we have list of users along with their passwords in that file and if i were to add users to that file,how do i go about it?and ya 'useradd' doesnt add user to that file..
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing my mind - CentOS VSFTPD Virtual Users SFTP TomBodet Linux - Server 0 08-11-2011 12:55 PM
how to add users in VSFTPD w/ RHEL 4 AS? guest Linux - Newbie 10 04-12-2010 02:24 PM
I can't add new users CentOS Treikayan Linux - Newbie 4 11-22-2008 07:20 PM
CentOS 4 - Setting users for vsftpd vikram8jp Linux - Newbie 2 10-16-2008 03:15 AM
add virtual users to vsftpd with php mattsoftnet Programming 0 05-09-2008 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 AM.

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