LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Unable to identify tty name error on new install (https://www.linuxquestions.org/questions/slackware-14/unable-to-identify-tty-name-error-on-new-install-836037/)

fbsduser 10-04-2010 02:23 AM

Unable to identify tty name error on new install
 
Hi. Just installed slackware 13.0 32bits using the usb-based netinstall. Did a minimal cli install and unchecked bash (since I wanted to use tcsh on this particular OS). But now on first boot it tells me that it shows an error message indicating "unable to identify tty name" and won't let me login (I'm using the root account since I haven't yet set up additional users). My question is, is the error happening because I unselected bash during installation? If so, is there any config file that I can modify to get it to recognize tcsh and let me log in? or if that isn't the problem, where do I set then the tty name?

janhe 10-04-2010 11:37 AM

Do you get this error after you try to login?

/etc/passwd contains the name of the shell that is executed when a user logs in. It is set to /bin/bash by default.

fbsduser 10-04-2010 04:55 PM

I had already edited my slackware /etc/passwd (using nano from my ubuntu partition)
it looks like this:
Code:

root:x:0:0::/root:/bin/tcsh
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
adm:x:3:4:adm:/var/log:/bin/false
lp:x:4:7:lp:/var/spool/lpd:/bin/false
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/:/bin/false
news:x:9:13:news:/usr/lib/news:/bin/false
uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false
operator:x:11:0:operator:/root:/bin/bash
games:x:12:100:games:/usr/games:/bin/false
ftp:x:14:50::/home/ftp:/bin/false
smmsp:x:25:25:smmsp:/var/spool/clientmqueue:/bin/false
mysql:x:27:27:MySQL:/var/lib/mysql:/bin/false
rpc:x:32:32:RPC portmap user:/:/bin/false
sshd:x:33:33:sshd:/:/bin/false
gdm:x:42:42:GDM:/var/state/gdm:/bin/tcsh
oprofile:x:51:51:oprofile:/:/bin/false
apache:x:80:80:User for Apache:/srv/httpd:/bin/false
messagebus:x:81:81:User for D-BUS:/var/run/dbus:/bin/false
haldaemon:x:82:82:User for HAL:/var/run/hald:/bin/false
pop:x:90:90:POP:/:/bin/false
nobody:x:99:99:nobody:/:/bin/false

And this is my slackware's /bin directory (mounted in my ubuntu partition under /Slack):
Code:

Ghost-Rider@CrackBox-X64:/Slack/bin$ ls
[              egrep      Mail          readlink  touch
arch          env        md5sum        red        tr
awk            expand      mkdir          rm        true
base64        expr        mkfifo        rmdir      truncate
basename      factor      mknod          rpm        tsort
bunzip2        false      mktemp-gnu    runcon    tty
bzcat          fgrep      more          rzip      umount
bzip2          fmt        mount          sed        uname
bzip2recover  fold        mt-GNU        seq        uncompress
cat            free        mv            setterm    unexpand
chcon          gawk        nail          sh        uniq
chgrp          gawk-3.1.6  netstat        sha1sum    unlink
chmod          getopt      nice          sha224sum  users
chown          ginstall    nisdomainname  sha256sum  usleep
chroot        grep        nl            sha384sum  vdir
cksum          groups      nohup          sha512sum  wc
comm          gunzip      ntfs-3g        shred      which
compress      gzexe      ntfs-3g.probe  shuf      who
cp            gzip        ntfscat        sleep      whoami
cpio          head        ntfscluster    sort      xz
csh            hostid      ntfscmp        split      yes
csplit        hostname    ntfsfix        stat      ypdomainname
cut            id          ntfsinfo      stty      zcat
date          install    ntfsls        su        zcmp
dd            ipmask      od            sulogin    zdiff
df            join        paste          sum        zegrep
dialog        kill        pathchk        sync      zfgrep
dir            killall    ping          tac        zforce
dircolors      link        ping6          tail      zgrep
dirname        ln          pinky          tar        zless
dmesg          loadkeys    pr            tar-1.13  zmore
dnsdomainname  login      printenv      tar-1.22  znew
domainname    logname    printf        tcsh
du            ls          ps            tee
echo          lsmod      ptx            test
ed            mail        pwd            timeout
Ghost-Rider@CrackBox-X64:/Slack/bin$

It should work, but it's still not working, duno why.

Thom1b 10-04-2010 09:17 PM

All boot scripts need bash so you need bash.

T3slider 10-04-2010 09:34 PM

You can always install tcsh and set it as the default shell for any of your users (the `adduser` script asks you for your default shell when adding users), but the startup scripts in /etc/rc.d/ require bash. You should definitely install bash (you can boot with a USB installer, mount your root partition, and install bash using the --root option of installpkg) and make sure that /bin/sh points to /bin/bash. If you want to omit bash then you would need to modify any startup scripts to make them 100% POSIX-compliant so you could use something like ash, or rewrite them to use tcsh. The easiest solution is still to install bash and just set tcsh as your default shell for each user.


All times are GMT -5. The time now is 05:37 AM.