Opened 10 years ago

Closed 10 years ago

#3609 closed enhancement (worksforme)

Consider increasing group name max length in shadow

Reported by: Armin Owned by: lfs-book@…
Priority: normal Milestone: 7.6
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

Default group name length is 16 I believe but user name is 32. Consider increasing group name length to 32 too. Use the following switch

--with-group-name-max-length=32

I had problems with systemd groups whose names are a bit over 16 chars long.

Change History (8)

comment:1 by bdubbs@…, 10 years ago

Right now the longest group name we have in LFS is systemd-journal which is 15 characters. The second longest is messagebus at 10 characters. The first is systemd only, the second is for dbus that in the current LFS/BLFS instantiation is optional.

How about just adding the switch to command explanations and let users decide if it's needed.

comment:2 by Armin, 10 years ago

Whatever ... I'd like user/group name length to be the same. Most common practice is having same user and group name. And user can choose any that he/she might like.

comment:3 by bdubbs@…, 10 years ago

Good point. I'll make the change at next update cycle, probably in about a week.

comment:4 by bdubbs@…, 10 years ago

Resolution: fixed
Status: newclosed

Fixed at revision 10577.

comment:5 by William Harrington, 10 years ago

Not needed.

The books use cat to edit the groups and shadow entries.

The configure option isn't needed. The only time it is an issue is when using any of the shadow utils which use the max length option.

The longest is systemd-bus-proxy which is 18 chars long. Not quite 32.

"is_valid_{user,group}_name" functions are called by groupad, groupmod, grpck, newusers, pwck, useradd, and usermod"

Chris and I were researching this and if ya going to use any of those above in BLFS to create users or groups then it'd be a problem.

Since the base book should create those users that is not a problem.

comment:6 by William Harrington, 10 years ago

Resolution: fixed
Status: closedreopened

comment:7 by Armin, 10 years ago

See comment 2. This isn't about systemd at all. It is to be consistent with user name length, since most common practice nowadays is to use same user/group name for usernames added by sysadmin.

comment:8 by bdubbs@…, 10 years ago

Resolution: worksforme
Status: reopenedclosed

Although it's not, strictly speaking, needed for LFS or BLFS, it is a nice feature to have and it certainly does not hurt anything. I'll leave it in.

WorksForMe.

Note: See TracTickets for help on using tickets.