Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 42 |
Nodes: | 6 (0 / 6) |
Uptime: | 01:45:18 |
Calls: | 220 |
Calls today: | 1 |
Files: | 824 |
Messages: | 121,543 |
Posted today: | 6 |
On Sun, 1 Sep 2024 23:42:09 -0000 (UTC), Lawrence D'Oliveiro wrote:
On Sun, 1 Sep 2024 11:47:34 -0500, Grant Taylor wrote:
On 9/1/24 02:32, Lawrence D'Oliveiro wrote:
So it takes the root user two steps to modify/delete that file,
instead of one.
Sometimes that extra step is all that's needed to prevent processes
from falling off the rails.
To guard against accidents, yes.
To guard against malice, no.
I forget which distro it was but if you ran as root the wallpaper turned
to a bright red field with cartoon style bombs with lit fuses. One
picture...
To guard against accidents, yes.
To guard against malice, no.
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?
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".
(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 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.
Oh, Raspberry Pi's ... 'sudo' often requires NO
password. NOT great.
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?
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.
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.
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?
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?
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.
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.
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.
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.
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
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?
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.
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.
Wow. It was always 1000 on most systems I ever came in contact with.
This change might cause problems when migrating to Red Hat EnterpriseLinux 7 with existing users having UIDs and GIDs between 500 and 999.
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?
Root has access to EVERYTHING
(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.
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.
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.
Oh, Raspberry Pi's ... 'sudo' often requires NO password. NOT great.
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).
IMHO "privileged" vs "unprivileged" is really a relative thing in that
the privileged user has more privileges than an unprivileged user.
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.
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...System_Management-Changes-to-system-accounts
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-
This change might cause problems when migrating to Red Hat EnterpriseLinux 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