LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-22-2012, 06:25 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
vsftpd


Hi

1) i installed vsftpd on centos 5.3

2) i make one directory ftp-docs and one ftp-user group

3)i want some user have read and write permission on ftp-docs and some user only read permission on ftp-docs how it is possible

AMAR
 
Old 03-22-2012, 06:38 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

take a look here if you find it useful.


Otherwise, you did not specify what type of "vsftpd" setup have you done (local users, virtual users..)
so it's hard to say what you need to do.

Usually you need to create local users (useradd ...) on server and point their home directory to the directory where they can go to.
Then as root you give permissions to the files to user which has the rights to RW and let the group to files only Read

like :
-rw-r--r-- 1 alloweduser ftpgroup 35 Feb 3 00:36 somefile.txt

so "alloweduser" can RW and other users (in the group: ftpgroup) only Read.

good luck

Last edited by lithos; 03-22-2012 at 06:40 AM.
 
Old 03-22-2012, 07:39 AM   #3
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

Thanks for reply

1)i am using vsftpd for local user
2)i create a,b,c user under ftp-users group
3) i have given permission to ftp folder as chmod 750 /home/ftp-docs
3)chown a:ftp-users /home/ftp-docs make user a read write access and other i.e b,c under group ftp-users read only access to ftp-docs folder
4)but i want to give user b read and write permission for ftp-docs folder but when i chown b:ftp-users /home/ftp-docs then user b get read and write permission but user a will get only read permission , i want user a,b should read and write permission and other user in group ftp-user will have read permission
 
Old 03-23-2012, 08:07 AM   #4
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

Any updates


AMAR
 
Old 03-23-2012, 09:03 AM   #5
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
I think what you are looking for is more fine grained control via ACLs. Look at the man pages for setfacl and getfacl. I have used this method in the past with ftp servers.
 
Old 03-23-2012, 12:25 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,329

Rep: Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473
Quote:
Originally Posted by amartlk View Post
Hi
Any updates
AMAR
You have been asked at LEAST half a dozen times to STOP BUMPING YOUR OWN THREADS, but you keep doing it. What part of that don't you understand???

If you're in such a hurry, have you tried just putting "linux vsftpd directory access restrictions" into Google??? Did you read the vsftpd documentation, about virtual users, and how using them can give you finer-grained control? Maybe even look at the CentOS wiki, where it tells you how to set these things up??
http://wiki.centos.org/HowTos/VirtualVsFtpd
 
Old 03-23-2012, 01:37 PM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
i want some user have read and write permission on ftp-docs and some user only read permission on ftp-docs how it is possible
You can put some users having read and write permissions in a group and some users having only read permission in a different group, then you can give those groups the permission according to your need.
 
Old 03-23-2012, 02:27 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,329

Rep: Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473
Quote:
Originally Posted by Satyaveer Arya View Post
You can put some users having read and write permissions in a group and some users having only read permission in a different group, then you can give those groups the permission according to your need.
Right. That's what lithos said in his first reply; why restate it?
 
Old 03-24-2012, 07:45 AM   #9
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

Thanks for reply Can you tell how can i make multiple group permission for same folder


AMAR
 
Old 03-24-2012, 10:31 AM   #10
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
sorry, I posted to wrong thread.
 
Old 03-24-2012, 10:48 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,329

Rep: Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473Reputation: 4473
Quote:
Originally Posted by amartlk View Post
Hi
Thanks for reply Can you tell how can i make multiple group permission for same folder
AMAR
You can re-read post #2. That told you how to give one user read-write, and two others read-only, based on user:group ownership through chown. You can also see from post #2 the part where virtual users are mentioned, to give you finer grained ACL control, as well as what grim76 posted.

Are you not reading/understanding these replies?? And why do you continue to ignore the parts about being told to not bump your own threads???
 
  


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
Starting vsftpd for vsftpd: 500 OOPS: SSL: cannot load RSA certificate MisterTickle Linux - Server 2 02-11-2011 08:41 PM
vsftpd settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 11:31 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 08:24 PM
vsftpd & ssl - how do I tell if it's actually vsftpd maintaining the connections?? hunterhunter Linux - General 0 03-27-2006 05:41 PM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 02:05 AM

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

All times are GMT -5. The time now is 08:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration