GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Programming
Go To First  |  Previous Question  |  Next Question 
 Unix Programming  |  Question 22 of 43    Print  
What are the steps for locking a file?

  
Total Answers and Comments: 3 Last Update: May 27, 2009     Asked by: timmy 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 17, 2007 09:39:48   #1  
raj        

RE: What are the steps for locking a file?
It can be achieved by adding sticky bit to the directory


Dont give permissions to others or group by making it chmod 600 < filename >


Create the file with . prefix

 
Is this answer useful? Yes | No
January 17, 2008 05:01:45   #2  
shobhitcs Member Since: January 2008   Contribution: 9    

RE: What are the steps for locking a file?
how can we add stick bits in unix file system suppose a file name with abc....how will u add any sticky bit in that because control is not working in this case .....
 
Is this answer useful? Yes | No
May 27, 2009 08:24:15   #3  
Rohit_Ash Member Since: May 2009   Contribution: 6    

RE: What are the steps for locking a file?
We can use chmod *** dir_name
Where *** are permissions.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape