Not able to edit files present in mounted directory

I had mount from server A to server B. I am able to access the files present under server B. I can create new files on server B, but i am not able to edit the files which are already present. When i saw the permissions on those files it is 777.

can some one tell me why i am not able to edit those files.

Thanks in advance.

You must be either root or the owner of the files to be edited.
If its NFS mounted, did you mount it as read-only?

check out the man pages for the /usr/bin/lsattr and /usr/bin/chattr command ( by Remy Card ).

They can do some pretty interesting things to files and filesystems, including setting the immutable bit ( LINUX_CAP_IMMUTABLE ) on a given file like so ( as root ):

shell> chattr +i  filename.txt

Not even root cannot modify this file in any way, no matter who owns it or how it is chmodded.

to undo that operation, as root:

shell> chattr -i  filename.txt

It's probably not what going on, but if all else fails, including an SELinux check, that could be what is hanging you up.

HTH

Scott