0

I have files in a folder and I am accessing those files via sshfs through remote locations. I just want to know if there is a way to make the files accessible by only a single user i.e if some one else has opened a file previously it should not be accessible by others(May be by changing its permissions) and when the user releases(closes) the file others can access it. Thanks in advance.

New contributor
Shashank is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Are you saying the file should be completely inaccessible, or just read-only when in use? It sounds like the concept you're searching for is called "file locking" but the typical behavior is to make it read-only when in use. – rexypoo Feb 12 at 7:01
  • I want it to become completely inaccessible to others but not to the user who opened it. – Shashank Feb 12 at 7:18

Your Answer

Shashank is a new contributor. Be nice, and check out our Code of Conduct.

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.