Login Error No Shell
Contents |
socketNext: su: 'su root' failed for login on /dev/pts/intsu: No shell Cause This message indicates that someone changed the default login
/bin/false: No Such File Or Directory Ssh
shell for root to a program that is missing from bin false no such file or directory mac the system. For example, the final colon-separated field in /etc/passwd could have been changed from /sbin/sh
/bin/false No Such File Or Directory Ssh_exchange_identification Connection Closed By Remote Host
to /usr/bin/bash, which does not exist in that location. Possibly an extra space was appended at the end of the line. The outcome is that you usr/local/bin/zsh: no such file or directory cannot login as root or switch user to root, and, thus, cannot directly fix this problem. Action The only solution is to reboot the system from another source, then edit the password file to correct this problem. Invoke sync(1M) several times, then halt the machine by typing Stop-A or by pressing the reset ssh error bin false no such file or directory button. Reboot as single-user from CD-ROM, the net, or diskette, such as by typing boot cdrom -s at the prompt. After the system starts and gives you a # prompt, mount the device corresponding to the original root partition somewhere, such as with a mount(1M) command similar to the one that follows. Then run an editor on the newly mounted system password file (use ed(1) if terminal support is lacking): # mount /dev/dsk/c0t3d0s0 /mnt # ed /mnt/etc/passwd Use the editor to change the password file's root entry to call an existing shell, such as /usr/bin/csh or /usr/bin/ksh. Technical Notes To keep the No shell problem from happening, habitually use admintool or /usr/ucb/vipw to edit the password file. These tools make it difficult to change password entries in ways that make the system unusable. Previous: stty: TCGETS: Operation not supported on socketNext: su: 'su root' failed for login on /dev/pts/int © 2010, Oracle Corporation and/or its affiliates
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Bin False No Such File Or Directory Ssh Mac
about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered su bin bash no such file or directory Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.
Ssh Bin Bash No Such File Or Directory
Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to fix “login: no shell: No https://docs.oracle.com/cd/E19455-01/806-1075/msgs-2071/index.html such file or directory” when I can not even login? up vote 2 down vote favorite I installed fishfish(a user-friendly interactive command line shell) on a Linux server, later somebody uninstalled it but I don't know it. After I run chsh -s /usr/local/bin/fish without caution, I cannot login the server now. Error message "login: no shell: No such file or directory" showed up which apparently says that shell fish do not exist anymore. The server provides only a CLI interface, http://unix.stackexchange.com/questions/40292/how-to-fix-login-no-shell-no-such-file-or-directory-when-i-can-not-even-logi so how can I change the login shell when I cannot even login? shell share|improve this question asked Jun 8 '12 at 7:33 xanpeng 1,24751518 Do you have access to a root account? –rahmu Jun 8 '12 at 8:48 @rahmu I ran chsh under account root. I changed root's shell. –xanpeng Jun 8 '12 at 9:14 @xanpeng You did it wrong, its chsh username_to_change from the root account. –Tim Jun 8 '12 at 13:57 1 And this would be why you should ALWAYS set the root account's shell to something basic that never gets undeleted, like sh or bash. –Shadur Jun 8 '12 at 14:20 @Shadur Yes, I did it wrong, lesson learned: should be more careful when you are root. –xanpeng Jun 8 '12 at 15:20 add a comment| 3 Answers 3 active oldest votes up vote 5 down vote If you have access to the root account, you can change the shell for a user from there using chsh -u user -s $SHELL. If you have access to the boot process, you can append init=$SHELL to be dropped to a single-user shell, where you can fix this, again with chsh -u user -s $SHELL (some systems using a two-stage boot with an initrd image may require you to use real_init instead). You will probably need to remount the filesystem containing /etc/passwd as read-write (using mount
the shell to executable, so now > when I try to login, I get a "no shell" error and the connection is > refused. Similarly, when i login as a regular user and try to 'su' http://xpt.sourceforge.net/techdocs/nix/general/gnl01-WorkingEnvironment/ar01s37.html to > roon, I'm rejected with the same error.Generally you have to boot from the install media, mount the hard drive and edit the appropriate files. On a general note, it's usually a bad idea to http://stackoverflow.com/questions/35405641/nologin-error-in-unix change root's shell. The better way to go is to create another user with UID 0 (e.g. "root2") and give that user the shell you prefer.root can't login — no shell!!!> : Generally you have no such to boot from the install media, mount the hard > : drive and edit the appropriate files. On a general note, it's > : usually a bad idea to change root's shell. The better way to go is > : to create another user with UID 0 (e.g. "root2") and give that user > : the shell you prefer. > : > I would have to say I wouldn't agree totally with no such file this. There should only > be one UID 0 user. I suggest that users leave a standard shell on they're > root account (i.e. csh, ksh, sh), when you login execute another shell and > make it act as the login shell (exec bash --login [on freebsd]). Some other > systems such as linux provide the oppertunity to specify the shell to use > when su'ing. For example on my RedHat6.2 box (su - --shell=/bin/zsh). > Generally the root shell shouldn't be changed but if you have to avoid doing > it with any editor such as vipw because that lead to human errors (ie a > trailing '/' charater in the home directory feild). > > Basically, leave the root shell as it is, only have one UID 0 user > and when you wish to use another sheel as root then make it act as a login > shell as shown above.Agreed. Creating a second user with UID 0 just adds another root password.Definitely it is preferable to just run the shell you prefer after you log in as root. It's such a tiny effort to do so that it mystifies me why anyone would mess with the root shell.Jefferson Ogata Single file version available here.Last updated on 2008-07-05.To discuss, comment here.Prev Home
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Nologin error in unix up vote -2 down vote favorite 1 Hi I am trying to run a shell script in putty(using which I get access to unix server)Once I run the script I am getting an error saying "no login:errfiles1.zip: cannot create" inside KSH I am creating a zip file which is then sent through mail using a mail utility. But when I check the logs it's fine without any error. what is this no login error. Can anyone help me on this. Below is the main program. logmessage MSG "Started executing validate_feed.ksh job" >>$LOG_FILE logmessage MSG "Calling feedvalidor.pl" >> $LOG_FILE ## Calling feed_validator.pl script to validate the generated feed files for all the regions $(perl $ACE_CURRENT/feed_validator/bin_new/feed_validator.pl) logmessage MSG "Completed executing perl script feed_validator.pl!!!!!!!" >> $LOG_FILE logmessage MSG "finding .err files in $ErrFilePath ...." >> $LOG_FILE FILES=$(find "$ErrFilePath" -type f | sed 's/ /\\ /g' | grep ".err") logmessage MSG "found .err files in $ErrFilePath " >> $LOG_FILE logmessage MSG "FILES are $FILES " >> $LOG_FILE if [ "$FILES" ]; then alert=1 logmessage MSG "Enterrrrrrrrrred If - Mail" >> $LOG_FILE logmessage MSG "Value of alert is $alert" >> $LOG_FILE logmessage MSG "files are : $FILES ">>$LOG_FILE zip -r "$FilePath/$ZipFolder" "$ErrFilePath" logmessage MSG "CompressionNotRequired is $CompressionNotRequired">>$LOG_FILE ##Calling exit_func which internally calls mail_func to send the mail with attached error files exit_func else alert=0 exit_func fi logmessage MSG "Completed executing validate_feed.ksh job" >> $LOG_FILE exit 0; shell unix share|improve this question edited Feb 15 at 12:39 asked Feb 15 at 9:29 nithin 84 Coul