HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restricted shell on user
Operating System - HP-UX
1832455
Members
3257
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-28-2005 08:33 AM
09-28-2005 08:33 AM
Restricted shell on user
Hi guys. I've been trying to restrict a user so he cannot change to other directory rather than his home directory. I could see in different posts you adviced the use of rsh or rksh. I implemented restricted shell (rsh), but I would like to know if there's a way so the user can access directories created in his own home, and also can delete or create files within it. I would like some help on this.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 08:57 AM
09-28-2005 08:57 AM
Re: Restricted shell on user
Hi Carlos ,
If directories created in that users home , without having write permission to the user , or user's group, it cannot be writable or can not be delete. Unix permission applies in that case.
And for restricting user rsh can be use.
check this link:
http://newfdawg.com/SHP-RestShell.htm
Cheers,
Raj.
If directories created in that users home , without having write permission to the user , or user's group, it cannot be writable or can not be delete. Unix permission applies in that case.
And for restricting user rsh can be use.
check this link:
http://newfdawg.com/SHP-RestShell.htm
Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 09:05 AM
09-28-2005 09:05 AM
Re: Restricted shell on user
For instance, I have user test1 and his home directory is "/home/test1", but within his home directory exists a directory named "dir1", when I try to cd this directory (dir1) the system display error:
rsh: cd: The operation is not allowed in a restricted shell.
I know cd command is not allowed when using this shell, but is there a way so the user can access dir1?? dir1 was created with the following permissions:
drwxr-xr-x 2 test1 users 96 Sep 28 14:17 dir1
rsh: cd: The operation is not allowed in a restricted shell.
I know cd command is not allowed when using this shell, but is there a way so the user can access dir1?? dir1 was created with the following permissions:
drwxr-xr-x 2 test1 users 96 Sep 28 14:17 dir1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 09:26 AM
09-28-2005 09:26 AM
Re: Restricted shell on user
Carlos ,
Restricted shell rsh, will not allow cd.
The actions of rsh are identical to those of sh, except that the following actions are not allowed:
1. Changing directories. The cd command is deactivated.
2. Specifying pathnames or command names containing a slash (/).
3. Setting the value of the PATH or the SHELL variables.
4. Redirecting output with the right-angle brackets (> and >>).
You need to plan other way...
cheers,
Raj.
Restricted shell rsh, will not allow cd.
The actions of rsh are identical to those of sh, except that the following actions are not allowed:
1. Changing directories. The cd command is deactivated.
2. Specifying pathnames or command names containing a slash (/).
3. Setting the value of the PATH or the SHELL variables.
4. Redirecting output with the right-angle brackets (> and >>).
You need to plan other way...
cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP