[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Questions regarding bash and sh.



Sthu Deus wrote:
Good day.

I have noticed that for some users in /etc/passwd the shell environment
is set as bash and for some as sh. This has led me to the following
questions:

. Why is it so, meaning what is the meaning of it?
. Do I give more insecure environment to a user setting for him sh
instead of bash?

In Debian, absolutely nothing since it's a symbolic link to bash...

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2009-02-27 12:13 /bin/sh -> bash
$ ls -l /bin/bash
-rwxr-xr-x 1 root root 700492 2008-05-12 12:02 /bin/bash
$ file /bin/bash
/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped


Reply to: