Don't allow to editing !!!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Don't allow to editing !!!
# 1  
Old 01-14-2010
Error Don't allow to editing !!!

Hi All,

Assume that there is file1 file,userA and userB have got read,write and execute permission for file1.

when userA open file1, userB cant change(write,editing file etc...) content of file1.
after userA exit of file1 , userB can change(write, editing file etc..).

Shortly i want that userA and userB cant edit(write) file in same time.


Thanx.
# 2  
Old 01-14-2010
By default there is afaik no functionality like this for plain commands issued on the shell. Maybe different OS'es offer something like this but for this we need to know exactly which OS you are using.
Locking files can be or is usually implemented by scripts/programs you use when trying to work with files.

Here you can read up on it:
File locking - Wikipedia, the free encyclopedia
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Don Cragun

Hi Don I apologise, it wasn't my intention to double post. Soon after posting the original I noticed a typo in the subject so partly because I didn't want to confuse and distract from what I was seeking, but if I'm honest mostly down to my OCD, I wanted to correct it. However I couldn't see... (0 Replies)
Discussion started by: ElGato
0 Replies

2. Shell Programming and Scripting

Convert vi editing to text editing

Dear Guru's I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response. Srini (6 Replies)
Discussion started by: thummi9090
6 Replies

3. UNIX for Dummies Questions & Answers

I don't where to start.

I am someone who has lived on windows till I knew it inside and out but was very ignorant to other operating systems. Last week, after hearing of a much better operating system with more control and structure, I switched to Unix. I have no idea what I am doing but I am happy to learn. Could... (4 Replies)
Discussion started by: newbie sarah
4 Replies

4. UNIX for Dummies Questions & Answers

I'm getting killed and I don't know why.

UPDATE: I think I may have a culprit. I had KDE console history to unlimited, and since there's a lot of output... I'm thinking that may be it. I'd still like to hear advice on how to figure out why processes get killed, if anyone has any! though ****************** There's this script I run... (1 Reply)
Discussion started by: tphyahoo
1 Replies
Login or Register to Ask a Question