LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   No Password Required (https://www.linuxquestions.org/questions/debian-26/no-password-required-938762/)

Zssfssz 04-08-2012 11:57 AM

No Password Required
 
Making a flavorfull LiveCD and want the user to be able to just be able to type in the username (there will be over 5 different logins that the user may wish to login as) without the need for a password (like minix, put cd in tray, boot, at login you just need to type root it won't ask for a password). How would I go about this?

Also if I can change "login:" to something else that would be fantastic, help?

business_kid 04-08-2012 12:03 PM

You may be able to hack the agetty lines in /etc/inittab. Try adding

--nologin

Zssfssz 04-08-2012 12:07 PM

Won't that make it so it goes straight to one user? The logins are special, if another thread of mine works, each on has a interactive interpreter as the shell. For example I could login as ruby and the shell would be irb. I NEED separate logins!

Dutch Master 04-08-2012 10:24 PM

Minix is the OS Linus wrote his kernel for in the first place, and as it's still under active development, and intended as a learn-to-make-your-own-OS-OS, have a proper study of it: http://www.minix3.org/ :)

Zssfssz 04-08-2012 10:37 PM

I use minix! But it has:
Bad memory handleing (python is rather fat)
It doesn't support python or ruby (anyway!)

I just used it as an example! When you finish installing you can just type root it wont ask for a password until you set one.

Dutch Master 04-08-2012 10:44 PM

Well, what keeps you from porting Python and/or Ruby to Minix yourself, and solving the bad memory handling as well? I'm absolutely sure the Minix dev's would welcome your input ;)

But, you didn't (fully) understand my reply: if you want a setup similar to a particular OS, study that OS to find out how they've done it, then copy their solution into your OS of choice. You've already installed Minix, so the documentation is there already :p ;)

Zssfssz 04-08-2012 11:23 PM

Well, I'm pretty sure that someone who:
Has Failed Building LFS 9 Times,
Can't Get Their Head Around Writting Even A Simple Kernel (OsDEV)
Can't Setup A BSD
Still Has To Go To School
Hasn't Made A Program More Than 5 Pages Long

Can Do All That. (Sorry For The Snarkness)

Also I'm pretty sure that is seen as a deficiency not a feature.
Nor would their be much documentation on the topic.
Again it's an example, I want to do that with .conf not .c. (For one thing with me it would be .cpp or .f90!).
I know it can be done (Ubuntu Live) but need help!
If not I'll just make a default password :( ...

widget 04-09-2012 02:38 AM

I do not know what you plan to use to build this Live ISO image with but don't think you can do it with anything but Debians Live Build.

Having that many users options is going to be a problem all of its own. Complicating that with a no user password under a system designed specifically to be multi user is going to be a huge challenge.

While it may well be possible I would not complicate things until you got a good build for the many user options.

A simple password would be the easiest thing to do.

Ubuntu Live may be a possibility due to the fact that Ubuntu has already compromised basic Linux security anyway. That may be an option for you too.


All times are GMT -5. The time now is 01:08 AM.