Operating System - HP-UX
1751866 Members
5263 Online
108782 Solutions
New Discussion юеВ

Re: It is possible to edit the one NFS file by multiple user at a time.

 
HP UNIX Professionals
Frequent Advisor

It is possible to edit the one NFS file by multiple user at a time.

Hi Experst,

I have one doubt about the NFS file permission.
It is possible to edit the one NFS file by multiple user at a time.

If it is- what is the file permission


Thanks in advance

vinay
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: It is possible to edit the one NFS file by multiple user at a time.

Edit how? What "one NFS" file?
Typically there can only be one user using a text editor on the same file.
Doug O'Leary
Honored Contributor

Re: It is possible to edit the one NFS file by multiple user at a time.

Hey;

>>Typically there can only be one user using a text editor on the same file.

Actually, that's not true. UNIX follows the 'he who writes last, wins' paradigm. Drove my brother-in-law (who works on mainframes) absolutely bonkers.

Typically, there *should* be only one admin working on the same file at a time; however, there's nothing in the OS preventing that.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Dennis Handly
Acclaimed Contributor

Re: It is possible to edit the one NFS file by multiple user at a time.

>Doug: there *should* be only one admin working on the same file at a time

Didn't I say that? :-)
Shibin_2
Honored Contributor

Re: It is possible to edit the one NFS file by multiple user at a time.

Interesting :)

vi editor in HP-UX allows multiple persons to open / edit same file. But as Doug said, 'he who writes last, wins'

But in Linux, it shows on screen, this file has locked by somebody else. Sadly, nothing like this in HP-UNIX.
Regards
Shibin
HP UNIX Professionals
Frequent Advisor

Re: It is possible to edit the one NFS file by multiple user at a time.

Hi Experts,

I will give the clear scenario.

1. User A and B have same 777 permission.

2. It is possible to write same file in NFS mount point, by both A and B

3.If it is possible how it is working any technology involved in this method.

Thanks

vinay
Dennis Handly
Acclaimed Contributor

Re: It is possible to edit the one NFS file by multiple user at a time.

>Shibin: But in Linux, it shows on screen, this file has locked by somebody else.

vim will tell you the file modification date has changed since you started but that may be too late.
Dennis Handly
Acclaimed Contributor

Re: It is possible to edit the one NFS file by multiple user at a time.

>1. User A and B have same 777 permission.

(Typically files have that type of permission, not users.)

>2. It is possible to write same file in NFS mount point, by both A and B

Sure but you need to have them synchronize what they are doing.

>3. If it is possible how it is working any technology involved in this method.

The same as if it is being done locally, except the I/O requests are sent to the NFS server.

What are you really trying to do/ask?