NETGROUP(5)

πŸ“¦
version 4.2 Β· 7 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NETGROUP πŸ’–

okay so bestie, welcome to netgroup from the NIS Reference Manual, section 5 πŸŽ€ this is the girlies' guide to network groups and honestly it's giving permission-checking main character energy ✨


✨ NAME ✨

netgroup β€” specify network groups 🫢


🌸 DESCRIPTION 🌸

so like, the netgroup file defines "netgroups", which are literally sets of (host, user, domain) tuples, and they're used for permission checking when you're doing remote mounts, remote logins and remote shells. periodt πŸ’…

every single line in the file is a netgroup name followed by a list of members, and a member is either another netgroup name, or a triple:

(host, user, domain)

where host, user, and domain are character strings for the corresponding components. ngl, any of the three fields can be empty, and when it is, that specifies a "wildcard" πŸ¦‹ or it can be the string - to specify "no valid value". and here's the tea: the domain field must either be the local domain name or empty for the netgroup entry to be used at all. this field does not limit the netgroup or provide security, bestie, it's not that kind of field 😭 the domain field refers to the domain in which the triple is valid, not the domain containing the trusted host.

a gateway machine should be listed under all possible hostnames by which it may be recognized πŸ‘‘

gateway (server, , ) (server-sn, , ) (server-bb, , )

and the getnetgrent(3) function should normally be used to access the netgroup database, iykyk πŸ’œ


πŸŽ€ FILES πŸŽ€

  • /etc/netgroup

🌈 SEE ALSO 🌈


πŸ’€ WARNINGS πŸ’€

not me having to say this but the triple (,,domain) allows all users and machines trusted access, and has the same effect as the triple (,,). that is highkey a lot of trust to be handing out πŸ™ˆ use the host and user fields of the triple to restrict the access correctly to a specific set of members. protect your peace fr fr πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Thorsten Kukuk <kukuk@thkukuk.de>


and that's the whole vibe, bestie πŸ’– this was NIS Reference Manual, dated 04/06/2006, serving NETGROUP(5) realness ✨ slay, go read your netgroup file responsibly πŸŒΈπŸ¦‹πŸ’