0

I have installed ProFTPd and configured users' directories privately. I would like to make also a shared folder, that can access all the users. How can I do this?

5
  • 1
    mkdir /home/shared_dir ; groupadd -g 1500 ftpall && chown root:ftpall /home/shared_dir ; chmod g+s /home/shared_dir and put everyuser you want in this group
    – c4f4t0r
    Nov 11, 2014 at 10:03
  • I have jailed users to his home directories, so a user can not see this shared_dir. How can I make it accessible?
    – plaidshirt
    Nov 14, 2014 at 10:48
  • if you have many users to manage, you can use automount to mount /home/shared_dir in user home directories, mount --bind /home/pippo/shared_dir
    – c4f4t0r
    Nov 14, 2014 at 13:40
  • correct command mount --bind /home/shared_dir /home/pippo/shared_dir
    – c4f4t0r
    Nov 14, 2014 at 13:51
  • Thanks a lot! If you add this as a new individual answer, I can give you some extra points! :)
    – plaidshirt
    Nov 16, 2014 at 6:58

1 Answer 1

0

To archive what you want to do, you can do it in this way:

mkdir /home/shared_dir
groupadd -g 1500 ftpall && chown root:ftpall /home/shared
chmod g+s /home/shared_dir

Now, if your ftp users are in chroot jail, you can mount the shared the directory inside the user home:

mount --bind /home/shared_dir /home/pippo/shared_dir 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .