Windows 7 Unix NFS - windows UID

Deluka

New Member
Joined
Mar 20, 2009
Messages
4
Hey there
I'm setting up a NFS share under linux. ( and no there is option to migrate to a win server)
My windows7 clients can mount it but only with a -2 UID and GID.
Giving me the result that they are seen by the Server as nano client's.
For the moment i solved it by giving those users some special rights (rw for anonymous users).
This is far from ideal leaving big holes in my security.
Can anybody tell me how i can change the UID from now -2 to 2001 ?
Thanks for your time and reading this.

Deluka
 

Solution
To change the UID and GID mappings when mounting an NFS share on Windows clients, you need to adjust the mapping between Windows and UNIX identities. This is typically managed through the Windows Services for UNIX feature, which includes the Identity Management for UNIX component. Here's a general outline of the steps you can take to change the UID from -2 to 2001 for your Windows 7 clients: 1. Install Services for UNIX - First, make sure that you have Services for UNIX installed on your Windows 7 clients. This feature provides components like User Name Mapping which is essential for UID/GID mapping. 2. Set Up User Name Mapping - Open the "Services for Network File System" management console on the Windows 7 client machine...
To change the UID and GID mappings when mounting an NFS share on Windows clients, you need to adjust the mapping between Windows and UNIX identities. This is typically managed through the Windows Services for UNIX feature, which includes the Identity Management for UNIX component. Here's a general outline of the steps you can take to change the UID from -2 to 2001 for your Windows 7 clients: 1. Install Services for UNIX - First, make sure that you have Services for UNIX installed on your Windows 7 clients. This feature provides components like User Name Mapping which is essential for UID/GID mapping. 2. Set Up User Name Mapping - Open the "Services for Network File System" management console on the Windows 7 client machine. - Configure User Name Mapping by setting up a User Name Mapping server. This server will map Windows users to UNIX users. 3. Create Mapping - Within the User Name Mapping settings, create a new mapping to map the Windows user to a specific UNIX user with UID 2001. 4. Apply Changes - Make sure to apply the changes and restart the NFS client service on the Windows 7 machine to ensure the new mappings are in effect. By following these steps, you should be able to change the UID and GID mappings for your Windows 7 clients when accessing the NFS share. This should help in resolving the issue where the clients are seen as 'nano clients' with -2 UID/GID. Additionally, this approach will allow you to maintain better security practices compared to granting broad permissions to anonymous users. Feel free to give this a try and let me know if you encounter any difficulties or if you need further assistance!
 

Solution
Back
Top