Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-14-2011, 06:38 AM   #1
LQ Newbie
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
how to give access to particulat user in ftp user group to particular folder

hello frndzz...

I have created vsftp server with grop of users and they can access only to /home/ftp-folder file which i made for them..nw if i apply read rite privilages to this folder then these previlages get by users in the group wot i want z if i creat a folder in /home directory i.e /home/test and i want the particular user in the group can have 777 access and other users in the grop coud nt access that folder..

please help how to do it...

Last edited by marora; 06-14-2011 at 07:12 AM.
Old 06-15-2011, 02:56 PM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Is there any particular reason why you can't put the "special" user in an additional group as well as the "ftp" group, and allow the different group, but not the "ftp" one, access to the "special" directory?
Old 06-16-2011, 02:03 AM   #3
LQ Newbie
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hey thnx for th reply...And yesterday i have resloved the issue...i created a new group and put that particular user in that group also by using

usermod -a -G group1,group2 username
where -a is for if the user is already in any other group then it and we want to put it in new group then we use -a option otherwise it will remove it from the existing group and put it in the new 1...and -G stangs for group...

Then i make new folder and give permissions 070 to it and allocate it to that new folder whcih i user is part of two groups and the new folder can only be access by that paricular user...Please see the following commands

#groupadd TEST
mkdir /home/test

#now add user in the group
usermod -a -G test marora

Assign permission only to the group created..

#chmod 070 /home/test
#chown ftp:TEST /home/test


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with user permission level--give access to a user 2 use 500 servers svani Linux - Newbie 2 06-17-2010 08:57 PM
can i give directory permission to a group and not specific user? SamuraiCoder Linux - Newbie 5 05-26-2010 04:23 PM
virtualbox group/user folder Fred Caro Linux - Software 7 07-12-2008 08:11 PM
How do I give access to an ftp user to the var/www/html dir shootinstr8 Linux - Newbie 1 10-13-2006 03:32 AM
samba : access denied for some user in same NT group on a folder mtrento Linux - Networking 0 06-27-2005 10:01 AM

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration