You are not logged in.

#1 2008-03-24 18:19:25

stanger
Member
Registered: 2006-05-19
Posts: 15

larch scripts: multi-user mode

hi,
I built live cd using great larch scripts. I need small help. Where can i set that system will be single/multi user? I have started to gdm, but i need to login as non-root user.

thank

Offline

#2 2008-03-24 19:12:27

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: larch scripts: multi-user mode

There are two possible ways:
- Set up the user and all the necessary files in the overlay folder of your larch profile.
- Write a small script which adds a user on the first start of the system. Add descent defaults in /etc/skel

Tell me which way you'd prefer and I tell you more about it smile


Haven't been here in a while. Still rocking Arch. smile

Offline

#3 2008-03-25 16:07:58

stanger
Member
Registered: 2006-05-19
Posts: 15

Re: larch scripts: multi-user mode

thank you for help,

I think that way via scripts is better smile

btw, if I add user in running live system,  why I cant logout as root and login as user?

Offline

#4 2008-03-25 17:33:04

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: larch scripts: multi-user mode

stanger wrote:

thank you for help,

I think that way via scripts is better :)

Do you need help on this? Please try it yourself and ask if you have specific questions.

stanger wrote:

btw, if I add user in running live system,  why I cant logout as root and login as user?

The /etc/inittab file run a script on the startup which logs in user root. The script is also executed if you log out root - it just logs in as root again and starts X. Just change /etc/inittab:

c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/loginroot

to

c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux

Haven't been here in a while. Still rocking Arch. smile

Offline

Board footer

Powered by FluxBB