Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-12-2006, 04:05 PM
|
#1
|
Member
Registered: May 2006
Posts: 49
Rep:
|
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?
|
|
|
07-12-2006, 05:39 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098
Rep:
|
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
|
|
|
07-12-2006, 06:03 PM
|
#3
|
Member
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111
Rep:
|
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
|
|
|
07-12-2006, 07:11 PM
|
#4
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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.
|
|
|
07-12-2006, 09:52 PM
|
#5
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
07-13-2006, 10:28 AM
|
#6
|
Member
Registered: May 2006
Posts: 49
Original Poster
Rep:
|
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.
|
|
|
07-13-2006, 11:35 AM
|
#7
|
Senior Member
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|