Click to See Complete Forum and Search --> : Getting a user ID


7
12-20-2000, 07:37 PM
Hello

Im making a boot/root disk and I just wanted to clear some stuff up. At the moment I have init just running a bash shell instead of a getty + login. Im having wierd problems not being able to find files.. but anyway my question is,

Do I need to run a getty and login to get a UID? or does bash just inheret init's(does init run as root?)?

Tia!

ndogg
12-20-2000, 09:07 PM
Shouldn't have to, just su <name of user>

------------------
Too much Sun can give you cancer. Windows break too easily.
Apples/Macintoshes can rot. BSD... sounds too much like LSD.
Penguins are the only animals sophisticated enough to wear a
tuxedo.


Linux, the only one with the Penguin.


http://ndogg.n3.net

7
12-21-2000, 09:03 AM
What I mean is can i live without the login crap,

My inittab looks like;

si::sysinit:/bin/bash

So as soon as I boot I just get a shell. I dont have a getty, login, passwd or group so its like no users are installed not even an entry for root (root:xxx:0:0:root:/root:/bin/bash).

Is this ok?

ndogg
12-21-2000, 10:56 AM
This automatically logs you in as root, even if the user doesn't exist, so no, this isn't such a hot idea, it makes your computer very vulnerable.

------------------
Too much Sun can give you cancer. Windows break too easily.
Apples/Macintoshes can rot. BSD... sounds too much like LSD.
Penguins are the only animals sophisticated enough to wear a
tuxedo.


Linux, the only one with the Penguin.


http://ndogg.n3.net