- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- New User ID Restriction
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
12-03-2007 06:21 PM
12-03-2007 06:21 PM
New User ID Restriction
1)The ID to be created is MUST be restricted sharing.
2)create for their own user account
3)unable to read/navigate/view other directories
4)unable to write to other directories
able to create their own directory
Your cooperation is highly appreciated.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 07:52 PM
12-03-2007 07:52 PM
Re: New User ID Restriction
I think you are describing what is called a chroot jail which is best implemented with the restricted shell: rsh or rksh. NOTE: this is difficult to setup because the user will have no access to any directory above $HOME. That means no commands like vi, etc unless a copy is stored in the user's $HOME.
You may have to create a user menu instead. The menu will then limit all commands and access.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 08:18 PM
12-03-2007 08:18 PM
Re: New User ID Restriction
Just search "restricted shell" in search
option of this forum.And you will get good information which may be useful to you.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=876162
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1086048
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=137882
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 08:45 PM
12-03-2007 08:45 PM
Re: New User ID Restriction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 09:00 PM
12-03-2007 09:00 PM
Re: New User ID Restriction
Not able to create user.
You just create a new user and put its shell as ksh -r (r for restricted).
And your user would be having restricted access.
"man ksh"
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 09:06 PM
12-03-2007 09:06 PM
Re: New User ID Restriction
That's put its shell as /usr/bin/rsh or /usr/bin/rksh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 09:21 PM
12-03-2007 09:21 PM
Re: New User ID Restriction
>>>That's put its shell as /usr/bin/rsh or /usr/bin/rksh.
from man page of ksh I have
-r If the -r option is present, the shell is a restricted shell
rksh Only
rksh is used to set up login names and execution environments where capabilities are more controlled than those of the standard shell. The actions of rksh are identical to those of ksh, except that the following are forbidden:
Are these thing are different???
Why ksh -r can put shell to /usr/bin/rsh (rsh is remote shell here like rloginn right or wrong).
I just used restricted shell once with ksh -r option and it worked fine.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 09:40 PM
12-03-2007 09:40 PM
Re: New User ID Restriction
Why ksh -r can put shell to /usr/bin/rsh
For the passwd entry, you can only provide the path of the shell but no options. So rsh or rksh is needed.
>(rsh is remote shell here like rlogin right or wrong).
No, rsh is the restricted Posix shell. remsh(1) is the remote shell. (On HP-UX)
>I just used restricted shell once with ksh -r option and it worked fine.
Sure but you can't add -r to /etc/passwd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 09:55 PM
12-03-2007 09:55 PM
Re: New User ID Restriction
Thanks for the clarification!!!!!
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 05:48 PM
12-04-2007 05:48 PM
Re: New User ID Restriction
Can both of you please give me the details step that should i take to make sure the new id that i created have the profile above?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 06:19 PM
12-04-2007 06:19 PM
Re: New User ID Restriction
I'm not sure I see the connection between you as root and the users you are adding?
>For example my login id now is ncps01, using rsh shell. Then i want to add new user, ncps02. When i try to execute command 'useradd -m ncps02', it can not work.
You must be root to add more users and your shell must be /sbin/sh.
>Can both of you please give me the details step that should i take to make sure the new id that i created have the profile above?
I don't know if rsh will do all of the above but here is how to add it:
# useradd -m ncps02 -s /usr/bin/rsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 06:55 PM
12-04-2007 06:55 PM
Re: New User ID Restriction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 08:59 PM
12-04-2007 08:59 PM
Re: New User ID Restriction
Unfortunately rsh won't let the user change the directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 10:13 PM
12-04-2007 10:13 PM
Re: New User ID Restriction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 10:32 PM
12-04-2007 10:32 PM
Re: New User ID Restriction
Unless you can use ACLs, getacl(1) & setacl(1).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 10:37 PM
12-04-2007 10:37 PM
Re: New User ID Restriction
>>>2)create for their own user account
>>>3)unable to read/navigate/view other directories
>>>4)unable to write to other directories
u r not able to change directory i thinak thats what u want ur 3rd requirement.
It ful fill ur 4th requirement also.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 10:45 PM
12-04-2007 10:45 PM
Re: New User ID Restriction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2007 01:16 AM
12-12-2007 01:16 AM