Türkiye
Az konuş, çok çalış..

Forum

Bildirimler
Tümünü temizle

UID and GID of first user is 1001 - Why?

4 Yazılar
2 Üyeler
0 Likes
1,229 Görüntüleme
(@eznix)
Gönderiler: 5
Active Member
Konu başlatıcı
 

Archman sets up the first user with a UID and GID of 1001. This is not common practice and makes sharing a /home folder impossible in a multiboot setup. I know that is not good practice, but the UID and GID also make sharing data on flash drives and external hard drives more difficult when those devices are formatted with a Linux native filesystem. The sambashare group is given the GID of 1000 and I believe that pushes the first created user to receive a UID and GID of 1001. Can this be changed? Services should not be assigned a UID or GID above 999, there must be a way to assign the sambashare service a lower GID. Thanks.

 
Gönderildi : 06/10/2019 5:22 pm
(@eznix)
Gönderiler: 5
Active Member
Konu başlatıcı
 

I figured out why the first user created during install gets the uid of 1001. The order of execution of Calamares modules has the user created BEFORE the liveuser is removed.

exec:
  - partition
  - mount
  - unpackfs
  - machineid
  - fstab
  - locale
  - keyboard
  - localecfg
  - luksopenswaphookcfg
  - luksbootkeyfile
  - initcpiocfg
  - initcpio
  - users
  - displaymanager
  - networkcfg
  - hwclock
#  - services-systemd
  - services
  - pacmanager
  - removeuser
  - grubcfg
  - bootloader
  - postcfg
  - umount

If you move the removeuser module just before the user module, the first user created should get the correct uid of 1000.

 
Gönderildi : 06/10/2019 7:29 pm
(@eznix)
Gönderiler: 5
Active Member
Konu başlatıcı
 

One last issue to fix is the sambashare group is using the gid of 1000. System groups should not be using a gid above 999. If you can correct this and adjust the Calamares settings.conf, this should take care of the problem. Thanks.

UPDATE:
My solution during install is to use the packages.conf module to remove samba. I placed the exec line for packages.conf just before the users.conf module as to free up the gid 1000 before the user is created. I also edited the users.conf to remove the reference to the group sambashare. This does seem to work. Video is here:

https://youtu.be/FxidCxbV45Q

It would be cleaner to simply remove samba from the archiso build process.

 
Gönderildi : 06/10/2019 8:19 pm
tulliana
(@tulliana)
Gönderiler: 3510
Famed Member Admin
 

We will consider removing samba from the archiso build process or will make the necessary arrangements.

Thank you very much for review and feedback.  🙂

archman.org - Bizi bilen iyi bilir, bilmeyen de kendi gibi bilir.!

 
Gönderildi : 07/10/2019 5:25 am
Paylaş:
Translate »