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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-29-2012, 12:03 AM
|
#1
|
Member
Registered: Jul 2011
Posts: 322
Rep:
|
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.
|
|
|
05-29-2012, 12:58 AM
|
#2
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
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.
|
|
|
05-29-2012, 01:26 AM
|
#3
|
Member
Registered: Jul 2011
Posts: 322
Original Poster
Rep:
|
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
|
|
|
05-29-2012, 01:50 AM
|
#4
|
Member
Registered: Jul 2011
Posts: 322
Original Poster
Rep:
|
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?
|
|
|
05-29-2012, 01:51 AM
|
#5
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
Then I guess they were added as local users, if you run 'getent passwd' can you see the accounts?
|
|
|
05-29-2012, 01:58 AM
|
#6
|
Member
Registered: Jul 2011
Posts: 322
Original Poster
Rep:
|
ya i can see them when i run that...but the user mentioned in the userlist file cant be seen..
|
|
|
05-29-2012, 02:09 AM
|
#7
|
Member
Registered: Jul 2011
Posts: 322
Original Poster
Rep:
|
then can i add users to it then?
|
|
|
05-29-2012, 02:23 AM
|
#8
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
You'll need to add a local user via 'useradd'.
|
|
|
05-29-2012, 02:46 AM
|
#9
|
Member
Registered: Jul 2011
Posts: 322
Original Poster
Rep:
|
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?
|
|
|
05-29-2012, 10:25 PM
|
#10
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
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.
|
|
|
05-29-2012, 11:18 PM
|
#11
|
Member
Registered: Jul 2011
Posts: 322
Original Poster
Rep:
|
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..
|
|
|
All times are GMT -5. The time now is 09:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|