# Example of how to put a getty on a serial line (for a terminal)
#
#ttyS0::respawn:/sbin/getty -L ttyS0 9600 vt100
#ttyS1::respawn:/sbin/getty -L ttyS1 9600 vt100

This would be the way to construct your inittab. Just don't use agetty for logining in and you'll start out with a bash (or whatever you use) shell.

12-23-2006

Frobozz

Quote:

Originally Posted by nitinmhetre

can anybody suggest me how to login in linux box without entering username and password.

What setting must be done for this task.I dont want to enter any username including "root" .

This isn't a good idea. The biggest reason to use Linux is for security and by doing this you'll effectively kill your security. Might as well switch to Windows. :P

12-23-2006

CornedBee

If you make the local terminals autologin, you only kill local security, and as they say: a computer you have physical access to is never secure.

12-23-2006

dwks

Why do you want to do this? Most GUI logins have a setting that lists all users, so you don't have to remember a username; and if you have trouble remembering a password, pick one like "asdf".

12-23-2006

CornedBee

I would claim that on a private computer, a bad password is a worse security risk than automatic login from the local console.

12-23-2006

Kennedy

Quote:

Originally Posted by dwks

Why do you want to do this? Most GUI logins have a setting that lists all users, so you don't have to remember a username; and if you have trouble remembering a password, pick one like "asdf".

For example, I have an embedded system that will be used all over. There are only a limited number of commands that will be available for use (anyway), however, there will be countless people that need to access these commands. These people have NO experience with Linux. Requiring them to even use a user name to log into a command line shell would be impracticable. In fact, this was the FIRST thing that the observer said to me when I showed him that they would need read the screen, which said "Welcome to the GNU/Linux <embedded system name>. Type root and press enter to log in." The guy told me that this was a bad idea and that there would be nobody able to use this.

This particular system will be extremely secure just on the basis that there are so few commands and no file system (this machine will boot from kernel and INITRD only).

Hey Guys,
Cooool Down,I know that giving permission to login as root to anyone will be dangerous for my system.I was just wanted to know whether it is possible or not.
by the way i am trying to this stuff ,because I want my application to start immediately as soon as booting finishes. I am going to use different login account.
Please tell me what r the ways to do this.I want my C application program to run immedialy after booting the system immediatly as diiferent user other than "root".my C application uses xine player to play the files.
Is this possible whatever i am trying to do?

Thank You,
Nitin

12-30-2006

dwks

You could put something in each user's ~/.bashrc or the configuration file for whatever shell you're using is. Your configuration file probably already has some lines that execute only on login shells -- you could put your program in there.