Bug 217975 - rbash symlink for restricted bash ("bash -r") missing
rbash symlink for restricted bash ("bash -r") missing
Status: CLOSED DUPLICATE of bug 106493
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
Blocks: FC7Target
  Show dependency treegraph
Reported: 2006-11-30 18:04 EST by Jason Farrell
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-12-06 12:05:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jason Farrell 2006-11-30 18:04:07 EST
Description of problem:
The restricted bash shell ("rbash") can only be invoke by "bash -r", since the
"rbash" symlink is missing.

Steps to Reproduce:
1. yum install bash       # if not already installed
2. run "rbash"
Actual results:
No such file, since it wasn't provided.

Expected results:
restricted bash shell should work via symlink (by inspecting argv[0] from the
symlink, as is done for egrep and other utils)
1) /bin/rbash symlinked to /bin/bash
2) /bin/rbash added to /etc/shells

Additional info:
manually creating the symlink works:

[root@nano tmp]# rpm -q bash
[root@nano tmp]# rpm -ql bash | grep rbash
[root@nano tmp]# whereis rbash
[root@nano tmp]# whereis egrep
egrep: /bin/egrep /usr/share/man/man1/egrep.1.gz
[root@nano tmp]# ln -s /bin/bash /bin/rbash
[root@nano tmp]# rbash
[root@nano tmp]# cd /
rbash: cd: restricted
Comment 1 Tim Waugh 2006-12-06 12:05:46 EST

*** This bug has been marked as a duplicate of 106493 ***

Note You need to log in before you can comment on or make changes to this bug.