Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between bin/sh, bin/bash, sbin/nologin, bin/tcsh, etc? [closed]

Tags:

ssh

plesk

I am new to linux so please go easy and talk slow =)

In Plesk I have some options for accessing the server over SSH. I just want to connect, add my public key and run rsync for backup.

  1. What is the difference between these options?
  2. Which option should I choose?
  3. What are these? They look like directories to me.

Access to the server over SSH:

  • /bin/sh
  • /bin/bash
  • /sbin/nologin
  • /bin/tcsh
  • /bin/csh
  • /bin/ksh
  • /bin/bash (chrooted)
  • /bin/rbash

Here is an image of the Plesk control panel:

enter image description here

like image 429
zechdc Avatar asked Jul 13 '12 18:07

zechdc


People also ask

What is the difference between bin bash and bin sh?

bash and sh are two different shells of the Unix operating system. bash is sh, but with more features and better syntax. Bash is “Bourne Again SHell”, and is an improvement of the sh (original Bourne shell).

What is the difference between bin bash and bash?

The answer to this question is, " -bash denotes a login shell and /bin/bash denotes a non-login shell." The answer to the other question is a list of differences between login shells and non-login shells.

What is the difference between a user shell of USR sbin Nologin and bin false explain the difference?

First of all, i should say in terms of functionality there is no difference between /bin/false & /sbin/nologin . It means, both denies a shell access to a particular user account. /bin/false does nothing and it just exits with a status code indicating failure when a user attempts to login to the machine.

What is bin Nologin used for?

/bin/nologin is intended to indicate to the user that no login is permitted for an account. (It is used a login shell.)


2 Answers

Use /bin/bash

What are these? They look like directories to me.

These are different options for default shell given to users who connect via SSH

If you haven't used any of these shells before, I think bash is the best option for you. Most tutorials and articles for linux commands online assume you are using bash.

However, you have two options for bash: /bin/bash and /bin/bash (chrooted).

To do backups, you will probably need the bash to have full access to execute all commands. I'm not sure whether you can get what you want done with a chrooted bash.

Basically, chrooted bash is for avoiding mishaps.

To know more about chrooting, you can read this article

like image 100
rineez Avatar answered Oct 11 '22 06:10

rineez


Most of options are various Unix shells. A shell is basically what interprets the text that you type in the window. Some people prefer one shell over others. If you are not familiar with any shell in particular, pick one based on your needs Comparison Chart

like image 32
parapura rajkumar Avatar answered Oct 11 '22 05:10

parapura rajkumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!