login directly in linux without username,passwor

This is a discussion on login directly in linux without username,passwor within the Tech Board forums, part of the Community Boards category; hi, can anybody suggest me how to login in linux box without entering username and password. What setting must be ...

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    28

    Smile login directly in linux without username,passwor

    hi,
    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" .

    I just want to skip the login page while booting linux.please give me steps to perform this task.
    Also tell me is it possble,whatever i am trying to do?

    Thanks in Advance
    Nitin

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    It's possible - many live CDs do it. No idea how, though. Try Google.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    65
    have someone write you a shell script to auto log you in, as far as it beging root I would say. Thats a bad idea root should be left to the jedi.
    You rant and rave about it, but at the end of the day, it doesn't matter if people use it as long as you don't see.
    People are free to read the arguments, but if the only way for you to discover gravity is by jumping off a cliff, then that is what you're going to have to experience for yourself.
    Eventually, this "fast and loose" approach of yours will bite you one too many times, then you'll figure out the correct way to do things. - Salem

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    GNOME has an auto-login feature.

    Administration -> Login Window -> Security -> Allow Auto-login (select user)

  5. #5
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    From the Slackware Install disk:

    Code:
    # /etc/inittab
    # Boot-time system configuration/initialization script.
    # This is run first except when booting in single-user mode.
    ::sysinit:/etc/rc.d/rc.S
    
    # Login /bin/sh invocations on selected ttys.
    #
    # Start a shell on the console
    ::respawn:-/bin/sh
    # Start an "askfirst" shell on tty2 and tty3
    tty2::askfirst:-/bin/sh
    tty3::askfirst:-/bin/sh
    
    # /sbin/getty invocations for selected ttys.
    #
    #tty1::respawn:/sbin/getty 38400 tty1
    #tty2::respawn:/sbin/getty 38400 tty2
    
    # 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.

  6. #6
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    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

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    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.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    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".
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    I would claim that on a private computer, a bad password is a worse security risk than automatic login from the local console.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #10
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    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).

  11. #11
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Auto-login for a guest account system? Sounds harmless enough. Especially considering the users sound too incapable of mischief anyways.

  12. #12
    Registered User
    Join Date
    Dec 2006
    Posts
    28

    Smile

    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

  13. #13
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    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.

    Alternatively, perhaps you could use a scheduling system like cron. http://en.wikipedia.org/wiki/Cron
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  2. Linux
    By cerin in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 02-10-2005, 08:41 PM
  3. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 04:15 AM
  4. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 10:36 AM
  5. Linux? Windows Xp?
    By VooDoo in forum Linux Programming
    Replies: 15
    Last Post: 07-31-2002, 08:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21