Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, I have recently installed Debian on a low end PPC machine. I have changed the root password but when I login via putty using telnet or SSH I do ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    5

    Terminal Login takes me straight to root prompt without auth!

    Hi,

    I have recently installed Debian on a low end PPC machine. I have changed the root password but when I login via putty using telnet or SSH I do not get prompted for a login; instead I see the root prompt immediately.

    I created another user but still no auth.

    Obviously this is not a good way to run a linux box

    If i type the following I do get the correct authentication:

    login

    How can I change the login process so a login/pass prompt appears straight away?

    I have search a lot of forums but to no avail....

    Thanks in advance.

    Paul.

  2. #2
    Just Joined!
    Join Date
    Oct 2006
    Posts
    5

    Default Debian

    My installation is pretty much the default debian installation. I have made a few minor typical modifcations e.g. network setup, samba service, proftpd.

    From the very first day I installed Debian the root prompt has been present at remote terminal login without auth.

    Any ideas??? Even some insight as to how a remote telnet session is processed by *nix machine would be usefull.

    Thanks,

    PC.

  3. #3
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    please give the output of the following comand

    ps ax | grep getty

    no logout and login just run the command

  4. #4
    Just Joined!
    Join Date
    Oct 2006
    Posts
    5

    No getty - inittab configuration?

    Yip no getty process. Never came across this program till now. As it handles logins I am assuming an entry would need to be added to inittab as it is not present.

    What do I need to add to it?

    BTY any ideas why I cannot find this post on the main Debian forum listing??

    Here is my inittab file:

    Code:
    # /etc/inittab: init(8) configuration.
    # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
    
    # The default runlevel.
    id:2:initdefault:
    
    # Boot-time system configuration/initialization script.
    # This is run first except when booting in emergency (-b) mode.
    # /etc/inittab: init(8) configuration.
    # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
    
    # The default runlevel.
    id:2:initdefault:
    
    # Boot-time system configuration/initialization script.
    # This is run first except when booting in emergency (-b) mode.
    si::sysinit:/etc/init.d/rcS
    
    # What to do in single-user mode.
    ~~:S:wait:/sbin/sulogin
    
    # /etc/init.d executes the S and K scripts upon change
    # of runlevel.
    #
    # Runlevel 0 is halt.
    # Runlevel 1 is single-user.
    # Runlevels 2-5 are multi-user.
    # Runlevel 6 is reboot.
    
    l0:0:wait:/etc/init.d/rc 0
    l1:1:wait:/etc/init.d/rc 1
    l2:2:wait:/etc/init.d/rc 2
    l3:3:wait:/etc/init.d/rc 3
    l4:4:wait:/etc/init.d/rc 4
    l5:5:wait:/etc/init.d/rc 5
    l6:6:wait:/etc/init.d/rc 6
    # Normally not reached, but fallthrough in case of emergency.
    z6:6:respawn:/sbin/sulogin
    
    # What to do when CTRL-ALT-DEL is pressed.
    ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
    
    # Action on special keypress (ALT-UpArrow).
    #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
    
    # What to do when the power fails/returns.
    pf::powerwait:/etc/init.d/powerfail start
    pn::powerfailnow:/etc/init.d/powerfail now
    po::powerokwait:/etc/init.d/powerfail stop
    
    # /sbin/getty invocations for the runlevels.
    #
    # The "id" field MUST be the same as the last
    # characters of the device (after "tty").
    #
    # Format:
    #  <id>:<runlevels>:<action>:<process>
    #
    # Note that on most Debian systems tty7 is used by the X Window System,
    # so if you want to add more getty's go ahead but skip tty7 if you run X.
    #
    #1:2345:respawn:/sbin/getty 38400 tty1
    #2:23:respawn:/sbin/getty 38400 tty2
    #3:23:respawn:/sbin/getty 38400 tty3
    #4:23:respawn:/sbin/getty 38400 tty4
    #5:23:respawn:/sbin/getty 38400 tty5
    #6:23:respawn:/sbin/getty 38400 tty6
    
    # Example how to put a getty on a serial line (for a terminal)
    #
    #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
    #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
    
    # Example how to put a getty on a modem line.
    #
    #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

  5. #5
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    uncomment theese lines
    #1:2345:respawn:/sbin/getty 38400 tty1
    #2:23:respawn:/sbin/getty 38400 tty2
    #3:23:respawn:/sbin/getty 38400 tty3
    #4:23:respawn:/sbin/getty 38400 tty4
    #5:23:respawn:/sbin/getty 38400 tty5
    #6:23:respawn:/sbin/getty 38400 tty6
    and read man inittab

  6. #6
    Just Joined!
    Join Date
    Oct 2006
    Posts
    5
    Changed file and restarted - did not work.

    When I type:

    tty

    I get:

    /dev/pts/0

    Cannot find an answer on this anywhere on the net...

  7. #7
    Just Joined!
    Join Date
    Oct 2006
    Posts
    5
    Update:

    When I boot the machine no getty processes appear. However when I use the:

    init q

    command several getty processes appear.

    But still no login prompt!?

    ps -ax output:
    Code:
      PID TTY      STAT   TIME COMMAND
        1 ?        S      0:04 ini
        2 ?        S      0:00 [keventd]
        3 ?        SN     0:00 [ksoftirqd_CPU0]
        4 ?        S      0:00 [kswapd]
        5 ?        S      0:00 [bdflush]
        6 ?        S      0:00 [kupdated]
        8 ?        S      0:00 [khubd]
       10 ?        S      0:00 [kjournald]
      117 ?        S      0:00 [kjournald]
      215 ?        Ss     0:00 /sbin/dhcpcd-bin -Y -N -R -h home_nas eth0
      269 ?        S      0:00 /sbin/utelnetd -l /bin/bash
      274 ?        Ss     0:00 /sbin/syslogd
      277 ?        Ss     0:00 /sbin/klogd
      283 ?        Ss     0:00 /usr/local/sbin/avr_evtd -d /dev/ttyS1
      292 ?        S      0:00 /usr/sbin/dnsmasq
      299 ?        S      0:00 /usr/sbin/ap_servd -i eth0
      339 ?        Ss     0:00 /usr/sbin/exim4 -bd -q30m
      345 ?        Ss     0:00 /usr/sbin/inetd
      349 ?        Ss     0:00 /usr/sbin/nmbd -D
      351 ?        Ss     0:00 /usr/sbin/smbd -D
      356 ?        S      0:00 /usr/sbin/smbd -D
      358 ?        Ss     0:00 /usr/sbin/sshd
      365 ?        SLs    0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid
      379 ?        Ss     0:00 /usr/sbin/atd
      382 ?        Ss     0:00 /usr/sbin/cron
      406 ?        Ss     0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webm
      516 pts/0    Ss     0:00 /bin/bash
      769 ?        S      0:00 /usr/sbin/smbd -D
     1023 ?        Ss     0:00 /sbin/getty 38400 tty1
     1024 ?        Ss     0:00 /sbin/getty 38400 tty2
     1025 ?        Ss     0:00 /sbin/getty 38400 tty3
     1026 ?        Ss     0:00 /sbin/getty 38400 tty4
     1027 ?        Ss     0:00 /sbin/getty 38400 tty5
     1033 ?        Ss     0:00 /sbin/getty 38400 tty6
     1035 pts/0    R+     0:00 ps -ax

  8. #8
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    before you order the command : init q , see the dmesg , looking for any error.

    EDIT:
    and delete one of this entry

    # The default runlevel.
    id:2:initdefault:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •