So about two days ago, I wanted to build a custom artix ISO. After building it, I found out that it auto creates a user called 'artix'. I wanted to completely remove this user. Is there a way to do so? I had searched a bit on the internet for a solution but couldn't find one. Any help would be highly appreciated!
Get /usr/bin/artix-live from artix-live-base and copy it in ~/artools-workspace/iso-profiles/custom-profile/live-overlay/usr/bin, or wherever is your custom profile stored. Edit configure_user() to your needs. Make sure to leave at least one active account (e.g. root), or you won't be able to login.
@Idlidev, correction/addition: artix-live is used for setting up the live user in the ISO. The account's creation is handled by /usr/lib/sysusers.d/live-artix.conf (also part of artix-live-base), which you can create in the live-overlay directory and tweak.
Hi nous!
I followed your instructions and was successful in removing the artix user.
The only concern that remains is that AUTOLOGIN=true isn't automatically logging in my custom user.
I bet your custom user isn't part of the autologin group. This is the job of /usr/bin/artix-live, IIRC the default is LIVEUSER=artix, near the bottom of the script.
Hi nous,
I edited root-overlay/etc/group and added the liveuser to autologin group, I also edit artix-live and set it to my custom username.
Autologin still doesn't function.
This is the line I added:
autologin:x:967:liveuser
No, you don't have to (and mustn't) touch /etc/group in overlays. Only /usr/lib/sysusers.d/live-artix.conf and /usr/bin/artix-live to match.
After you boot, is you live user member of the autologin group?
I removed the group file in overlays, copied /usr/lib/sysusers.d/live-artix to root-overlay/usr/lib/sysusers.d/live-artix.conf.
Added the following line:
m liveuser autologin
my user did get added to autologin group , but still no sign of autologin.
# artix live user
u liveuser 1000 - /home/liveuser /bin/zsh
m liveuser video
m liveuser power
m liveuser cdrom
m liveuser network
m liveuser lp
m liveuser scanner
m liveuser wheel
m liveuser log
m liveuser users
m liveuser autologin
This is the live-artix.conf file in the overlay.
Is autologin group created? What's your login manager?
I did change LIVEUSER=artix in /usr/bin/artix-live.
The autologin group is created, yes. I am not using any display managers.
This is the first thing you should have mentioned. You've wasted much of my time...
Oh..I'm extremely sorry. I assumed that setting up autologin with agetty is what AUTOLOGIN=true attempts.
Copy your /etc/conf.d/agetty.tty1 to live-overlay and edit the agetty_options line to "-J -a liveuser". You can autologin thus in as many TTYs as you like.
Thank you so much nous, once again, very sorry for wasting your time.
It's worth mentioning that the agetty autologin doesn't need special group membership.