Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

"... all the modern inconveniences ..." -- Mark Twain


comp / comp.os.linux.misc / privileged user in RedHat

SubjectAuthor
* privileged user in RedHatMarco Moock
+* Re: privileged user in RedHat186282@ud0s4.net
|+* Re: privileged user in RedHatGrant Taylor
||`* Re: privileged user in RedHatLawrence D'Oliveiro
|| `* Re: privileged user in RedHatGrant Taylor
||  `* Re: privileged user in RedHatLawrence D'Oliveiro
||   +* Re: privileged user in RedHatrbowman
||   |+- Re: privileged user in RedHatCarlos E.R.
||   |+- Re: privileged user in RedHatHarold Stevens
||   |`- Re: privileged user in RedHatLawrence D'Oliveiro
||   `- Re: privileged user in RedHatGrant Taylor
|`* Re: privileged user in RedHatMarco Moock
| +* Re: privileged user in RedHatBorax Man
| |`* Re: privileged user in RedHatMarc Haber
| | `* Re: privileged user in RedHatBorax Man
| |  +* Re: privileged user in RedHatLawrence D'Oliveiro
| |  |`* Re: privileged user in RedHatBorax Man
| |  | `- Re: privileged user in RedHatCarlos E.R.
| |  `* Re: privileged user in RedHatThe Natural Philosopher
| |   `* Re: privileged user in RedHatDavid De La Harpe Golden
| |    `- Re: privileged user in RedHatBorax Man
| +* Re: privileged user in RedHatBobbie Sellers
| |`- Re: privileged user in RedHat186282@ud0s4.net
| +* Re: privileged user in RedHatDavid W. Hodgins
| |`- Re: privileged user in RedHatMarco Moock
| `- Re: privileged user in RedHatJoe Beanfish
+* Re: privileged user in RedHatGrant Taylor
|+* Re: privileged user in RedHatLawrence D'Oliveiro
||`* Re: privileged user in RedHatGrant Taylor
|| `* Re: privileged user in RedHatRich
||  `- Re: privileged user in RedHatRichard Kettlewell
|`- Re: privileged user in RedHatThe Natural Philosopher
+* Re: privileged user in RedHatLew Pitcher
|`- Re: privileged user in RedHatLawrence D'Oliveiro
+* Re: privileged user in RedHatLawrence D'Oliveiro
|`- Re: privileged user in RedHatMarco Moock
`* Re: privileged user in RedHatWoozy Song
 `- Re: privileged user in RedHatRich

Pages:12
Subject: privileged user in RedHat
From: Marco Moock
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 28 Aug 2024 06:21 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.os.linux.misc
Subject: privileged user in RedHat
Date: Wed, 28 Aug 2024 08:21:01 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <20240828082101.617dadf2@dorfdsl.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Aug 2024 08:20:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="68fdce3298b2d2e6e3a2d1ecc8443dda";
logging-data="3556215"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ALcpA9mkYG1PHpVr8CCzn"
Cancel-Lock: sha1:7xFgyTRFVB/3+p9fPomI4zQCKn8=
X-Newsreader: Claws Mail 4.3.0 (GTK 3.24.31; i586-slackware-linux-gnu)
View all headers

Hello!

Is there any definition for the word "privileged user" in the Linux
(especially RedHat) environment?

I am currently learning RedHat OpenShift and the courses include a
question where the answer is that 2 containers run with UID 27 are
called privileged. (DO190 ch03s08 if you have access).

I am aware that it is common that normal (real people) users start with
1000 ongoing, server process users are below. Is there a difference on
the IDs or is that just tradition?

--
kind regards
Marco

Subject: Re: privileged user in RedHat
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Wed, 28 Aug 2024 07:53 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 28 Aug 2024 07:53:19 +0000
Subject: Re: privileged user in RedHat
Newsgroups: comp.os.linux.misc
References: <20240828082101.617dadf2@dorfdsl.de>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Wed, 28 Aug 2024 03:53:18 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <20240828082101.617dadf2@dorfdsl.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
Lines: 62
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-ScXtOyCdZQtYadYTF7eXpvAFxJBqaxJ8Y3hvSeVuBCkQM4VYoEIXKfmaBGqdw1KmlhJN+by7X+TDfCy!75ZyrwjPT6yWE2aNqsvHgIkeIS0L52WRmE4PFM4hg1C0xxxpgfqcdmeIQ7B/Q2DvbM8K+hcvck8K!e37iztvUg5i4hC49hnua
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 8/28/24 2:21 AM, Marco Moock wrote:
> Hello!
>
> Is there any definition for the word "privileged user" in the Linux
> (especially RedHat) environment?

User 'root' is the only, initially, "privileged user".

Open a terminal, type 'su', enter the password (which
should be DIFFERENT from that of any other user you
created during install). Root has access to EVERYTHING,
therefore the desire for the different password.

(note that 'sudo' kinda breaks this security measure, so
research and set it CAREFULLY). You do NOT have to use
'visudo' ... but then it's on YOU to get it 100% right.
Anything 'vi' I tend to REMOVE because I find line-editors
SO offensive these days.

When IBM-PCs, DOS 1.x, came out there was 'edlin' - a
"line editor". You were expected to use it when editing
text/config files. I despised the concept SO much I wrote
a 'nano'-like editor, in assembler lang, as a replacement.
I just REALLY hate line editors ...... the tech do do
much better existed from WAY back.

> I am currently learning RedHat OpenShift and the courses include a
> question where the answer is that 2 containers run with UID 27 are
> called privileged. (DO190 ch03s08 if you have access).
>
> I am aware that it is common that normal (real people) users start with
> 1000 ongoing, server process users are below. Is there a difference on
> the IDs or is that just tradition?

It is "tradition" now to set the first 'regular' user
to ID 1000, group 1000. Not all 'unix-like' systems
may obey the same traditions, but Linux distros kinda
all go that way.

The SYSTEM doesn't really care about the ID numbers.

While there are terminal-line utilities, you can also
edit /etc/groups and /etc/passwd using something like
'nano' and add/remove users from the privileges of
the root user. DO be CAREFUL ! Get it right. Plenty
of docs on the net.

Linux has a rep for security. To keep that intact
please do NOT run apps and such as "root" unless
absolutely necessary.

Yea, yea ... with Win you have to use the Administrator
privs kinda often or you can't do dick .......

As for 'sudo' ... there ARE ways to force it to
require the ROOT password instead of the regular
USER password. This is much more secure. DO
research it on the net. The /etc/sudoers file
is where you make the, careful, changes.

Oh, Raspberry Pi's ... 'sudo' often requires NO
password. NOT great.

Subject: Re: privileged user in RedHat
From: Marco Moock
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 28 Aug 2024 10:01 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 12:01:14 +0200
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <20240828120114.258c0432@dorfdsl.de>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Aug 2024 12:00:42 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="68fdce3298b2d2e6e3a2d1ecc8443dda";
logging-data="3615919"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tyZUb144w+taV4C0xpAvT"
Cancel-Lock: sha1:t7MBKUbHCK78dNcy+4EYEEgpFBE=
X-Newsreader: Claws Mail 4.3.0 (GTK 3.24.31; i586-slackware-linux-gnu)
View all headers

On Wed, 28 Aug 2024 03:53:18 -0400 "186282@ud0s4.net"
<186283@ud0s4.net> wrote:

> On 8/28/24 2:21 AM, Marco Moock wrote:
> > Hello!
> >
> > Is there any definition for the word "privileged user" in the Linux
> > (especially RedHat) environment?
>
> User 'root' is the only, initially, "privileged user".

Ok, but what does privileged then mean in the RHEL/ROCP environment?

I know that stuff like sudo exists, but I'm mostly asking about the
term.

> (note that 'sudo' kinda breaks this security measure, so
> research and set it CAREFULLY). You do NOT have to use
> 'visudo' ... but then it's on YOU to get it 100% right.
> Anything 'vi' I tend to REMOVE because I find line-editors
> SO offensive these days.

I love vim, but this is irrelevant here. :-)

> > I am currently learning RedHat OpenShift and the courses include a
> > question where the answer is that 2 containers run with UID 27 are
> > called privileged. (DO190 ch03s08 if you have access).
> >
> > I am aware that it is common that normal (real people) users start
> > with 1000 ongoing, server process users are below. Is there a
> > difference on the IDs or is that just tradition?
>
> It is "tradition" now to set the first 'regular' user
> to ID 1000, group 1000. Not all 'unix-like' systems
> may obey the same traditions, but Linux distros kinda
> all go that way.
>
> The SYSTEM doesn't really care about the ID numbers.

Aren't there some applications/scripts that check those IDs?
IIRC in Debian some bash environment/profile stuff checks the UID to
set environment variables different for root.

> Oh, Raspberry Pi's ... 'sudo' often requires NO
> password. NOT great.

IIRC this is related to the OS installed on it. I run them with Debian
and Debian asks the user PW when using sudo by default, but this can be
easily changed in sudoers.

Subject: Re: privileged user in RedHat
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 28 Aug 2024 13:22 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 13:22:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <van8ba$3fst1$1@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Aug 2024 15:22:50 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d9afcf2de64f0db0b0381c273dce775f";
logging-data="3666849"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/R6v/L2+iuarQT+4+bTnHgNecLu04WsyU="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:eMEWWhV+1W1NJHFrQ7acPYjerFE=
View all headers

On Wed, 28 Aug 2024 08:21:01 +0200, Marco Moock wrote:

> Hello!
>
> Is there any definition for the word "privileged user" in the Linux
> (especially RedHat) environment?

That's a question with a complicated answer.

Linux has adopted the concept of "capabilities", which
a) subdivide privileges into categories, and
b) can be assigned (with limitations) to unprivileged UIDs

Processes run by the "root" user (UID 0), within the initial
"host" environment (i.e., not running in a container) have all
capabilities, until they drop one or more of those capabilities.
If/when a "privileged" process fork()s, the child process does
not receive full capabilities; instead, it inherits the retained
capability set of it's parent process.

A common way to delegate UID 0 privileges is for the binary owned
by UID 0 to have the SETUID permission bit set. This permits the
binary, when run with the UID of an unprivileged user, to act as
UID 0, with all it's permissions. Some general purpose utilities,
such as su(1) and sudo(8) work this way.

> I am currently learning RedHat OpenShift and the courses include a
> question where the answer is that 2 containers run with UID 27 are
> called privileged. (DO190 ch03s08 if you have access).

Containers have different restrictions. Containers initiated by
privileged processes retain the privileges of the process that started
them, and (subject to certain rules relating to the /type/ of container)
may even regain privileges /within the processes in the container/.

Containers initiated by unprivileged processes may gain new privileges,
again, /within the processes in the container/. However, there are
privileges that such process cannot gain.
> I am aware that it is common that normal (real people) users start with
> 1000 ongoing, server process users are below. Is there a difference on
> the IDs or is that just tradition?

UID 0 is the only privileged UID. All the other UIDs start off "unprivileged".
The distinction between the UIDs below 1000 and those above is purely
artificial and administrative. There are other separations, other than
"privilege" that are applied by UID (and/or GID), and this numbering
convention permits the distribution to fit those distinctions in without
affecting the UID assignments that the sysadmin will also implement.

HTH
--
Lew Pitcher
"In Skills We Trust"

Subject: Re: privileged user in RedHat
From: Borax Man
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 28 Aug 2024 13:24 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rotflol2@hotmail.com (Borax Man)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 13:24:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <slrnvcu982.5ir9.rotflol2@geidiprime.bvh>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
Injection-Date: Wed, 28 Aug 2024 15:24:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="21ff1adde3c9ae0e6abc71877fbb16f8";
logging-data="3669770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/z/PbMCCrgdOsKl8CKrf88Pjg8BONOvhM="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:B0ZO9arcUY9T/DhansvAFgzt0+Y=
View all headers

On 2024-08-28, Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
> On Wed, 28 Aug 2024 03:53:18 -0400 "186282@ud0s4.net"
><186283@ud0s4.net> wrote:
>
>> On 8/28/24 2:21 AM, Marco Moock wrote:
>> > Hello!
>> >
>> > Is there any definition for the word "privileged user" in the Linux
>> > (especially RedHat) environment?
>>
>> User 'root' is the only, initially, "privileged user".
>
>
> Ok, but what does privileged then mean in the RHEL/ROCP environment?
>
> I know that stuff like sudo exists, but I'm mostly asking about the
> term.
>
>> (note that 'sudo' kinda breaks this security measure, so
>> research and set it CAREFULLY). You do NOT have to use
>> 'visudo' ... but then it's on YOU to get it 100% right.
>> Anything 'vi' I tend to REMOVE because I find line-editors
>> SO offensive these days.
>
> I love vim, but this is irrelevant here. :-)
>
>> > I am currently learning RedHat OpenShift and the courses include a
>> > question where the answer is that 2 containers run with UID 27 are
>> > called privileged. (DO190 ch03s08 if you have access).
>> >
>> > I am aware that it is common that normal (real people) users start
>> > with 1000 ongoing, server process users are below. Is there a
>> > difference on the IDs or is that just tradition?
>>
>> It is "tradition" now to set the first 'regular' user
>> to ID 1000, group 1000. Not all 'unix-like' systems
>> may obey the same traditions, but Linux distros kinda
>> all go that way.
>>
>> The SYSTEM doesn't really care about the ID numbers.
>
> Aren't there some applications/scripts that check those IDs?
> IIRC in Debian some bash environment/profile stuff checks the UID to
> set environment variables different for root.
>
>> Oh, Raspberry Pi's ... 'sudo' often requires NO
>> password. NOT great.
>
> IIRC this is related to the OS installed on it. I run them with Debian
> and Debian asks the user PW when using sudo by default, but this can be
> easily changed in sudoers.
>

There is nothing special about the different UID's, apart from the root user.

ID's start at 1000 so they don't overlap with ID's which may be used for
system processes and the like. When I started using Linux, they typically
started at 500.

What you are referring to, is specifically a RedHat OpenShift thing,
presumably permissions and restrictions that the containerised
environment adds. In this case, this is RedHat specific, rather than
Linux per-se. You'd need to research OpenShift specifically, because
from what you describe, this is OpenShift technology at work.

Subject: Re: privileged user in RedHat
From: David W. Hodgins
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 28 Aug 2024 13:40 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 09:40:17 -0400
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <op.2s7uxf0da3w0dxdave@hodgins.homeip.net>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Aug 2024 15:40:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a111cf4c86e5b2b79d27d9f1290a15cf";
logging-data="3678873"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HK6LmtbJNoXg5YdiAUOgl2XnObSMJ/Ko="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:LtY63WNmpb+d+8X0aUyvIRL5oyE=
View all headers

On Wed, 28 Aug 2024 06:01:14 -0400, Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
> On Wed, 28 Aug 2024 03:53:18 -0400 "186282@ud0s4.net"
> <186283@ud0s4.net> wrote:
>
>> On 8/28/24 2:21 AM, Marco Moock wrote:
>> > Hello!
>> >
>> > Is there any definition for the word "privileged user" in the Linux
>> > (especially RedHat) environment?
>>
>> User 'root' is the only, initially, "privileged user".
>
>
> Ok, but what does privileged then mean in the RHEL/ROCP environment?
>
> I know that stuff like sudo exists, but I'm mostly asking about the
> term.

There are "privileged users". Those with a uid in what is shown by
(as root) "grep SYS_UID /etc/login.defs".

The only benefit I'm aware of is the ability to increase the priority
for their own processes. See "man renice". There are probably other
benefits, but I don't recall any others off hand.

Regards, Dave Hodgins

Subject: Re: privileged user in RedHat
From: Joe Beanfish
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 28 Aug 2024 15:23 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: joebeanfish@nospam.duh (Joe Beanfish)
From: joebeanfish@nospam.duh (Joe Beanfish)
Newsgroups: comp.os.linux.misc
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 15:23:25 -0000 (UTC)
Date: Wed, 28 Aug 2024 15:23:25 -0000 (UTC)
Organization: A noiseless patient Spider
Organization: A noiseless patient Spider
Lines: 34
Lines: 34
Message-ID: <vanfdd$3ftg3$1@dont-email.me>
Message-ID: <vanfdd$3ftg3$1@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
<20240828120114.258c0432@dorfdsl.de>
MIME-Version: 1.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Aug 2024 17:23:25 +0200 (CEST)
Injection-Date: Wed, 28 Aug 2024 17:23:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dd3408451f6eb097cf634a356283efeb";
Injection-Info: dont-email.me; posting-host="dd3408451f6eb097cf634a356283efeb";
logging-data="3667459"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+H6Vsh6DqOLjkFyheFwoyQvoDlSNoz8CU="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
logging-data="3667459"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+H6Vsh6DqOLjkFyheFwoyQvoDlSNoz8CU="
git@gitlab.gnome.org:GNOME/pan.git)
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
Cancel-Lock: sha1:KXH/wowPy8na4BWHOTbjXxpqtxw=
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:KXH/wowPy8na4BWHOTbjXxpqtxw=
View all headers

Xref: unconfigured comp.os.linux.misc:2213
On Wed, 28 Aug 2024 12:01:14 +0200, Marco Moock wrote:

On Wed, 28 Aug 2024 12:01:14 +0200, Marco Moock wrote:
> On Wed, 28 Aug 2024 03:53:18 -0400 "186282@ud0s4.net"

> <186283@ud0s4.net> wrote:
> On Wed, 28 Aug 2024 03:53:18 -0400 "186282@ud0s4.net"
>
> <186283@ud0s4.net> wrote:
>> On 8/28/24 2:21 AM, Marco Moock wrote:
>
>> > Hello!
>> On 8/28/24 2:21 AM, Marco Moock wrote:
>> >
>> > Hello!
>> > Is there any definition for the word "privileged user" in the Linux
>> >
>> > (especially RedHat) environment?
>> > Is there any definition for the word "privileged user" in the Linux
>> >
>> > (especially RedHat) environment?
>> >
>> > I am currently learning RedHat OpenShift and the courses include a
>> > question where the answer is that 2 containers run with UID 27 are
>> > called privileged. (DO190 ch03s08 if you have access).
>> >
>> > I am aware that it is common that normal (real people) users start with
>> > 1000 ongoing, server process users are below. Is there a difference on
>> > the IDs or is that just tradition?
>>
>> User 'root' is the only, initially, "privileged user".
>
>
> Ok, but what does privileged then mean in the RHEL/ROCP environment?

Strictly speaking "privileged user" just means a user with sufficient
permissions to perform the task. That user is often root since root
can do anything. But it could be a regular user that has been placed into
the appropriate group (/etc/group) or configured via SELinux etc..

At the kernel level, there are no special UIDs except 0 for root.

For openshift, idk, but these might be helpful
https://www.redhat.com/en/blog/a-guide-to-openshift-and-uids
https://learn.redhat.com/t5/Containers-DevOps-OpenShift/Container-image-on-the-exam/td-p/35223

Subject: Re: privileged user in RedHat
From: Marco Moock
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 28 Aug 2024 15:43 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 17:43:04 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vangi9$3hbcg$2@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
<op.2s7uxf0da3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Aug 2024 17:43:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3271a37fe3d9bc7f9b5b103df55d2c22";
logging-data="3714448"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6ZdYfg/W2ljWOhC7VNW1G"
Cancel-Lock: sha1:cQhv71i853/qcox829ONKmcS7/E=
View all headers

On 28.08.2024 um 09:40 Uhr David W. Hodgins wrote:

> There are "privileged users". Those with a uid in what is shown by
> (as root) "grep SYS_UID /etc/login.defs".
>
> The only benefit I'm aware of is the ability to increase the priority
> for their own processes. See "man renice". There are probably other
> benefits, but I don't recall any others off hand.

Thanks. I will check that.

--
kind regards
Marco

Send spam to 1724830817muell@cartoonies.org

Subject: Re: privileged user in RedHat
From: Marc Haber
Newsgroups: comp.os.linux.misc
Organization: private site, see http://www.zugschlus.de/ for details
Date: Wed, 28 Aug 2024 18:16 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!.POSTED.torres.zugschlus.de!not-for-mail
From: mh+usenetspam1118@zugschl.us (Marc Haber)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 20:16:28 +0200
Organization: private site, see http://www.zugschlus.de/ for details
Message-ID: <vanphs$2bt38$1@news1.tnib.de>
References: <20240828082101.617dadf2@dorfdsl.de> <u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com> <20240828120114.258c0432@dorfdsl.de> <slrnvcu982.5ir9.rotflol2@geidiprime.bvh>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Aug 2024 18:16:28 -0000 (UTC)
Injection-Info: news1.tnib.de; posting-host="torres.zugschlus.de:81.169.166.32";
logging-data="2487400"; mail-complaints-to="abuse@tnib.de"
X-Newsreader: Forte Agent 6.00/32.1186
View all headers

Borax Man <rotflol2@hotmail.com> wrote:
>ID's start at 1000 so they don't overlap with ID's which may be used for
>system processes and the like. When I started using Linux, they typically
>started at 500.

That is local configuration with defaults set by the distribution. See
/etc/login.defs.

Greetings
Marc
--
----------------------------------------------------------------------------
Marc Haber | " Questions are the | Mailadresse im Header
Rhein-Neckar, DE | Beginning of Wisdom " |
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

Subject: Re: privileged user in RedHat
From: Bobbie Sellers
Newsgroups: comp.os.linux.misc
Organization: none at all
Date: Wed, 28 Aug 2024 18:33 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: blissInSanFrancisco@mouse-potato.com (Bobbie Sellers)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Wed, 28 Aug 2024 11:33:23 -0700
Organization: none at all
Lines: 65
Message-ID: <vanqhj$3iqp2$1@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
Reply-To: blissInSanFrancisco@mouse-potato.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Aug 2024 20:33:24 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a37d359fd7dde28897fd3db559c09b3f";
logging-data="3762978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6LQuqzrZbgXq+02i3FKdQ"
User-Agent: Betterbird (Linux)
Cancel-Lock: sha1:6GB3GnsGp9BbdSPFo2P5BHxfvpY=
Content-Language: en-US
In-Reply-To: <20240828120114.258c0432@dorfdsl.de>
View all headers

On 8/28/24 03:01, Marco Moock wrote:
> On Wed, 28 Aug 2024 03:53:18 -0400 "186282@ud0s4.net"
> <186283@ud0s4.net> wrote:
>
>> On 8/28/24 2:21 AM, Marco Moock wrote:
>>> Hello!
>>>
>>> Is there any definition for the word "privileged user" in the Linux
>>> (especially RedHat) environment?
>>
>> User 'root' is the only, initially, "privileged user".

But root can assign other users certain privileges.
For example I am root on my system but I have assigned myself
certain administrative privilegs so that for example I
can do updates with my user password.
In Multiple user systems user may be allowed the use
of certain tools to maintain their own accounts.

>
>
> Ok, but what does privileged then mean in the RHEL/ROCP environment?
>
> I know that stuff like sudo exists, but I'm mostly asking about the
> term.
>
>> (note that 'sudo' kinda breaks this security measure, so
>> research and set it CAREFULLY). You do NOT have to use
>> 'visudo' ... but then it's on YOU to get it 100% right.
>> Anything 'vi' I tend to REMOVE because I find line-editors
>> SO offensive these days.
>
> I love vim, but this is irrelevant here. :-)
>
>>> I am currently learning RedHat OpenShift and the courses include a
>>> question where the answer is that 2 containers run with UID 27 are
>>> called privileged. (DO190 ch03s08 if you have access).
>>>
>>> I am aware that it is common that normal (real people) users start
>>> with 1000 ongoing, server process users are below. Is there a
>>> difference on the IDs or is that just tradition?
>>
>> It is "tradition" now to set the first 'regular' user
>> to ID 1000, group 1000. Not all 'unix-like' systems
>> may obey the same traditions, but Linux distros kinda
>> all go that way.
>>
>> The SYSTEM doesn't really care about the ID numbers.
>
> Aren't there some applications/scripts that check those IDs?
> IIRC in Debian some bash environment/profile stuff checks the UID to
> set environment variables different for root.
>
>> Oh, Raspberry Pi's ... 'sudo' often requires NO
>> password. NOT great.
>
> IIRC this is related to the OS installed on it. I run them with Debian
> and Debian asks the user PW when using sudo by default, but this can be
> easily changed in sudoers.
>
bliss

--
b l i s s - S F 4 e v e r at D S L E x t r e m e dot com

Subject: Re: privileged user in RedHat
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Thu, 29 Aug 2024 04:57 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 29 Aug 2024 04:57:40 +0000
Subject: Re: privileged user in RedHat
Newsgroups: comp.os.linux.misc
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de> <vanqhj$3iqp2$1@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Thu, 29 Aug 2024 00:57:38 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vanqhj$3iqp2$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <2YGcnQ8smeVZYlL7nZ2dnZfqnPiZ4p2d@earthlink.com>
Lines: 24
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-OzbYQ+QJHXYsqacud4deFV325pfyTSglcyGFvaLJHi4ksO7GDkLZVeMfLo28c543U1KFd1V+1iB6H5R!iSCorocI5XFwnHzwlfsp95dQUrTxCGbJwEN1AaNEDPjc1N3EIbuhGzGn0I3jC7yVns71s75O155U!5GUkL56zgrOBsOTMX9cP
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 8/28/24 2:33 PM, Bobbie Sellers wrote:
> On 8/28/24 03:01, Marco Moock wrote:
>> On Wed, 28 Aug 2024 03:53:18 -0400 "186282@ud0s4.net"
>> <186283@ud0s4.net> wrote:
>>
>>> On 8/28/24 2:21 AM, Marco Moock wrote:
>>>> Hello!
>>>>
>>>> Is there any definition for the word "privileged user" in the Linux
>>>> (especially RedHat) environment?
>>>
>>>     User 'root' is the only, initially, "privileged user".
>
>     But root can assign other users certain privileges.

Ergo my word 'initially'.

Yes, you CAN assign a vast number of 'elevated' privs
for any user. My concern for newbies is that they may
go too far that way - compromising security.

You CAN make Linux as horribly insecure as Winders.

Subject: Re: privileged user in RedHat
From: Woozy Song
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 29 Aug 2024 10:51 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: suzyw0ng@outlook.com (Woozy Song)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Thu, 29 Aug 2024 18:51:45 +0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vapjs1$3ufcv$2@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 29 Aug 2024 12:51:46 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0e34960035f93f8a44610932b2b27d1f";
logging-data="4144543"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SW92Ka5LA+ifFYGKzPCHCr6fyOFE0d4U="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.2
Cancel-Lock: sha1:mlBOsL2jEVR/zY4vB06AL4UNNjk=
In-Reply-To: <20240828082101.617dadf2@dorfdsl.de>
View all headers

Marco Moock wrote:
> Hello!
>
> Is there any definition for the word "privileged user" in the Linux
> (especially RedHat) environment?
>
> I am currently learning RedHat OpenShift and the courses include a
> question where the answer is that 2 containers run with UID 27 are
> called privileged. (DO190 ch03s08 if you have access).
>
> I am aware that it is common that normal (real people) users start with
> 1000 ongoing, server process users are below. Is there a difference on
> the IDs or is that just tradition?
>

Would users in the "wheel" group be priveleged? They can do anything
with sudo.

Subject: Re: privileged user in RedHat
From: Borax Man
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 29 Aug 2024 10:59 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rotflol2@hotmail.com (Borax Man)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Thu, 29 Aug 2024 10:59:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <slrnvd0l5e.5t4v.rotflol2@geidiprime.bvh>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
<slrnvcu982.5ir9.rotflol2@geidiprime.bvh> <vanphs$2bt38$1@news1.tnib.de>
Injection-Date: Thu, 29 Aug 2024 13:00:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="52cb86d27f646e97a9d7195d719eb50d";
logging-data="4148210"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19j1s4P7zemIRbTKDiSF5+Gke+l6NNdGZ4="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:GXhw0R7PaMZxZFkRVn+vviCtZ9k=
View all headers

On 2024-08-28, Marc Haber <mh+usenetspam1118@zugschl.us> wrote:
> Borax Man <rotflol2@hotmail.com> wrote:
>>ID's start at 1000 so they don't overlap with ID's which may be used for
>>system processes and the like. When I started using Linux, they typically
>>started at 500.
>
> That is local configuration with defaults set by the distribution. See
> /etc/login.defs.
>
> Greetings
> Marc

Yes, you can change it. Distro's defaulted to 500, now its typically
1000. I have my UID set at 500, because I've wanted to maintain the
same UID since I first started using Linux.

I'll change it one day, but all my backups will have to change too.

Subject: Re: privileged user in RedHat
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Thu, 29 Aug 2024 12:06 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Thu, 29 Aug 2024 13:06:49 +0100
Organization: A little, after lunch
Lines: 26
Message-ID: <vapo8p$3v5v2$1@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
<slrnvcu982.5ir9.rotflol2@geidiprime.bvh> <vanphs$2bt38$1@news1.tnib.de>
<slrnvd0l5e.5t4v.rotflol2@geidiprime.bvh>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 29 Aug 2024 14:06:50 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="87291f96f447ee78300091a1ce02ee12";
logging-data="4167650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EKOn8j817IMRCyRqNbqvwno/zS6dkqas="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nRKv+ArCRwA1aK6gIg3Ypeqe0xI=
In-Reply-To: <slrnvd0l5e.5t4v.rotflol2@geidiprime.bvh>
Content-Language: en-GB
View all headers

On 29/08/2024 11:59, Borax Man wrote:
> On 2024-08-28, Marc Haber <mh+usenetspam1118@zugschl.us> wrote:
>> Borax Man <rotflol2@hotmail.com> wrote:
>>> ID's start at 1000 so they don't overlap with ID's which may be used for
>>> system processes and the like. When I started using Linux, they typically
>>> started at 500.
>>
>> That is local configuration with defaults set by the distribution. See
>> /etc/login.defs.
>>
>> Greetings
>> Marc
>
> Yes, you can change it. Distro's defaulted to 500, now its typically
> 1000. I have my UID set at 500, because I've wanted to maintain the
> same UID since I first started using Linux.
>
> I'll change it one day, but all my backups will have to change too.

Wow. It was always 1000 on most systems I ever came in contact with.

--
In todays liberal progressive conflict-free education system, everyone
gets full Marx.

Subject: Re: privileged user in RedHat
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 29 Aug 2024 14:00 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Thu, 29 Aug 2024 14:00:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vaput5$556$2@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de> <vapjs1$3ufcv$2@dont-email.me>
Injection-Date: Thu, 29 Aug 2024 16:00:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="17172e58d2fe2ac3bf01ad6f247a7e40";
logging-data="5286"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UnJOOmUW+eOgs6dAye+Yn"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:LPh96XS+yj4ZxBXIqW7T5krcpsE=
View all headers

Woozy Song <suzyw0ng@outlook.com> wrote:
> Marco Moock wrote:
>> Hello!
>>
>> Is there any definition for the word "privileged user" in the Linux
>> (especially RedHat) environment?
>>
>> I am currently learning RedHat OpenShift and the courses include a
>> question where the answer is that 2 containers run with UID 27 are
>> called privileged. (DO190 ch03s08 if you have access).
>>
>> I am aware that it is common that normal (real people) users start
>> with 1000 ongoing, server process users are below. Is there a
>> difference on the IDs or is that just tradition?
>>
>
> Would users in the "wheel" group be priveleged? They can do anything
> with sudo.

For some definitions of "privledged" that would be a yes.

But as some other poster pointed out, Marco seems to be dealing with
OpenShift internals, so he likely needs to find OpenShift's definition
(wherever that might be).

Subject: Re: privileged user in RedHat
From: David De La Harpe Go
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 29 Aug 2024 15:19 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david@harpegolden.net (David De La Harpe Golden)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Thu, 29 Aug 2024 16:19:36 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vaq3i8$l48$1@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
<slrnvcu982.5ir9.rotflol2@geidiprime.bvh> <vanphs$2bt38$1@news1.tnib.de>
<slrnvd0l5e.5t4v.rotflol2@geidiprime.bvh> <vapo8p$3v5v2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 29 Aug 2024 17:19:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="37d3e3392af2f9ae212d8b9f55579557";
logging-data="21640"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SBsAB+LOD75MwbSEEfysiNNA3sCp/OoEYI3Xprcp+3Q=="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UGmlN7gHvQ8fuJr45rh9TNrs+oo=
Content-Language: en-US
In-Reply-To: <vapo8p$3v5v2$1@dont-email.me>
View all headers

On 29/08/2024 13:06, The Natural Philosopher wrote:
> Wow. It was always 1000 on most systems I ever came in contact with.

FWIW, didn't actually go to 1000 by default until RHEL7 in 2014 for
Redhat/Redhat-oids...

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/migration_planning_guide/chap-red_hat_enterprise_linux-migration_planning_guide-major_changes_and_migration_considerations#sect-Red_Hat_Enterprise_Linux-Migration_Planning_Guide-System_Management-Changes-to-system-accounts

> This change might cause problems when migrating to Red Hat Enterprise
Linux 7 with existing users having UIDs and GIDs between 500 and 999.
The default ranges of UID and GID can be manually changed in the
/etc/login.defs file.

I'm sure Debian/Debian-oids used 1000 far earlier. debian-policy 3.8.0
from 2008 is just the earliest I can find in its present-day git, and it
was already 1000 then.

https://salsa.debian.org/dbnpolicy/policy/-/blob/v3.8.0.0/policy.sgml#L5722

Subject: Re: privileged user in RedHat
From: Grant Taylor
Newsgroups: comp.os.linux.misc
Organization: TNet Consulting
Date: Fri, 30 Aug 2024 02:17 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.omega.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Thu, 29 Aug 2024 21:17:50 -0500
Organization: TNet Consulting
Message-ID: <vara4e$5b0$1@tncsrv09.home.tnetconsulting.net>
References: <20240828082101.617dadf2@dorfdsl.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 02:17:50 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="omega.home.tnetconsulting.net:198.18.1.11";
logging-data="5472"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <20240828082101.617dadf2@dorfdsl.de>
View all headers

On 8/28/24 01:21, Marco Moock wrote:
> Hello!

Hi,

> Is there any definition for the word "privileged user" in the Linux
> (especially RedHat) environment?

IMHO "privileged" vs "unprivileged" is really a relative thing in that
the privileged user has more privileges than an unprivileged user.

Simply saying a user account is "privileged" doesn't convey what those
privileges are.

Often, those privileges are the ability to gain root access via some
means like su, sudo, doas, run0, capabilities, etc. How many of those
privileges are granted becomes difficult to say.

There is also the for something like a DBA to log in with their
unprivileged individual account and gain the privileges of the user that
the database runs as. Similarly, it's possible for a backup & recovery
administrator to log in with their unprivileged individual account and
gain the privileges of the user the backup daemon runs as which isn't
always root.

> I am currently learning RedHat OpenShift and the courses include a
> question where the answer is that 2 containers run with UID 27 are
> called privileged. (DO190 ch03s08 if you have access).

Some systems have configurations where a UID or GID below a specific
value is considered privileged for some thing. But that's a subsystem /
daemon configuration.

> I am aware that it is common that normal (real people) users start with
> 1000 ongoing, server process users are below. Is there a difference
> on the IDs or is that just tradition?

I've seen 100, 250, 500, and 1000. The exact number is a convention and
more or less common depending on the time and the family of the distro
in question.

--
Grant. . . .

Subject: Re: privileged user in RedHat
From: Grant Taylor
Newsgroups: comp.os.linux.misc
Organization: TNet Consulting
Date: Fri, 30 Aug 2024 02:28 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.omega.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Thu, 29 Aug 2024 21:28:12 -0500
Organization: TNet Consulting
Message-ID: <varans$5b0$2@tncsrv09.home.tnetconsulting.net>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 02:28:12 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="omega.home.tnetconsulting.net:198.18.1.11";
logging-data="5472"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
View all headers

On 8/28/24 02:53, 186282@ud0s4.net wrote:
> Root has access to EVERYTHING

I question the veracity of that.

Especially when you consider different name spaces; mount, network, etc.

Root should always have the ability to gain access to something. But I
can think of various scenarios where root doesn't inherently have access
to things.

A simple example is an immutable file which root can't remove without
disabling the immutability first.

> (note that 'sudo' kinda breaks this security measure, so research and
> set it CAREFULLY). You do NOT have to use 'visudo' ... but then it's
> on YOU to get it 100% right.

> Anything 'vi' I tend to REMOVE because I find line-editors SO offensive
> these days.

So set EDITOR and / or VISUAL and / or FCEDIT to your preferred editor.
visudo will happily use them. Or live dangerously.

> The SYSTEM doesn't really care about the ID numbers.

There are some things that check to see if a UID and / or GID is below a
threshold for various reasons.

> While there are terminal-line utilities, you can also edit /etc/groups
> and /etc/passwd using something like 'nano' and add/remove users from
> the privileges of the root user. DO be CAREFUL ! Get it right. Plenty
> of docs on the net.

Don't forget to edit the shadow counterparts; /etc/gshadow and
/etc/shadow respectively. Lest some tools get cranky when files and
their shadows don't match.

ProTip: Use tools, like visud -- configured to use your preferred
editor -- as they often sanity check file syntax and / or synchronize
other files and generally try to help you.

I've learned that the more you're fighting the system, the more likely
that you're doing something wrong or shouldn't be doing for some reason.

> As for 'sudo' ... there ARE ways to force it to require the ROOT
> password instead of the regular USER password. This is much more
> secure.

How is having multiple users knowing a shared password more secure than
each user only knowing their own password?

> Oh, Raspberry Pi's ... 'sudo' often requires NO password. NOT great.

Agreed. But that's a distribution configuration, not a software
requirement.

Upstream sudo will ask for the running user's password. The intention
is for the running user to authenticate themselves to sudo and then sudo
allows or disallows them to do what they've asked to do based on the
configuration of the sudoers file.

--
Grant. . . .

Subject: Re: privileged user in RedHat
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 03:05 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Fri, 30 Aug 2024 03:05:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <varct4$b7bo$7@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 30 Aug 2024 05:05:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c509a17e16dee277c625dc90ee6d135d";
logging-data="367992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194Pd+HwoBMBk9kA4w3XOaY"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:TAc0bywdimiDAiH1f4fvLzX8uZo=
View all headers

On Wed, 28 Aug 2024 08:21:01 +0200, Marco Moock wrote:

> I am currently learning RedHat OpenShift and the courses include a
> question where the answer is that 2 containers run with UID 27 are
> called privileged. (DO190 ch03s08 if you have access).

What they might mean is the the containers have to be managed by a
privileged user. Because some container technologies allow nonprivileged
users to create and manage their own containers.

Subject: Re: privileged user in RedHat
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Fri, 30 Aug 2024 11:08 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Fri, 30 Aug 2024 12:08:21 +0100
Organization: A little, after lunch
Lines: 11
Message-ID: <vas975$fb2m$1@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<vara4e$5b0$1@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 13:08:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3896f6248636b0e4f7e5488ee91a1695";
logging-data="502870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EMibtO1Daq2X32H8plzV0hMNcdZkrx6k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vwRuhFsYQjX5ZBwESeniPf/4oJc=
Content-Language: en-GB
In-Reply-To: <vara4e$5b0$1@tncsrv09.home.tnetconsulting.net>
View all headers

On 30/08/2024 03:17, Grant Taylor wrote:
> IMHO "privileged" vs "unprivileged" is really a relative thing in that
> the privileged user has more privileges than an unprivileged user.

STOP ROOT PRIVILEGE NOW!

--
In theory, there is no difference between theory and practice.
In practice, there is.
-- Yogi Berra

Subject: Re: privileged user in RedHat
From: Marco Moock
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 20:07 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Fri, 30 Aug 2024 22:07:58 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vat8qv$k6qo$1@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<varct4$b7bo$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 22:07:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="41e96cd4eb8f141fcf241b7870779375";
logging-data="662360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1848gSA5RXU8Adz7Pm6t9eh"
Cancel-Lock: sha1:XkqGUFdSOXnzLbvjL7yxw1aNuU0=
View all headers

On 30.08.2024 um 03:05 Uhr Lawrence D'Oliveiro wrote:

> On Wed, 28 Aug 2024 08:21:01 +0200, Marco Moock wrote:
>
> > I am currently learning RedHat OpenShift and the courses include a
> > question where the answer is that 2 containers run with UID 27 are
> > called privileged. (DO190 ch03s08 if you have access).
>
> What they might mean is the the containers have to be managed by a
> privileged user. Because some container technologies allow
> nonprivileged users to create and manage their own containers.

If I understood it properly the true answers were containers where the
UID was 2x. Other processes ran under 1001 and those answers weren't
correct.

--
kind regards
Marco

Send spam to 1724979908muell@cartoonies.org

Subject: Re: privileged user in RedHat
From: Borax Man
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 31 Aug 2024 02:26 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rotflol2@hotmail.com (Borax Man)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Sat, 31 Aug 2024 02:26:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <slrnvd4vre.77e4.rotflol2@geidiprime.bvh>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<20240828120114.258c0432@dorfdsl.de>
<slrnvcu982.5ir9.rotflol2@geidiprime.bvh> <vanphs$2bt38$1@news1.tnib.de>
<slrnvd0l5e.5t4v.rotflol2@geidiprime.bvh> <vapo8p$3v5v2$1@dont-email.me>
<vaq3i8$l48$1@dont-email.me>
Injection-Date: Sat, 31 Aug 2024 04:26:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d991bf1117192d853ee7924b26383461";
logging-data="903490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sKRRG2UtZEM0iL6tTDuyz7zJ3N5DDedA="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:nI0mOSLKEuu/k0iycTMLaQiLxMM=
View all headers

On 2024-08-29, David De La Harpe Golden <david@harpegolden.net> wrote:
> On 29/08/2024 13:06, The Natural Philosopher wrote:
>> Wow. It was always 1000 on most systems I ever came in contact with.
>
>
> FWIW, didn't actually go to 1000 by default until RHEL7 in 2014 for
> Redhat/Redhat-oids...
>
> https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/migration_planning_guide/chap-red_hat_enterprise_linux-migration_planning_guide-major_changes_and_migration_considerations#sect-Red_Hat_Enterprise_Linux-Migration_Planning_Guide-System_Management-Changes-to-system-accounts
>
>
> > This change might cause problems when migrating to Red Hat Enterprise
> Linux 7 with existing users having UIDs and GIDs between 500 and 999.
> The default ranges of UID and GID can be manually changed in the
> /etc/login.defs file.
>
>
> I'm sure Debian/Debian-oids used 1000 far earlier. debian-policy 3.8.0
> from 2008 is just the earliest I can find in its present-day git, and it
> was already 1000 then.
>
> https://salsa.debian.org/dbnpolicy/policy/-/blob/v3.8.0.0/policy.sgml#L5722

I first used Linux in 2000. I'm sure I didn't change any default, so
RedHat back then was configured to start at 500. That changed to 1000
sometimes after, but because all my files, backups, external drives were
already tagged "uid 500" I just kept that uid for newer installs, than
change all my files on all my machines.

One day, I'll change the UID. Changing the ownership of files to match
the new UID isn't too hard. There's just a lot of drives and archives
that will be affected.

Subject: Re: privileged user in RedHat
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 1 Sep 2024 07:29 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Sun, 1 Sep 2024 07:29:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vb153v$1dlt4$7@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<vara4e$5b0$1@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Sep 2024 09:29:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="451ad815162a3f3080e1cdc6c6433f29";
logging-data="1496996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QFWcy8HRSyMQzbR7WMc4/"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:Kc8rWVJo0JmmPuVayT4ZDJ8tIq8=
View all headers

On Thu, 29 Aug 2024 21:17:50 -0500, Grant Taylor wrote:

> On 8/28/24 01:21, Marco Moock wrote:
>>
>> I am aware that it is common that normal (real people) users start with
>> 1000 ongoing, server process users are below. Is there a difference on
>> the IDs or is that just tradition?
>
> I've seen 100, 250, 500, and 1000. The exact number is a convention and
> more or less common depending on the time and the family of the distro
> in question.

I can remember 10-20 years ago it was 500, these days it is typically
1000. That’s just a reflection of the greater variety of packages that
implement services that should be fenced off behind their own user ID,
that users might want to install. I think it’s configurable.

Subject: Re: privileged user in RedHat
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 1 Sep 2024 07:30 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Sun, 1 Sep 2024 07:30:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vb156u$1dlt4$8@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<van8ba$3fst1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Sep 2024 09:30:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="451ad815162a3f3080e1cdc6c6433f29";
logging-data="1496996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SwPTtqIinRVGKf3KHbIic"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:faS9T5oNV5hHDF8hYtn/l0D0pLM=
View all headers

On Wed, 28 Aug 2024 13:22:50 -0000 (UTC), Lew Pitcher wrote:

> UID 0 is the only privileged UID. All the other UIDs start off
> "unprivileged".

Note that Linux also has its “capability” mechanism, to allow you to
selectively assign particular privileges to particular executables and
processes, instead of the traditional *nix all-or-nothing approach.

Subject: Re: privileged user in RedHat
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 1 Sep 2024 07:32 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: privileged user in RedHat
Date: Sun, 1 Sep 2024 07:32:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <vb15a4$1dlt4$9@dont-email.me>
References: <20240828082101.617dadf2@dorfdsl.de>
<u82cnVISw_fySlP7nZ2dnZfqnPSdnZ2d@earthlink.com>
<varans$5b0$2@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 01 Sep 2024 09:32:20 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="451ad815162a3f3080e1cdc6c6433f29";
logging-data="1496996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tRjuc7dX/AWQXomLu3zHo"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:vgmDPNTjMbH6VRmcd88tKvh3bso=
View all headers

On Thu, 29 Aug 2024 21:28:12 -0500, Grant Taylor wrote:

> A simple example is an immutable file which root can't remove without
> disabling the immutability first.

So it takes the root user two steps to modify/delete that file, instead of
one.

A better example would be RBAC setups, where “root” becomes “just another
user”.

Pages:12

rocksolid light 0.9.8
clearnet tor