- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX commands location
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-28-2004 04:50 PM
12-28-2004 04:50 PM
HP-UX commands location
Pls correct me if I am wrong.
1) Basically all the HP-UX commands is located at /sbin, /usr/lbin and /usr/sbin. Any others path?
2) Any guideline to determine the type of command that will be located in a particular path? Example the LVM commands will be located in /sbin and /usr/sbin.
3) Why the LVM commands will be duplicated in /sbin and /usr/sbin?
4) Inside the inetd.conf, under inetd internal services section, what are the services such as daytime, time, echo, discard and chargen stands for? How to make sure that our server is not running these services? Thru netstat?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 04:56 PM
12-28-2004 04:56 PM
Re: HP-UX commands location
whence
whence sendmail
You will see where it is.
2) they are in two locations to provide functionality in single user and lvm maintenance mode during which /usr may not be mounted.
3) See item 2
4) man inetd will give details.
To make sure they are not running, comment them out in inetd.conf then:
inetd -c
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 05:04 PM
12-28-2004 05:04 PM
Re: HP-UX commands location
1)all the commnads will be under /usr/bin, /usr/sbin and /sbin
2) whereis
3) commands under /usr/sbin will be used by super user (i.e root) whereas /sbin commands will be used by system at boot time, hence the LVM commands are stored under /sbin as well /usr/sbin
4) netstat shows only network statistics, inetd.conf has the daemons(processes) to be started by inetd process at boot time.
To stop the services, comment the lines that you don't want and refresh the inetd.conf file by issuing the command
#inetd -c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 07:42 PM
12-28-2004 07:42 PM
Re: HP-UX commands location
1) What are daytime, time, echo, discard and chargen stands for? I mean the function of these services.
2) How to ensure that the server is not required to use these services?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 08:23 PM
12-28-2004 08:23 PM
Re: HP-UX commands location
Check this Doc:
http://www.cert.org/advisories/CA-1996-01.html
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 08:31 PM
12-28-2004 08:31 PM
Re: HP-UX commands location
1) What are daytime, time, echo, discard and chargen stands for? I mean the function of these services.
easy.
man time
man echo
...
2) How to ensure that the server is not required to use these services?
Quite difficult to know. Some of these are core utilities that are need by other OS utilities. In some cases, removing them may cause some programs to crash...
hope this helps
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2004 05:31 PM
12-29-2004 05:31 PM
Re: HP-UX commands location
/sbin and /usr/sbin directories are for "static" binaries. The difference between /sbin and /usr/sbin is to differentiate admin and user space. Binaries in /sbin are there for admin purpose especially in single user mode where only "/" is mounted, thus access to /usr/sbin is not possible.
/usr/lbin is where SAM binaries are store and not until recently, you wouldn't have been able to find docos on them.
Application binaries are found usually in /opt/
>> 2) Any guideline to determine the type of command that will be located in a particular path? Example the LVM commands will be located in /sbin and /usr/sbin.
Beside what I've stated above in 1), I am not aware of any official guide likes, most are formed by convention. HP developers might have access to these guidelines given they might develop HP-UX tools/binaries.
>> 3) Why the LVM commands will be duplicated in /sbin and /usr/sbin?
Its duplicated for the same reason explained in 1). /user/sbin is not accessible in runlevel 0, 1, and S for maintenance purposes, thus its there. When OS is in normal operation (runlevel 3), most admin will use the commands in /usr/sbin, but it really makes no difference (that I am aware of).
>> 4) Inside the inetd.conf, under inetd internal services section, what are the services such as daytime, time, echo, discard and chargen stands for? How to make sure that our server is not running these services? Thru netstat?
If you want to secure you server, its best to hash (#) most, if not all of them out, but ensure your applications does not require them first. Do this on a test server.
Look up the "Bastion Host with HP-UX" doco for some explanations, as most of these are of Unix functions which are not required today (99% of the time).
Cheers
Jov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2004 06:01 PM
12-29-2004 06:01 PM
Re: HP-UX commands location
In almost 99% of the cases these can, and should for security purposes, be commented out, or just removed, from the /etc/inetd.conf file.
In the case of commands duplicated between /sbin and /usr/bin: /sbin commands are statically linked, meaning that all libraries that the command needs to function are linked into the executable at compile time. This is to ensure that the commands can function on their own with only the / filesystem available. The commands in /usr/bin are dynamically linked which means that they require the libraries they use to be availalbe, generally in /usr/lib, when they are executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2005 01:09 PM
01-09-2005 01:09 PM
Re: HP-UX commands location
##
#
# NCPM programs.
# Do not uncomment these unless you are using NCPM.
#
##
#ncpm-pm dgram udp wait root /opt/ncpm/bin/ncpmd ncpmd
#ncpm-hip dgram udp wait root /opt/ncpm/bin/hipd hipd
dtspc stream tcp nowait root /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd
rpc xti tcp swait root /usr/dt/bin/rpc.ttdbserver 100083 1 /usr/dt/bin/rpc.ttdbserver
rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-5 rpc.cmsd
recserv stream tcp nowait root /usr/lbin/recserv recserv -display :0
registrar stream tcp nowait root /etc/opt/resmon/lbin/registrar /etc/opt/resmon/lbin/registr
ar
instl_boots dgram udp wait root /opt/ignite/lbin/instl_bootd instl_bootd
Q1) What is NCPM stands for? How to check whether our system is using NCPM program?
Q2) Can I comment all the services listed above? (dtspc, rpc, recserv, registrar & instl_boots)? Any impact after commenting these services?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2005 09:37 PM
01-09-2005 09:37 PM
Re: HP-UX commands location
NCPM=Network Connection Policy Manager
For more info check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=92357
Best Regards,
Eric Antunes