LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2006, 04:05 PM   #1
krmane
Member
 
Registered: May 2006
Posts: 49

Rep: Reputation: 15
how can I customise my login to avoid prompt for user and password?


hello,
I am creating a customised version of slackware to work on my single board computer for a special device that will be like a talking file reader.
I want to have the system login by default as root without prompting the user and also use my customised menu driven program instead of the bash shell, or any shell for that matter.
can any one suggest how I can do that?
 
Old 07-12-2006, 05:39 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
To get your root logged in try this.

edit /etc/rc.d/rc.local

and add the following lines:

echo "auto login for username"
cd /root
u - root
 
Old 07-12-2006, 06:03 PM   #3
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
Quote:
Originally Posted by krmane
hello,
I am creating a customised version of slackware to work on my single board computer for a special device that will be like a talking file reader.
I want to have the system login by default as root without prompting the user and also use my customised menu driven program instead of the bash shell, or any shell for that matter.
can any one suggest how I can do that?
Method #2: Have a look at /etc/inittab. I'd also recommend reading the "man 5 inittab". You will need to spawn your menu program on a tty. I'm not sure of the best way for you to do that, but something as simple as this might work:

Code:
c1:12345:respawn:/sbin/agetty -l /usr/local/bin/menu 38400 tty1 linux
 
Old 07-12-2006, 07:11 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Quote:
Originally Posted by krmane
I want to have the system login by default as root
Not to be harsh but this is a poor idea. Root is not intended to run like a regular user, and instead should only be used in limited, infrequent situations (such as installing new packages or recompiling the kernel)

By running under root as a matter of routine, you are opening the door to all kinds of security risks, plus I would be willing to bet that it's only a matter of time before you accidentally trash your system - all it takes is one minor typo or one accidental mouse click and your system can be rendered unusable, with a full reinstall being your only option.

Again, I don't want to be harsh but you really don't want to do this. Regular user accounts exist for a reason - use them.
 
Old 07-12-2006, 09:52 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Yeah, I see no reason for this to be run as root.

I don't even see any reason for the system to forgo logins. You could spawn the menu program from inittab on tty1, and then leave tty2 for normal logins, or something along those lines.
 
Old 07-13-2006, 10:28 AM   #6
krmane
Member
 
Registered: May 2006
Posts: 49

Original Poster
Rep: Reputation: 15
how to change from bash to a custom program still not clear.

hello,
I still can't figure out how I can change the system to use my own custom program instead of bash?
it is actually a menu system and I don't want bash to run because my users are not expected to type any thing.
the device I am developing is having 4 arrows, an escape key and enter key.
 
Old 07-13-2006, 11:35 AM   #7
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
This is a bit dated, but it will give you an idea. It also describes how to start processes automatically on certain VC's.

"Make Your Virtual Console Log In Automatically"

http://linuxgazette.net/issue69/henderson.html

I would recommend that you make backups of any system files you change so you can go back to them just in case you mess up your system. Unless you really know what your doing, I suspect this will be a trial and error process. And has been mentioned already, accessing the system without user credentials verification will break your system security.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
add a user with password without prompt grendel-IT Linux - Software 7 09-27-2006 03:07 PM
add user prompt for password on login redir Linux - Newbie 2 02-28-2005 12:01 PM
no password prompt after root login taboo Linux - General 1 12-22-2003 02:01 PM
Unable to login (no password prompt) T4urus Linux - General 1 12-21-2003 02:47 PM
Login password prompt stops working? rickbb Linux - General 4 09-27-2000 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration