LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2004, 07:53 PM   #1
cykoburn
LQ Newbie
 
Registered: Nov 2004
Posts: 18

Rep: Reputation: 0
Login problem


I recently installed Slackware 10 and was able to log in fine with root. i think i messed something up because i was trying to add a new user but did not use the adduser command. instead i just used chfn changed name info and used chsh and changed that to a different name.
Now when i try to log in it seems to log in fine but the comes up with the error
Cannot execute cykoburn (the name i changed in chsh): no such file or directory

Last edited by cykoburn; 11-29-2004 at 07:55 PM.
 
Old 11-29-2004, 08:18 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
Thumbs up

chsh is used to change a users existing shell to something else (ie. bash, ksh, csh .... and not an arbitrary or a users name). It is therefore not used as a title, but rather it is changing the real shell functionality. Check out man chsh or 'chsh -l' to get a list of the available shells and then change it back to, for example, bash
cheers
 
Old 11-29-2004, 08:21 PM   #3
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
If the -l option is not available, just look in /etc/shells to see what are the available shells. You can google to see the differences between each. You're probably best to use bash
for example:
$ cat /etc/shells
# /etc/shells: valid login shells
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/shells,v 1.5 2003/07/15 20:36:32 azarah Exp $
/bin/sh
/bin/bash
/bin/tcsh
/bin/csh
/bin/esh
/bin/ksh
/bin/zsh
/bin/sash
 
Old 11-29-2004, 08:23 PM   #4
cykoburn
LQ Newbie
 
Registered: Nov 2004
Posts: 18

Original Poster
Rep: Reputation: 0
well the problem is i can't really log in at all. i logs in for like a second then right back out as if i never had. i know it logged in because i tells me i got mail and the failures since last log in
 
Old 11-29-2004, 09:30 PM   #5
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
Only root can fix this problem and if you cannot login as root (because your pointing to a shell that doesn't exist) you need to search these forums for how to recover the root password. (or somehow recover your /etc/passwd file)
Good luck... learning new stuff hurts sometimes but you'll remember not to do this one nextime
 
Old 11-29-2004, 10:02 PM   #6
cykoburn
LQ Newbie
 
Registered: Nov 2004
Posts: 18

Original Poster
Rep: Reputation: 0
yea i solved the problem by reinstalling Linux
 
  


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
Login problem satimis Linux From Scratch 4 08-24-2005 11:22 AM
Login problem Frederik Valeur Linux - Software 3 06-12-2005 10:46 PM
Login Problem don_dimo Linux - Software 2 06-14-2004 01:47 PM
Login problem! yulitao Linux - General 3 04-12-2004 05:13 PM
Login problem with RH 7.1 bildnisse Linux - Newbie 2 01-01-2002 11:05 PM


All times are GMT -5. The time now is 06:39 PM.

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