public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] What does su user flag actually mean?
@ 2024-10-21 11:07 gevisz
  2024-10-21 11:29 ` Michael
  2024-10-21 11:33 ` netfab
  0 siblings, 2 replies; 5+ messages in thread
From: gevisz @ 2024-10-21 11:07 UTC (permalink / raw
  To: gentoo-user

I skipped updating my profile from 17 to 23 in the beginning of June 2024
and are now installing Gentoo anew. I have disabled pam use flag globally
and now portage complains that for the package linux-utils "the following
REQUIRED_USE flag constraints are unsatisfied: su? ( pam )"

I have tried and found out that that package will compile if I also disable the
su user flag. However, I do not understand the consequences.
The explanation of the su user flag says that with +su user flag
linux-utis will be compiled into "the su program"

Can somebody explain to me what it means?

Thank you.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What does su user flag actually mean?
  2024-10-21 11:07 [gentoo-user] What does su user flag actually mean? gevisz
@ 2024-10-21 11:29 ` Michael
  2024-10-21 11:53   ` gevisz
  2024-10-21 11:33 ` netfab
  1 sibling, 1 reply; 5+ messages in thread
From: Michael @ 2024-10-21 11:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

On Monday 21 October 2024 12:07:47 BST gevisz wrote:
> I skipped updating my profile from 17 to 23 in the beginning of June 2024
> and are now installing Gentoo anew. I have disabled pam use flag globally
> and now portage complains that for the package linux-utils "the following
> REQUIRED_USE flag constraints are unsatisfied: su? ( pam )"
> 
> I have tried and found out that that package will compile if I also disable
> the su user flag. However, I do not understand the consequences.
> The explanation of the su user flag says that with +su user flag
> linux-utis will be compiled into "the su program"
> 
> Can somebody explain to me what it means?
> 
> Thank you.

The su command (Substitute User) can be built either by emerging the sys-apps/
util-linux package with USE="su", or by emerging the sys-apps/shadow package 
similarly.  The wiki states "Avoid installing both these commands 
simultaneously":

https://wiki.gentoo.org/wiki/Su

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What does su user flag actually mean?
  2024-10-21 11:07 [gentoo-user] What does su user flag actually mean? gevisz
  2024-10-21 11:29 ` Michael
@ 2024-10-21 11:33 ` netfab
  2024-10-21 11:57   ` gevisz
  1 sibling, 1 reply; 5+ messages in thread
From: netfab @ 2024-10-21 11:33 UTC (permalink / raw
  To: gentoo-user

Le 21/10/24 à 13:07, gevisz a tapoté :
> Can somebody explain to me what it means?

It seems that the "su" useflag is building the "su" utility, and that
this useflag is enabled by default on gentoo.

See 1 and 2.

So I guess that if "su" useflag is disabled, the "su" utility is not
built nor installed.

> sys-apps/util-linux: Revbump to introduce "logger" and "su" USE flags
> Bug: https://bugs.gentoo.org/700834

> sys-apps/util-linux: enable su by default
> shadow 4.10+ is deprecating 'su', so we're switching
> to util-linux's implementation by default.

1. https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-apps/util-linux?id=2077815d701422d1f19942a695f7f19eaf49604e
2. https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-apps/util-linux?id=c550eb53b108fcf6d4e2a38778230bc9a7d078e8




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What does su user flag actually mean?
  2024-10-21 11:29 ` Michael
@ 2024-10-21 11:53   ` gevisz
  0 siblings, 0 replies; 5+ messages in thread
From: gevisz @ 2024-10-21 11:53 UTC (permalink / raw
  To: gentoo-user

пн, 21 окт. 2024 г. в 14:38, Michael <confabulate@kintzios.com>:
>
> On Monday 21 October 2024 12:07:47 BST gevisz wrote:
> > I skipped updating my profile from 17 to 23 in the beginning of June 2024
> > and are now installing Gentoo anew. I have disabled pam use flag globally
> > and now portage complains that for the package linux-utils "the following
> > REQUIRED_USE flag constraints are unsatisfied: su? ( pam )"
> >
> > I have tried and found out that that package will compile if I also disable
> > the su user flag. However, I do not understand the consequences.
> > The explanation of the su user flag says that with +su user flag
> > linux-utis will be compiled into "the su program"
> >
> > Can somebody explain to me what it means?
> >
> > Thank you.
>
> The su command (Substitute User) can be built either by emerging the sys-apps/
> util-linux package with USE="su", or by emerging the sys-apps/shadow package
> similarly.  The wiki states "Avoid installing both these commands
> simultaneously":
>
> https://wiki.gentoo.org/wiki/Su

Thank you for the explanation. I've got it.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] What does su user flag actually mean?
  2024-10-21 11:33 ` netfab
@ 2024-10-21 11:57   ` gevisz
  0 siblings, 0 replies; 5+ messages in thread
From: gevisz @ 2024-10-21 11:57 UTC (permalink / raw
  To: gentoo-user

пн, 21 окт. 2024 г. в 14:33, netfab <netbox253@netc.eu>:
>
> Le 21/10/24 à 13:07, gevisz a tapoté :
> > Can somebody explain to me what it means?
>
> It seems that the "su" useflag is building the "su" utility, and that
> this useflag is enabled by default on gentoo.
>
> See 1 and 2.
>
> So I guess that if "su" useflag is disabled, the "su" utility is not
> built nor installed.
>
> > sys-apps/util-linux: Revbump to introduce "logger" and "su" USE flags
> > Bug: https://bugs.gentoo.org/700834
>
> > sys-apps/util-linux: enable su by default
> > shadow 4.10+ is deprecating 'su', so we're switching
> > to util-linux's implementation by default.
>
> 1. https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-apps/util-linux?id=2077815d701422d1f19942a695f7f19eaf49604e
> 2. https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-apps/util-linux?id=c550eb53b108fcf6d4e2a38778230bc9a7d078e8

Thank you for your explanation too.
However, I didn't get it until Michael explained it in other words.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-21 11:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21 11:07 [gentoo-user] What does su user flag actually mean? gevisz
2024-10-21 11:29 ` Michael
2024-10-21 11:53   ` gevisz
2024-10-21 11:33 ` netfab
2024-10-21 11:57   ` gevisz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox