User name and password change?
#1
This may sound like an RTFM question, but the post install instructions say to go to settings->user, then click on the one user and change the password.

Problem is that there's no user section in settings, at least in Arch Plasma, though it does have a lockscreen pin setting, but that doesn't work. There are instructions for changing the password via terminal, so I'll prolly use that, but I'd kind like to change the user name as well, since using the default prolly isn't the most secure thing to do.

So, for someone that's never need to change, add or modify a user post install, how does one do that, or rather, how does one do that here, or is it just the same as any other Linux system (I figure there's plenty of instructions online for that)?
  Reply
#2
Use the passwd command to change password and usermod command to change username:
https://man.archlinux.org/man/passwd.1.en
https://wiki.archlinux.org/title/users_and_groups

With the arch installs with default user "alarm" if you want to change the username to "bill" you need to either plug in a usb keyboard or headphone serial port cable, use ctrl+alt+f2 to login to terminal as root. Then you can run the following commands to change the username.

Code:
pkill -KILL -u alarm
usermod -d /home/bill -m alarm
usermod -l bill alarm
reboot
  Reply
#3
(07-04-2022, 07:11 PM)billfleming11 Wrote: Use the passwd command to change password and usermod command to change username:
https://man.archlinux.org/man/passwd.1.en
https://wiki.archlinux.org/title/users_and_groups

With the arch installs with default user "alarm" if you want to change the username to "bill" you need to either plug in a usb keyboard or headphone serial port cable, use ctrl+alt+f2 to login to terminal as root. Then you can run the following commands to change the username.

Code:
pkill -KILL -u alarm
usermod -d /home/bill -m alarm
usermod -l bill alarm
reboot

it worked for me from the users section in settings today in phosh

ezik
  Reply
#4
I am somehow not able to set a new username under arch/sxmo.

What I did so far:
Code:
#created a new user:
sudo useradd --create-home yourusername
sudo passwd yourpassword

#added user to sudoers file:
sudo usermod -aG wheel yourusername


then plugged in an usb keyboard, hit
Quote:ctrl+alt+f2

 login with new user, and then as you wrote:

Code:
pkill -KILL -u alarm

but it automatically starts again a session with user alarm and I can not go further since:
Code:
usermod: user alarm is currently used by process 35092

https://todo.sr.ht/~mil/sxmo-tickets/523
any hints very welcome
  Reply
#5
Phosh automatically starts with user 1000 (alarm in your case)

This is governed bu the phosh.service from systemd:  /etc/systemd/system/graphical.target.wants/phosh.service

Code:
[Service]
Environment=XDG_CURRENT_DESKTOP=Phosh:GNOME
Environment=XDG_SESSION_DESKTOP=phosh
Environment=XDG_SESSION_TYPE=wayland
ExecStart=/usr/bin/phosh
TimeoutStartSec=30
User=1000
PAMName=login
WorkingDirectory=~
Restart=on-failure
RestartSec=5s

of course if you change this then every time phosh is updated it will revert to User=1000.

You need to change the username and home directory for user 1000 (alarm) as above  Smile
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Change DNS ionmich 1 1,108 07-01-2023, 09:41 PM
Last Post: shulamy
  No keyboard on Arch Plasma when entering password on document Chief 0 1,066 12-03-2022, 08:35 PM
Last Post: Chief
  No keyboard on some document password field Chief 0 904 11-01-2022, 10:01 AM
Last Post: Chief
  Change SIM pin in plasma mobile firefox-58 0 1,539 06-29-2021, 09:29 AM
Last Post: firefox-58

Forum Jump:


Users browsing this thread: 1 Guest(s)