On Mon, Mar 8, 2010 at 9:44 AM, rajkumar vbalakrishnasamy
<[email protected]> 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

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to