November 25, 2024, 05:24:48 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Ristrict Copy option in Vsftpd Server  (Read 7180 times)

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
Ristrict Copy option in Vsftpd Server
« 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

Offline getviswa

  • Linux Noob !
  • *
  • Posts: 10
Re: Ristrict Copy option in Vsftpd Server
« Reply #1 on: June 02, 2010, 07:03:40 AM »
try the following command
chmod -R 733 <folder name>

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
Re: Ristrict Copy option in Vsftpd Server
« Reply #2 on: June 02, 2010, 01:13:16 PM »
Thanks for your reply
I'll check and let you know.

Thanks again.

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Ristrict Copy option in Vsftpd Server
« Reply #3 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?

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
Re: Ristrict Copy option in Vsftpd Server
« Reply #4 on: June 17, 2010, 08:14:35 AM »
Hi Gaurav,
Thanks for reply.
User can only put the files in that DIR.








Thanks
Vijay

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Ristrict Copy option in Vsftpd Server
« Reply #5 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





Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Ristrict Copy option in Vsftpd Server
« Reply #6 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