Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
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
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
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
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
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.