LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-24-2012, 06:09 AM   #1
comeatmanish
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Rep: Reputation: 0
vsftpd configuration for group


Hi,
I want to configure vsftpd server. Requirement is little different.
5 users should have read & write access.
5 users should have read only access.

Below is configuration of my vsftpd.conf file.
Quote:
listen=YES
anonymous_enable=YES
no_anon_password=NO
anon_root=/opt/ftp/pub
local_enable=YES
write_enable=YES
chroot_local_user=YES
pam_service_name=vsftpd
local_umask=002
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
I have also added group with name ftp-users and added user1 to user5 to it.
#groupadd ftp-users
#useradd -g ftp-users -d /opt/ftp/pub user1
#useradd -g ftp-users -d /opt/ftp/pub user2
#useradd -g ftp-users -d /opt/ftp/pub user3

Using user1 to user5 I am able to make read write operations on /opt/ftp/pub directory.
but using anonymous user i am not able to download any thing nor able to change the directory created in pub folder.
Is it becoz I have assigned same directory for all ftp users?

Please guide me to resolve this.

Regards,
Manish
 
Old 01-24-2012, 06:44 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
by default anonymous user is not allowed to login to any directory which has write permission so if you want anonymous to download or create any doc then

create a upload directory inside pub and give 777 permission on it so that anonymous can get full permission for it
 
Old 02-01-2012, 12:05 AM   #3
comeatmanish
LQ Newbie
 
Registered: Feb 2009
Posts: 21

Original Poster
Rep: Reputation: 0
I dont want to provide access to anonymous user still it is given in above mentioned file as I was not able to provide read only access to users (user 5 to 10) on the same directory.
Is there any way by which we can create 2 groups and provide different level of access to them.
group 1 - read, write & execute to /opt/ftp/pub directory.
group 2 - read, execute to /opt/ftp/pub directory.
 
Old 02-01-2012, 12:10 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
use setfacl

Code:
#setfacl -m g:group1:rwx /opt/ftp/pub
#setfacl -m g:group2:rx /opt/ftp/pub
 
  


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 dsheller Linux - Software 26 11-06-2010 11:06 PM
vsftpd configuration xxmasrawy Linux - Server 9 08-16-2010 06:26 AM
vsftpd uploaded files owned by group? fredriksk Linux - Software 1 10-17-2005 08:48 AM
vsftpd - access and group issues ToMMY2ooo Linux - Software 5 04-26-2004 03:26 AM
vsftpd configuration pazvant Linux - Security 1 10-22-2003 01:05 PM

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

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