Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Hi,
i need to create login for ftp user for 200 hundred user.
can i create user with level privacy example each user just can view, download/upload data at their folder only, means the user cannot see or open other user folder using cli or client ftp utility.
I think you should use proftpd + mysql+phpmyadmin.And in proftpd config add chroot option ( maybe it's enabled by default).Then add users with phpmyadmin.
I would suggest you to create a vsftpd with mysql database to hold the usernames/passwords like in my guide here.
You will have almost instant access and control on usernames and passwords, without searching for many config files.
I would suggest you to create a vsftpd with mysql database to hold the usernames/passwords like in my guide here.
You will have almost instant access and control on usernames and passwords, without searching for many config files.
good luck
GREAT guide.
Also, don't forget about selinux exceptions (in his guide) otherwise it will not work.
it can be possible in vsftpd and proftpd too.. if we limit users to only their home directory and enable upload option in ftp configuration then the other users cant enter into users home folder and user can upload and download the files
it can be possible in vsftpd and proftpd too.. if we limit users to only their home directory and enable upload option in ftp configuration then the other users cant enter into users home folder and user can upload and download the files
....
then login to ftpserver by the user account can directly goes to thier home dir . no other can have permission to enter into that folder.
please select the question as solved if your doubt clear
Correct, but you have to create users locally on server (useradd... - not "virtual") so they exist on server having their login name/pass and home dir
Now if you want to allow "supertestuser" to access all "testuser.." directories
it will work if you put the "supertestuser" home dir in the "/home/users", like: # vi /etc/vsftpd/vsftpd_user_conf/supertestuser
Code:
dirlist_enable=YES
download_enable=YES
# full path to the directory where 'user' will have access, change to your needs
local_root=/home/userswrite_enable=YES
and ALL other "testuser.." you lock at their home directories, so they cannot see outside of it. # vi /etc/vsftpd/vsftpd_user_conf/testuser1
this config file ^^^ is for every "non-default" settings (default is set in vsftpd.conf : local_root=/home/vsftpd/$USER )
Code:
dirlist_enable=YES
download_enable=YES
local_root=/home/users/testuser1 <-- change this /home/users/testuserXXX for other users to their directory
write_enable=YES
This is an example of the directory structure for many users and one (or again many) "superuser".
If the directory structure is different, then it's not possible to allow one "superuser" to access all other users (except if vsftpd configured for local users and allowing Root to login == BAD case)
I hope it helps you clarify how to achieve what you want otherwise ask again where you have a problem.
With the user_config_dir option you can specify a directory for per-user configuration files that override parts of the global settings. This is totally optional and up to you if you want to use this feature.
However, create that directory now:
mkdir /etc/vsftpd/vsftpd_user_conf
will need to add each user on the directory by every each will put setting to that user?
Quote:
vi /etc/vsftpd/vsftpd_user_conf/user1
with configuration settings in it:
dirlist_enable=YES
download_enable=YES
# full path to the directory where 'user1' will have access, change to your needs
local_root=/home/users/user1
write_enable=YES
Well, first thing to be careful about is PAM module for vsftpd:
[quote]/etc/pam.d/vsftpd contents (note: this should be only 4 lines when you copy it):
otherwise vsftpd authentication can not read username/ password from database (mysql)
then it's another critical point where username and password in database is stored
it's the type of the password that is MD5 hash'ed
where your mysql database with u/p must be like:
Code:
INSERT INTO accounts (username, pass) VALUES('user1', md5('secret'));
# mysql -u vsftpd -p (here the prompt asks you for "vsftpd" user's password)
mysql> select * from accounts;
+----+-----------+----------------------------------+
| id | username | pass |
+----+-----------+----------------------------------+
| 1 | user1 | 5ebe2294ecd0e0f08eab7690d2a6ee69 |
+----+-----------+----------------------------------+
1 rows in set (0.00 sec)
exit;
or use Phpmyadmin to set the correct values into a table,
and post your FTP message code which you get when trying to connect.
vi /etc/vsftpd/vsftpd_user_conf/user1
with configuration settings in it:
dirlist_enable=YES
download_enable=YES
# full path to the directory where 'user1' will have access, change to your needs
local_root=/home/users/user1
write_enable=YES
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.