Mailinglist Archive: opensuse-security (116 mails)
| < Previous | Next > |
Re: [suse-security] rbash not working!!
- From: "Michel Messerschmidt" <lists@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 08:03:13 +0200 (CEST)
- Message-id: <55619.195.124.114.37.1127800993.squirrel@xxxxxxxxxxxxxxxxxxx>
Ciro Iriarte said:
> And everything seems to be in order, after login, if i do an "echo $0"
> i get "-rbash", but it's not working as it should....
To see whether the current shell is restricted, you should execute
"shopt -p restricted_shell". The output should look like this:
bash-2.05$ rbash
rbash-2.05$ shopt -p restricted_shell
shopt -s restricted_shell
Rbash is basically a bash started by a special name ("rbash")
or the -r parameter. On some systems rbash is a link to bash while
others maintain a separate copy of the binary.
One potential source of problems is that the shell restrictions are
enabled *after* the startup files were processed. And even in restricted
mode, any allowed shell script is executed without restrictions.
Maybe one your your startfiles opens up another interactive shell?
HTH,
Michel
> And everything seems to be in order, after login, if i do an "echo $0"
> i get "-rbash", but it's not working as it should....
To see whether the current shell is restricted, you should execute
"shopt -p restricted_shell". The output should look like this:
bash-2.05$ rbash
rbash-2.05$ shopt -p restricted_shell
shopt -s restricted_shell
Rbash is basically a bash started by a special name ("rbash")
or the -r parameter. On some systems rbash is a link to bash while
others maintain a separate copy of the binary.
One potential source of problems is that the shell restrictions are
enabled *after* the startup files were processed. And even in restricted
mode, any allowed shell script is executed without restrictions.
Maybe one your your startfiles opens up another interactive shell?
HTH,
Michel
| < Previous | Next > |