- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricted user access.
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
тАО05-27-2009 09:17 PM
тАО05-27-2009 09:17 PM
Restricted user access.
I have created a restricted user on my 11.11 server. Currently this user cannot wander around to any directory other than his home directory.Now, I need to set up the user rights in such a way that this user can go to the sub directories inside his home directory. Kinldy let me know if any one can help me out on this....
Thanks in advance,
Vinu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 09:32 PM
тАО05-27-2009 09:32 PM
Re: Restricted user access.
how about create sub directory and change owner to this user,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 09:40 PM
тАО05-27-2009 09:40 PM
Re: Restricted user access.
Your quick response is highlreciated. The user cannot go inside the subdirctories. Please see the below outputs;
$ whoami
testuser
$ pwd
/home/testuser
$ mkdir hp-india
$ ll -d hp-india
drwxrwxrwx 2 testuser users 96 May 28 07:39 hp-india
$ cd hp-india
rsh: cd: The operation is not allowed in a restricted shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 10:03 PM
тАО05-27-2009 10:03 PM
Re: Restricted user access.
cd is not permitted in restricted shell ,
but you can perform certain things from outside of that subdir like
touch subdir/test
cat subdir/test
the followings are not possible in restricted shell
Redirecting output
Specifying pathnames or command names containing a slash (/).
Setting the value of the PATH or the SHELL variables.
moving around directory using cd command
Thanks!!
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 10:03 PM
тАО05-27-2009 10:03 PM
Re: Restricted user access.
what method you use to create this restriced user,
why dont you try with sudo? thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 10:23 PM
тАО05-27-2009 10:23 PM
Re: Restricted user access.
How I created the user is through SAM and set the shell as /usr/bin/rsh. Could you please tell me how can I limit the cd usage of a user such a way that he can do cd to his home directories and to the subditrectories inside his home directory ( I can change the shell to a normall shell other than rsh)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 10:27 PM
тАО05-27-2009 10:27 PM
Re: Restricted user access.
That's what the man page says:
The cd command cannot be executed by rksh.
Or: rsh Restrictions
http://docs.hp.com/en/B2355-60130/sh-posix.1.html#d0e220003
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 11:53 PM
тАО05-27-2009 11:53 PM
Re: Restricted user access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2009 12:01 AM
тАО05-28-2009 12:01 AM
Re: Restricted user access.
no, sudo can't cd to unprivileged directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2009 12:08 AM
тАО05-28-2009 12:08 AM
Re: Restricted user access.
Yes you can do that ..
#visudo
then create rule like below
userabc ALL=(ALL) NOPASSWD:/usr/bin/cd /home/userabc*
if you know the subdirectory ..u can specify that in the sudoers file separated by " ,"
eg:userabc ALL=(ALL) NOPASSWD:/usr/bin/cd /home/userabc*,/usr/bin/cd childdir
save and exit
and for moving across his directories
use sudo cd /home/userabc/
Thanks!!
Johnson