Showing posts with label solaris. Show all posts
Showing posts with label solaris. Show all posts

15.10.08

How to start sshd service in debug mode.

- stop sshd service.
use /etc/init.d/sshd stop or svcadm disable ssh
- start the service by
/usr/lib/ssh/sshd -d -d -d

1.10.08

solaris packaging tools.

Package check tool "pkgchk"

I have come across a problem, that is, how to know that a particular "file" or "binary" or "daemon" belongs which package?

Let say we want know the binary "sendmail" belongs to which package?

The command is:
#pkgchk -l -p /usr/lib/sendmail

Pathname: /usr/lib/sendmail
Type: regular file
Expected mode: 2555
Expected owner: root
Expected group: smmsp
Expected file size (bytes): 1020544
Expected sum(1) of contents: 42649
Expected last modification: Aug 16 10:45:47 PM 2007
Referenced by the following packages:
SUNWsndmu
Current status: installed



23.7.08

How to strat and stop the some service in solaris

How to start and stop the services in solaris-10.

previous to solaris 10 we used to control the services using /etc/.init.d/ but soalris 10 provide svcadm to enable or disable service.

svcadm
Example to enable ftp serivce

#svcadm enable ftp

Check whether "ftp" service enable or not by using

#svcs -a | grep ftp
online 18:41:06 svc:/network/ftp:default