mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix the default uid/gid values in nfsuserd.c
This patch sets the default uid/gid values for "nobody" and "nogroup" to the values in the password and group databases. Normally nfsuserd(8) will override these with whatever is in the password/group databases, so these values are only used when the databases entries aren't available. It would be nice to use the definitions in sys/conf.h, but those are in the _KERNEL section of the file. Reported by: tez@pkgsrc.org Submitted by: tez@pkgsrc.org MFC after: 2 weeks
This commit is contained in:
parent
6002d46737
commit
c1c63967cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317350
@ -88,9 +88,9 @@ struct info {
|
||||
|
||||
u_char *dnsname = "default.domain";
|
||||
u_char *defaultuser = "nobody";
|
||||
uid_t defaultuid = (uid_t)32767;
|
||||
uid_t defaultuid = 65534;
|
||||
u_char *defaultgroup = "nogroup";
|
||||
gid_t defaultgid = (gid_t)32767;
|
||||
gid_t defaultgid = 65533;
|
||||
int verbose = 0, im_a_slave = 0, nfsuserdcnt = -1, forcestart = 0;
|
||||
int defusertimeout = DEFUSERTIMEOUT, manage_gids = 0;
|
||||
pid_t slaves[MAXNFSUSERD];
|
||||
|
Loading…
Reference in New Issue
Block a user