Operating System - HP-UX
1752790 Members
6300 Online
108789 Solutions
New Discussion

how to restrict access for users in hp-ux

 
Jean Samarani
Frequent Advisor

how to restrict access for users in hp-ux

Hello Community, 

 

I would like to create a user account and we would like to give him access only to perform dig and nslookup commands. 

 

can you please advise how to do that?

 

thanks a lot !

 

Br, Jean 

1 REPLY 1
Matti_Kurkela
Honored Contributor

Re: how to restrict access for users in hp-ux

A restricted shell environment for that user could satisfy your requirement.

See "man sh-posix" and read the chapters about "rsh".

 

See also this old document which includes more detail on the required steps to set up a rsh user account:

http://newfdawg.com/SHP-RestShell.htm

 

But if the user only needs dig and nslookup, why give him access to HP-UX at all? These tools only send queries to a DNS server and interpret the answers. They can easily be provided to a Windows workstation. A version of "nslookup" is included in most versions of Windows, and "dig" can be found as an installable command-line utility, either as a part of the Cygwin toolkit, or as a separate package, like this:

 

http://members.shaw.ca/nicholas.fong/dig/

MK