OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Adding a user
geophile
post Jul 17 2018, 11:10 AM
Post #1





Group: Members
Posts: 12
Joined: 11-July 18
Member No.: 825,937



I'm having some trouble adding a new user. I somehow added one user successfully, using the Users and Groups tool under Accessories. The new user's id is 100001 (1 greater than that of the gemini user), and this user shows up on the login screen.

Then I added a second user. This one has an id below 100000 and does not show up on the login screen.

I don't know what I did differently the two times. How do I add a user who can login?
Go to the top of the page
 
+Quote Post
Eric BF
post Jul 17 2018, 02:10 PM
Post #2





Group: Members
Posts: 77
Joined: 25-June 18
Member No.: 824,997



QUOTE(geophile @ Jul 17 2018, 07:10 PM) *
I'm having some trouble adding a new user. I somehow added one user successfully, using the Users and Groups tool under Accessories. The new user's id is 100001 (1 greater than that of the gemini user), and this user shows up on the login screen.

Then I added a second user. This one has an id below 100000 and does not show up on the login screen.

I don't know what I did differently the two times. How do I add a user who can login?

Very strange. I just tried creating a new account, having previously created one, and the new account was created with uid 100002, as expected. Not sure what you might have done to get something different. Having said this, I added the new account using the adduser command from a shell window, not using the accesories tool.

CODE
sudo adduser NEWUSER


If you want to fix things manually, you can adjust the uid by using sudo vipw and then do a

CODE
sudo chown -R 100002 /home/NEWUSER


where NEWUSER is the login name of the new account. The uid is the third entry (colon separated) in the passwd file. You might need to adjust the gid (group id) as well, using vigr and adding the gid to the chown command (see man page).
Go to the top of the page
 
+Quote Post
geophile
post Jul 17 2018, 07:50 PM
Post #3





Group: Members
Posts: 12
Joined: 11-July 18
Member No.: 825,937



The Users and Groups tool does seem broken.

I also tried "useradd" which didn't work right. I forget, it's "adduser", which worked fine.
Go to the top of the page
 
+Quote Post
speculatrix
post Aug 14 2018, 04:04 AM
Post #4





Group: Admin
Posts: 3,693
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



I added a new user, and used the same UID and GID that I use on all my machines, but it doesn't show up on the login screen. I added all the same groups as the gemini user

CODE
$ id -a
uid=1000(paulm) gid=1000(paulm) groups=1000(paulm),27(sudo),29(audio),44(video),50(staff),1002(aid_system),1003(aid_graphics),1004(aid_input),1005(aid_audio),3001(aid_net_bt_admin),3002(aid_net_bt),3003(aid_inet),3004(aid_inet_raw),3005(aid_inet_admin),100000(gemini)


please can anyone tell me where the settings are to make users visible?

thanks

----

edit, I found it, it's /etc/sddm.conf

I backed it up as sddm.conf.orig, made a simple change, logged in as "gemini" and logged out and now my username appears

CODE
$ diff sddm.conf*
66,67c66
< #MaximumUid=200000
< MaximumUid=9999
---
> MaximumUid=200000
70,71c69
< #MinimumUid=100000
< MinimumUid=1000
---
> MinimumUid=100000
Go to the top of the page
 
+Quote Post
Adam Boardman
post Aug 14 2018, 05:47 AM
Post #5





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



The reason was to avoid clashing with ID's used by Android, if you use the 'adduser' command then its handled for you:
https://github.com/gemian/gemian-multistrap...tc/adduser.conf
Go to the top of the page
 
+Quote Post
speculatrix
post Aug 14 2018, 01:21 PM
Post #6





Group: Admin
Posts: 3,693
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



QUOTE(Adam Boardman @ Aug 14 2018, 02:47 PM) *
The reason was to avoid clashing with ID's used by Android, if you use the 'adduser' command then its handled for you:
https://github.com/gemian/gemian-multistrap...tc/adduser.conf


ah, I see. thanks

given my device is encrypted, and part of the SD card storage made adoptable, the only thing I can access in Android is the FAT32 partition in the memory card, I don't think it will be an issue. If it does become one, it'll be fairly straight-forward to renumber the account in the debian partition.
Go to the top of the page
 
+Quote Post
Kero
post Aug 15 2018, 01:55 AM
Post #7





Group: Members
Posts: 20
Joined: 24-July 18
From: the Netherlands
Member No.: 826,713



My SD card is formatted with ext4 has a user 1000 which is shared with other Linux machines.

It also has group 1000, which *is* taken by aic-something-somethng. and so far that has not caused any problems.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th November 2019 - 04:40 AM