nerdexam
Linux_Foundation

LFCS · Question #635

How can the risk of UID/GID inconsistencies be avoided across UNIX/Linux systems that are sharing information over protocols other than SMB/CIFS (eg: NFS)?

The correct answer is A. Specify a common LDAP idmap backend in smb.conf. This question addresses how to achieve UID/GID consistency across UNIX/Linux systems when sharing information via protocols like NFS, which is critical for consistent access control and permissions.

Submitted by ngozi_ng· Apr 18, 2026User and Group Management

Question

How can the risk of UID/GID inconsistencies be avoided across UNIX/Linux systems that are sharing information over protocols other than SMB/CIFS (eg: NFS)?

Options

  • ASpecify a common LDAP idmap backend in smb.conf.
  • BSpecify a common Kerberos realm in smb.conf.
  • CSpecify a common domain name in smb.conf.
  • DSpecify a common password server in smb.conf.
  • ESpecify a common winbind id range in smb.conf.

How the community answered

(39 responses)
  • A
    77% (30)
  • B
    3% (1)
  • C
    10% (4)
  • D
    8% (3)
  • E
    3% (1)

Why each option

This question addresses how to achieve UID/GID consistency across UNIX/Linux systems when sharing information via protocols like NFS, which is critical for consistent access control and permissions.

ASpecify a common LDAP idmap backend in smb.conf.Correct

To ensure UID/GID consistency across UNIX/Linux systems for services like NFS, establishing a common LDAP identity mapping backend is the most effective solution. By centralizing user and group information and their corresponding IDs in an LDAP directory, all systems can query this single source for consistent mappings, ensuring uniform access control irrespective of the sharing protocol used.

BSpecify a common Kerberos realm in smb.conf.

Specifying a common Kerberos realm primarily provides centralized authentication and single sign-on, but does not inherently guarantee consistent UID/GID mapping across all systems for file sharing.

CSpecify a common domain name in smb.conf.

A common domain name primarily aids in network naming resolution but does not directly provide centralized UID/GID mapping to prevent inconsistencies.

DSpecify a common password server in smb.conf.

Specifying a common password server (like NIS) provides centralized user authentication, but LDAP offers a more robust and flexible solution for centralized ID mapping for both users and groups.

ESpecify a common winbind id range in smb.conf.

Specifying a common Winbind ID range in `smb.conf` is for Samba's internal ID mapping within a Windows domain context and does not directly solve UID/GID inconsistencies for native UNIX services like NFS.

Concept tested: Centralized UID/GID management for UNIX/Linux

Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html

Topics

#UID/GID Consistency#LDAP#NFS#Identity Management

Community Discussion

No community discussion yet for this question.

Full LFCS Practice