PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

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

 November 13, 2022     plesk, ssh     No comments   

Issue

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


Solution

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



Answered By - rineez
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing