- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- customized shell
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
Forums
Discussions
Discussions
Discussions
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
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
03-09-2006 01:11 AM
03-09-2006 01:11 AM
I need to create a particular shell and assigne it to a particular user (only one in the system) writing it in the /etc/passwd file.
This shell is allowed to execute only these commands:
ls -l
cd
cat
And nothing else. Is it possible?
Any idea?
Thank you
Vale et valete
ZAMPO
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 01:18 AM
03-09-2006 01:18 AM
Re: customized shell
What you need to do is setup the user with a "restricted" shell ('rsh'). See the 'sh-posix' manpages under the section headed "rsh Restrictions":
http://docs.hp.com/en/B2355-60127/sh-posix.1.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 01:21 AM
03-09-2006 01:21 AM
Re: customized shell
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 01:21 AM
03-09-2006 01:21 AM
Re: customized shell
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 01:31 AM
03-09-2006 01:31 AM
Re: customized shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 01:32 AM
03-09-2006 01:32 AM
Solution1). The login shell listed in /etc/passwd is /usr/bin/rsh
2). The userâ s home directory must have permissions of 555
3). Create a bin directory in the userâ s home directory, also with permissions of 555
4). The userâ s .profile will have only one entry:
export PATH=/home/guest/bin
5). The permissions on the userâ s .profile will be 444 and owned by root/sys
6). Copy only the programs needed by the user to their bin directory
7). Add the user to the /etc/ftpd/ftpusers file
8). Restrict the user from other services using other configurable access control files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 10:35 AM
03-09-2006 10:35 AM
Re: customized shell
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 02:41 AM
03-14-2006 02:41 AM
Re: customized shell
Vale et valete
ZAMPO