LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2010, 02:23 AM   #1
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
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?
 
Old 10-04-2010, 11:37 AM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
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.
 
Old 10-04-2010, 04:55 PM   #3
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Original Poster
Rep: Reputation: 30
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.
 
Old 10-04-2010, 09:17 PM   #4
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 214

Rep: Reputation: 161Reputation: 161
All boot scripts need bash so you need bash.
 
Old 10-04-2010, 09:34 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,366

Rep: Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i identify tty device vijaya_svk Linux - Newbie 1 01-04-2009 06:37 PM
Unable to identify and configure Network Card mnassar Linux - Networking 6 10-22-2007 01:41 AM
error "unable to load tty" after adding HDD to Ubuntu mrlankey0486 Linux - Hardware 3 04-27-2006 08:31 PM
Webmin error - unable to identify operating system LittleAngel Linux - Software 2 05-15-2004 04:21 PM
Unable to install RH9. Can't identify cause! then Linux - General 5 02-09-2004 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration