[Ilugc] Help needed :where to download file or folder locking software for Linux

  • From: baskar910@xxxxxxxxx (baskar k)
  • Date: Mon Mar 8 15:23:26 2010

On Mon, Mar 8, 2010 at 10:46 AM, Girish Venkatachalam
<girishvenkatachalam@xxxxxxxxx> wrote:

On Mon, Mar 8, 2010 at 9:44 AM, rajkumar vbalakrishnasamy
<rajkumar.lynx@xxxxxxxxx> wrote:
Hi all,
? ? ? ? I need software to lock file or folder in linux ?or i need any file
or folder locking shell scripts or command for my project so that file could
not be accessed by the users.

There is no locking.

Only blocking access to read the folder/file.

chmod u-r foo

will block folder foo from access to user under which this command is run.

If you want to block access to file/folder to everyone other than the user
who created the folder, you can do this.

$ chmod go-rwx foo

Read up on chmod. If you want advanced features then chattr.

If you want to learn about locking you can read flock and lockf but it
has nothing to
do with your question.

-Girish

chattr +i file makes the file immutable

Thanks
baskar

Other related posts: