- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to restrict a user from perform "cd" command o...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 03:06 AM
тАО07-19-2006 03:06 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 03:28 AM
тАО07-19-2006 03:28 AM
Solution1- Add an exit below the bash -r in the profile.
bash -r
exit
So, when the user type exit, exit is runned again. But this is not good if you put in the .bash_profile, because the users have control over this file and can be changed.
2- Recommended
Create a symbolic link to the bash file and name it rbash, configure the user to use this file as shell:
cd /etc/security
ln -s /bin/bash rbash
usermod -s /etc/security/rbash username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 04:02 AM
тАО07-19-2006 04:02 AM
Re: How to restrict a user from perform "cd" command on RedHat
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 04:32 AM
тАО07-19-2006 04:32 AM
Re: How to restrict a user from perform "cd" command on RedHat
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Take a little time to assign points to your questions, this is a good way to thank in the forum:
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA640287&listType=question&forumId=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 04:35 AM
тАО07-19-2006 04:35 AM
Re: How to restrict a user from perform "cd" command on RedHat
Please say thanks to Ivan with points.
Please read this:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com