Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write permission deny issue

Status
Not open for further replies.

whn

Programmer
Oct 14, 2007
265
US
I mounted my home dir to a solaris and an AIX server through NIS mount. Under my home dir, I created a subdir 'temp' with 755 permission. Under 'temp', I created a file 'test' with 666 permission.

Now I login to the solaris and AIX machine using a different logID. On AIX, I CAN edit file 'test', which is expected to me. However, I can not edit the same file on Solaris. When I opened it using vi and tried to save it after editing, the error message is:

File is read only!

Is this by design or a bug? If it is by design, why?

 
You can't mount anything through NIS. NIS is a directory service protocol. I think you mean NFS, which is a filesystem sharing protocol.

To share access rights to files on different systems using NFS mounts, your user ID number (not necessarily the name) needs to be the same on both systems.

If you are using a directory service like NIS it makes it easier to maintain the same user ID numbers across multiple systems.

Annihilannic.
 
Actually, the problem was caused by the settings in /etc/vfstab. In this file, the mount is set as 'ro' - read only. After I changed the setting, the problem is gone.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top