LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-19-2011, 04:00 PM   #1
cbc
LQ Newbie
 
Registered: Jun 2011
Posts: 20

Rep: Reputation: Disabled
Group permissions for ftp users


Hi,

I need to assign permissions for ftp users. For that I need to create groups with different permissions like upload, download, rename, delete, rename and delete. And the users added to the group need to have that group permissions by default. Is this possible ? Plzz any one help on this..

Thanks,
Ram
 
Old 06-19-2011, 10:31 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The permissions would be read or write. The sticky bit on the directory would restrict deletions to the owner.

You need to indicate which ftp daemon you are using. Further option may depend on which ftp server package you installed. They have different configuration files.

If ftp users are also regular linux users, file system acls can also be used to add write permissions to other users.
 
Old 06-19-2011, 10:53 PM   #3
cbc
LQ Newbie
 
Registered: Jun 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Post

I am using vsftpd on SLES 11.

I need to manage hundreds of user-accounts. So, I am thinking that by creating groups with specific permissions so that adding users to that specific group will solve the problem. But I am confused assigning permissions to these groups.

So, please help on this.

Thanks,

Ram
 
Old 06-19-2011, 11:18 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The setfacl command can be used to control file access for groups as well.

Code:
setfacl -m d:g:ftpw:rwx /srv/ftp/
setfacl -m   g:ftpw:rwx /srv/ftp/
setfacl -m d:g:ftpro:rx /srv/ftp/
setfacl -m  g:ftpro:rx /srv/ftp/
Here note two commands for each group. The first sets the default which will be inherited may new subdirctories in the future. The directory itself needs its own acl.

I'm on my tablet, in a restaurant, so I can't provide vsftpd options I can't look up. I'll leave it to you to read the vsftod.conf man page for other options. Maybe tuned to the operations in your first post.
 
Old 06-19-2011, 11:44 PM   #5
cbc
LQ Newbie
 
Registered: Jun 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks a lot jschiwal. I think this would work for me. I really appreciate your help


Regards,
Ram
 
Old 06-20-2011, 08:11 PM   #6
cbc
LQ Newbie
 
Registered: Jun 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
jschiwal, I have a quick question for you. So, I need to add users to the above created groups so they can get the group permissions by default right?

For ex:

useradd -g ftpw xxxx
 
  


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
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 04:57 PM
permissions not recognizing group or assigned users to group blckspder Linux - Server 1 07-28-2008 10:32 AM
Group permissions / FTP problem underlay Linux - Server 6 03-25-2008 03:15 PM
Group permissions / ftp problem underlay Linux - Networking 0 03-24-2008 04:21 AM
granting permissions to a few users in a group grondar69 Linux - General 7 06-22-2006 06:51 PM


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