Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] How to get rid of the 'artix' user when building a custom ISO? (Read 1220 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] How to get rid of the 'artix' user when building a custom ISO?

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!

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #1
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.

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #2
@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.

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #3
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.
 

 

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #4
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.

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #5
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

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #6
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?

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #7
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.

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #8
Code: [Select]
# 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.

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #9
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.
This is the job of /usr/bin/artix-live, IIRC the default is LIVEUSER=artix, near the bottom of the script.
Is autologin group created? What's your login manager?

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #10
I did change LIVEUSER=artix in /usr/bin/artix-live.
The autologin group is created, yes. I am not using any display managers.


Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #12
Oh..I'm extremely sorry. I assumed that setting up autologin with agetty is what AUTOLOGIN=true attempts.

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #13
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.

Re: How to get rid of the 'artix' user when building a custom ISO?

Reply #14
Thank you so much nous, once again, very sorry for wasting your time.