You are not logged in.

#1 2020-12-01 16:49

Rademes
Member
From: Latvia
Registered: 2015-12-13
Posts: 636

[Fixed]Strange group ID for main system user (1000)

Good day!
I have plugged in removable USB drive, and was very surprized. The entire disk and all folders in it now belongs to User:denis (main system user) and Group:scanner.
https://drive.google.com/file/d/1AjZ8T- … sp=sharing
https://drive.google.com/file/d/1QTEyey … sp=sharing
But I clearly remember, that I have set permissions on Linux Mint using command sudo chown -R 1000:1000 . . So the user and the group was main system users group.
Then I looked at /cat/etc/passwd and /cat/etc/group, and yes, group ID of main system user (denis in my case) is not 1000 as it was in all other Linuxes I have used, but 1003. But Group ID 1000 now belongs to scanner... why?
https://drive.google.com/file/d/1Wqzfy3 … sp=sharing
https://drive.google.com/file/d/1I3YY1H … sp=sharing
Now I have to change file and folder permissions to all my removable disks, to make proper main user ownership.

Last edited by Rademes (2020-12-17 17:38)


Before asking for help please read this topic: https://www.q4os.org/forum/viewtopic.php?id=3502   If you have problems with WiFi network, try to install the Network Manager using Q4OS Software Centre.

Offline

#2 2020-12-01 19:34

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: [Fixed]Strange group ID for main system user (1000)

Rademes wrote:

Good day!
I have plugged in removable USB drive, and was very surprized. The entire disk and all folders in it now belongs to User:denis (main system user) and Group:scanner.
https://drive.google.com/file/d/1AjZ8T- … sp=sharing
https://drive.google.com/file/d/1QTEyey … sp=sharing
But I clearly remember, that I have set permissions on Linux Mint using command sudo chown -R 1000:1000 . . So the user and the group was main system users group.
Then I looked at /cat/etc/passwd and /cat/etc/group, and yes, group ID of main system user (denis in my case) is not 1000 as it was in all other Linuxes I have used, but 1003. But Group ID 1000 now belongs to scanner... why?
https://drive.google.com/file/d/1Wqzfy3 … sp=sharing
https://drive.google.com/file/d/1I3YY1H … sp=sharing
Now I have to change file and folder permissions to all my removable disks, to make proper main user ownership.

Please, use imgur https://imgur.com/ or postimages https://postimages.org/ to share your screenshots, Google Drive takes forever.

What's the output of

getent group | grep denis

Do you get something similar to this:
8K1D1KU.png
If so, then you probably don't have anything to worry about.
The scanner group is usually the group for sane(Scanner Access Now Easy)
http://www.sane-project.org/intro.html
However, you could change the group with chgrp like so

sudo chgrp denis -R /media/denis/TRANSCEND

Hope this helps! smile

Last edited by Tolkem (2020-12-01 19:43)

Offline

#3 2020-12-01 20:26

Rademes
Member
From: Latvia
Registered: 2015-12-13
Posts: 636

Re: [Fixed]Strange group ID for main system user (1000)

I still wonder, why in Q4OS main system user has UID 1000, but main system user group has GID 1003.
On all other Linuxes I have tested the main user UID and GID are the same - 1000.
Output in attachment.

Currently I am noob at user and group management. I know only basics...I think...

Yes, today Google freezes a lot...

Last edited by Rademes (2020-12-01 20:29)


Attachments:
png getent_group.png, Size: 27.14 KiB, Downloads: 335

Before asking for help please read this topic: https://www.q4os.org/forum/viewtopic.php?id=3502   If you have problems with WiFi network, try to install the Network Manager using Q4OS Software Centre.

Offline

#4 2020-12-01 20:51

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: [Fixed]Strange group ID for main system user (1000)

Rademes wrote:

I still wonder, why in Q4OS main system user has UID 1000, but main system user group has GID 1003.
On all other Linuxes I have tested the main user UID and GID are the same - 1000.
Output in attachment.

Currently I am noob at user and group management. I know only basics...I think...

Yes, today Google freezes a lot...

I don't have a clear answer for that but here http://landoflinux.com/linux_adding_users_groups.html here https://www.redhat.com/sysadmin/user-account-gid-uid here https://askubuntu.com/questions/1271969 … group-also here https://developer.ibm.com/tutorials/l-lpic1-107-1/ and here https://wiki.archlinux.org/index.php/users_and_groups there's quite a lot of some good information on that. However, if you look into some of those links, you'll notice that GID 1003 does appear in the examples and nothing's said about it, so I think it is just an "arbitrary" Linux kind of thing (here I get UID 1000 and GID 1001) and again, you probably don't have anything to worry about.  smile

Last edited by Tolkem (2020-12-01 20:54)

Offline

#5 2020-12-02 06:23

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,300

Re: [Fixed]Strange group ID for main system user (1000)

I seem to recall a couple of distros - may have been PCLOS - used 500 as the user and group ID.

Offline

#6 2020-12-02 17:03

crosscourt
Member
Registered: 2017-05-07
Posts: 1,805
Website

Re: [Fixed]Strange group ID for main system user (1000)

You are correct bin, PCLinuxOS does use 500.


Q4OS Aquarius 5.1 KDE   Lenovo Thinkcentre M900 Tiny i5-6500T, 16gb ddr4 ram, 512gb m.2 ssd

Offline

#7 2020-12-04 09:32

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,248
Website

Re: [Fixed]Strange group ID for main system user (1000)

Since we investigated this issue, we can confirm that the live installer may create a few system groups with GID > 1000. It's not quite accurate, however it cannot do any harm. The issue comes from the Calamares live installer. We are going to make a correction to the next live media release.

Offline

#8 2020-12-09 09:45

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,248
Website

Re: [Fixed]Strange group ID for main system user (1000)

The issue is now fixed within the new ".r5" live media release.

Offline

Board footer

Powered by FluxBB