Re: man7 - useradd query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 17, 2023 at 04:17:42PM +0200, Alejandro Colomar wrote:
> Hi Iker,
> 
> On Tue, Oct 17, 2023 at 08:44:08AM -0500, Serge E. Hallyn wrote:
> [...]
> 
> > > > The useradd command here is showing an option   -F which is shown as
> > > > invalid in RH 8.8 or RH 9.
> > > > Is this correct?
> > > 
> > > From what I see in the source code of useradd.c in shadow, the feature
> > > is compiled conditionally, #ifdef ENABLE_SUBIDS.  It may be that RHEL,
> > > or your version, doesn't build with that option; I ignore it, I'm a
> > > Debian user.
> > 
> > Yeah - but the manpage should likewise should not show the option if
> > it is not compiled in, I guess.
> 
> This sounds reasonable.
> 
> >  At the moment it looks like we
> > conditionally complie some manpages, like newuidmap.1, but I don't
> > see any sections compiled out in the man/*.xml files.
> 
> You mean that currently it's either the entire page or nothing at all,
> right?  I don't see anything that compiles part of a page either.

Right.

> I imagine that you could do something like that by wrapping the
> conditional part in something like <ifdef id="ENABLE_SUBIDS">...</ifdef>,
> and write some script to handle it.

Yeah.  It shouldn't be too bad.



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux