Solved

vsftpd.conf settings per user basis on rhel

Posted on 2009-05-14
2
3,468 Views
Last Modified: 2013-12-16
Hi All,
I have setup vsftp and umask setup as 022 in vstpd.conf file.
But for one particular user(say user1) the files uploaded should have permissions 664, so I added
user_config_dir=/etc/vsftpd/vsftpd_user1_conf to vsftpd.conf file
and vsftpd_user1_conf is same as vsftpd.conf except umask changed to 002
after i restarted vsftpd service, and put files, but the file uploaded still has 644 permissions and the new configuration effects didn't take place.
I am not sure what I am missing.
Please let me know if you are aware of any.

Thanks in advance.
0
Comment
Question by:vmwarecv1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
ID: 24395305
I think you need to do the following:

- put below line in vsftpd.conf file

user_config_dir=/etc/vsftpd/vsftpd_user_conf

- under the dir /etc/vsftpd/vsftpd_user_conf copy the config file to the file user1

Please see below lines taken from man page:

"user_config_dir  This powerful option allows the override of any config option specified in the manual page, on a per-user basis. Usage is simple, and is best illustrated with an example. If you set user_config_dir to be /etc/vsftpd_user_conf and then log on as the user "chris", then vsftpd will apply the settings in the file /etc/vsftpd_user_conf/chris for the duration of the session. The format of this file is as detailed in this manual page! PLEASE NOTE that not all settings are effective on a per-user basis. For example, many settings only prior to the user's session being started. Examples of settings which will not affect any behviour on a per-user basis include listen_address, banner_file, max_per_ip, max_clients, xferlog_file, etc."
0
 
LVL 30

Assisted Solution

by:Kerem ERSOY
Kerem ERSOY earned 250 total points
ID: 24400633
The problem here is the way you've interpreted the settings:

user_config_dir=/etc/vsftpd/vsftpd_user1_conf
you've thought that th_s option simply is a place to point to specific user config file. But instead it is for specifying where you will keep your user based configuration files. It must be subdirectory. So you'll have user configuration files and each user will have a file specified with his/her username shoud they require special configuration.

so the paramter should read:

user_config_dir=/etc/vsftpd/user_specific

so you need to have a file called user1 under this subdirectory and it should contain this line:

local_umask=002
 
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question