Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: vlinux1 on May 24, 2010, 06:39:07 AM

Title: Ristrict Copy option in Vsftpd Server
Post by: vlinux1 on May 24, 2010, 06:39:07 AM
Hi Gaurav & Ricky,


I have configured Vsftpd server in RHEL-4 and it's working. I want to restrict copy option for all users only they can paste.

Is it possible please let me know.

Thanks in Advance
Vijay
Title: Re: Ristrict Copy option in Vsftpd Server
Post by: getviswa on June 02, 2010, 07:03:40 AM
try the following command
chmod -R 733 <folder name>
Title: Re: Ristrict Copy option in Vsftpd Server
Post by: vlinux1 on June 02, 2010, 01:13:16 PM
Thanks for your reply
I'll check and let you know.

Thanks again.
Title: Re: Ristrict Copy option in Vsftpd Server
Post by: gauravbajaj on June 11, 2010, 05:25:21 AM
I m not clear with the question, do u mean that they  can put the files but can't get or the can get the files but can't put?
Title: Re: Ristrict Copy option in Vsftpd Server
Post by: vlinux1 on June 17, 2010, 08:14:35 AM
Hi Gaurav,
Thanks for reply.
User can only put the files in that DIR.








Thanks
Vijay
Title: Re: Ristrict Copy option in Vsftpd Server
Post by: gauravbajaj on June 17, 2010, 05:43:14 PM
Hmm you can make a group and add the users list in that group and make the group writable to that dir.

Lets say you want the following users to put on dir "mydir"
user1,user2

make group using  " groupadd putgrp"
usermod -G putgrp user1
usermod -G putgrp user2

and then you can give the "w" permissions  to group for that dir, Please make sure that the dir is owned by that group

Hope that helps




Title: Re: Ristrict Copy option in Vsftpd Server
Post by: gauravbajaj on June 17, 2010, 07:21:04 PM
Or if you want to do for all the users not for specific ones then you can try the solution which "getviswa" suggested