1

I am aware that this question is already asked multiple times before on many forums, I have tried to follow the instruction but still not getting it.

I have one Group Called : SYNC and it has two users **SAM** and **SAM2**

**SAM** is as well the FTP User and Internally users are uploading the files via **SAM** FTP user.

SAM2 is the user which is used to run the SYNCTHING which is used to sync the files between remote location.

but whenever i upload the new files to Directory.SAM2 user doesn't have write access to the new created file so it can not upload the file to the remote location.

thats how my folder structure and permission look like on the parent directory.

    ls -la For_Client/
total 232312
drwxrwsr-x 2 SAM2 sync      4096 May 23 15:16 .
drwxr-xr-x 6 SAM2 sync      4096 May 23 12:41 ..
-rw------- 1 SAM sync 237877344 May 23 15:16 test2.mxf

Permission on the newly created File inside the client directory

ls -la For_Client/test2.mxf 
-rw------- 1 SAM sync 237877344 May 23 15:02 For_Client/test2.mxf

Please advice, How can i achieve that new created files can inherit the permission from the parent directory and both user can have write access to all directory and files , including newly uploaded by FTP.

  • Something is wrong with the output of ls -la For_Client/. The output shows the same directory with two sets of permissions, this is impossible, please check and correct. One of the lines should be something like drwxr-xr-x 6 SAM2 sync 4096 May 23 12:41 .. – mook765 May 23 '18 at 14:29
  • ls -la For_Client/ total 232312 drwxrwsr-x 2 user sync 4096 May 23 15:16 . drwxr-xr-x 6 user sync 4096 May 23 12:41 .. -rw------- 1 rtmos syn 237877344 May 23 15:16 test2.mxf – kunal May 23 '18 at 14:47
  • @mook765, thats the output of ls -la For_CLIENT – kunal May 23 '18 at 14:48
  • 1
    Please edit your question to correct the output of your commands. In your comment you show different owner/group for the file test2.xmf. – mook765 May 23 '18 at 14:58
  • 1
    Thanks for quick response, I can't help you more than that, no experience with ftp, could only help with this copy/paste typos, please wait for someone else who can give you an answer. – mook765 May 23 '18 at 15:16

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.