Bug 217975

Summary: rbash symlink for restricted bash ("bash -r") missing
Product: [Fedora] Fedora Reporter: Jason Farrell <farrellj>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-06 17:05:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150225    

Description Jason Farrell 2006-11-30 23:04:07 UTC
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
bash-3.1-16.1
[root@nano tmp]# rpm -ql bash | grep rbash
/usr/share/doc/bash-3.1/rbash.0
/usr/share/doc/bash-3.1/rbash.ps
[root@nano tmp]# whereis rbash
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 17:05:46 UTC

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