jump to navigation

service ftp di solaris 10 ga mau running karena nsswitch.conf 28 March 2011

Posted by tathitsa in Uncategorized.
Tags:
trackback

2 hari ini dibuat pusing sama service ftp di nas yang running di solaris 10. mulai deh rasa penasarannya tinggidan terpaksa loading memory tentang svcs, svcadm, inetadm di kepala.

command pertama yg disubmit adalah svcs -xv untuk memastikan bahwa service ftp memang problem

[root@nas /]# svcs -xv
svc:/network/ftp:default (FTP server)
State: maintenance since March 22, 2011 10:57:19 AM CIT
Reason: Restarter svc:/network/inetd:default gave no explanation.
See: http://sun.com/msg/SMF-8000-9C
See: man -M /usr/share/man -s 1M in.ftpd
See: man -M /usr/share/man -s 1M ftpd
Impact: This service is not running.

[root@nas /]# inetadm -l network/ftp:
SCOPE    NAME=VALUE
name=”ftp”
endpoint_type=”stream”
proto=”tcp6″
isrpc=FALSE
wait=FALSE
exec=”/usr/sbin/in.ftpd -a”
user=”root”
default  bind_addr=””
default  bind_fail_max=-1
default  bind_fail_interval=-1
default  max_con_rate=-1
default  max_copies=-1
default  con_rate_offline=-1
default  failrate_cnt=40
default  failrate_interval=60
default  inherit_env=TRUE
default  tcp_trace=FALSE
default  tcp_wrappers=FALSE
default  connection_backlog=10

[root@nas /]# svcprop network/ftp
general/entity_stability astring Unstable
general/restarter fmri svc:/network/inetd:default
inetd/endpoint_type astring stream
inetd/isrpc boolean false
inetd/name astring ftp
inetd/proto astring tcp6
inetd/stability astring Evolving
inetd/wait boolean false
inetd_start/exec astring /usr/sbin/in.ftpd\ -a
inetd_start/group astring root
inetd_start/limit_privileges astring :default
inetd_start/privileges astring :default
inetd_start/project astring :default
inetd_start/resource_pool astring :default
inetd_start/supp_groups astring :default
inetd_start/timeout_seconds count 0
inetd_start/type astring method
inetd_start/use_profile boolean false
inetd_start/user astring root
inetd_start/working_directory astring :default
inetd_disable/exec astring :kill
inetd_disable/timeout_seconds count 0
inetd_disable/type astring method
tm_common_name/C ustring FTP\ server
tm_man_in_ftpd/manpath astring /usr/share/man
tm_man_in_ftpd/section astring 1M
tm_man_in_ftpd/title astring in.ftpd
tm_man_ftpd/manpath astring /usr/share/man
tm_man_ftpd/section astring 1M
tm_man_ftpd/title astring ftpd

dari hasil command2 diatas bener2 blank nih … dari hasil tanya2 ke temen, disarankan liat services yang running via inetd. aku coba finger.

[root@nas /]# inetadm | grep finger
enabled   maintenance    svc:/network/finger:default

ternyata mati juga, berarti problemnya di inetd. ada beberapa kemungkinan sih, yg pertama aku liat /etc/nsswitch.conf

ada yang menarik dari isi file ini

networks:   ldap [NOTFOUND=return] files
protocols:  ldap [NOTFOUND=return] files
rpc:        ldap [NOTFOUND=return] files
ethers:     ldap [NOTFOUND=return] files
netmasks:   ldap [NOTFOUND=return] files
bootparams: ldap [NOTFOUND=return] files
publickey:  ldap [NOTFOUND=return] files

kok hasil NOTFOUND return ya ? berarti kalo ldapnya bermasalah maka search entry ga akan dilanjutkan ke files padahal entry di ldap server ga ada informasi tentang network & hosts

setelah return aku ubah menjadi continue, problemnya solved.

reference nsswitch.conf aku ambil dari http://www.softpanorama.org/Solaris/Reference/etc/nsswitch.shtml

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: