2005/9/27, Michel Messerschmidt
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 Well, it's definetly unrestricted, after login:
user@linux:~> echo $0 -rbash user@linux:~> shopt | grep restr restricted_shell off It's a clean install with SP3, didn't add anything weird homemade script or anything like that . CI.-