Just a question


#1

Is not problem if multiple users has same UID? I’m thinking for the 0 UID of the root and for the 0 UID of the toor?

I’m on unstable:

===================
General information

boot environment now (N) … 12.0-CURRENT-up-20171126_122933 NR 2017-11-26
after restart ® … 12.0-CURRENT-up-20171126_122933 NR 2017-11-26
boot loader …………………………………… BSD
type ……………………… BIOS
CPU ………………………………………………………… Intel® Core™ i5-6200U CPU @ 2.30GHz
number of cores ……………… 4
host ……………………………………………………… host
memory ………………………………………………… 8192 MB available, 6126 MB free
OS git branch ……………………………………………………………………………………… trueos-master
OS git revision ………………………………………………………………………………… 67a4643eb
OS kernel build time ………………………………………………………… Wed 2017 Nov 8 18:09:27 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… UNSTABLE
TrueOS version …………………………… TrueOS-Desktop-201711140940
uptime ………………………………………………… 1:49
user …………………………………………………… root

More (TrueOS Desktop):

desktop environment …… Lumina
sound card driver ………… pcm0: <Realtek ALC255 (Internal Analog)> (play/rec) default
wireless driver ……………… iwm0
X11 drivers ………………………… nvidia-modeset_drv.so intel_drv.so

#2

personally i would not do that. same UID would mean the ability to read everyone’s ~/HOME directories.

The other solution, create a “family/group” account and have everyone use that


#3

Equal User ID numbers have equal passwords.

Doubling the root-account privileges doubles the risk.

Use “sudo” or “doas” or “su”. The first 2 only require Your password to be entered. You don’t want to enter the root-passwort too often. You simply don’t.


#4

root and toor are historically “the same user”, toor usually has no password, so you can’t login as user “toor”.
The historical reason for toor is “in case you forget the root password”.
What that means is you have to login as root, set a password for the user toor. Then if you forget what the root password is, you login as toor, then reset the root password.


#5

Thank you for your answers! I asked because the Lynis gave the next warnings:

“Multiple users with UID 0 found in passwd file”
“Multiple accounts found with same UID”

“real_user[]=root,0
real_user[]=toor,0
real_user[]=user,1001” (I’m)


#6

No problem. It’s what we call a “false positive”.


#7

I still have to learn :slight_smile:

Thank’s again! :slight_smile:


#8