Changing File Permissions for Cygwin Hosts
Problem: When you try to run a LinuxLink Classic Linux distribution from TimeSys on your target, errors similar to the following one appear:
nfsd[5880] 01/02/107 08:06 auth_init.c 188 : Failed to open uid/gid map file "/etc/nfs/8349.map". Forcing all_squash.
Cause: If the mapping file (or any other file reported with a similar error) was created outside of Cygwin (even if you used an editor such as Elvis), the permissions will be set with those from Windows and not those from Cygwin.
Solution:
Set the permissions from Windows so that “Everyone” and “Domain Users” have read permissions for this file and directory.
You will probably not encounter this issue unless you are logged into a domain. If you are not logged into a domain, the following procedure is not applicable, and the screenshots will not be similar.
To add read permissions to the file:
- Browse to the file in Windows Explorer (right-click on the Start button and select Explore).
- Right-click on the file (here, C:\Cygwin\etc\nfs\server.map), select Properties,
and click on the Security tab. Click on the Add button
to add a user.
- In the dialog box that appears, enter either Domain Users or Everyone. Either of these settings will allow the target to access the file properly.
- Click on Check Names to verify the name. At this point, you might have to
login with your user name and password for that domain. When the name has been verified as
belonging to the domain, it will be underlined.
- Click OK. The name will be added to the list of group or user names. Make sure the Read checkbox is selected for that name in the bottom pane of the Properties window, and then click OK to finish.
Read the following section of the Cygwin documentation for more details: http://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files.