Banner message for FTP

I'm trying to setup a banner message for incoming FTP connection for Solaris 10 server. It does not work the way I set Solaris 9 servers. File /et/ftpd/ftpaccess has entry:

banner=/etc/ftpd/banner.msg

I modified inetd.conf file:

ftpstreamtcp6nowaitroot/usr/sbin/in.ftpdin.ftpd -a -l

Restarted inetd. Message does not appear.

Please help.

[375 byte] By [am4963a] at [2007-11-27 11:07:55]
# 1

You did not mention running inetconv to convert the inetd.conf entry for smf. Is this an IPV6 specific question, since you added an IPV6 and not an IPV4 entry to your inetd.conf file?

Otherwise, in IPV4, the banner works for me:

# cat > /etc/ftpd/banner.msg

howdydoody

# svcadm enable ftp

5 ftpd# ftp localhost

Connected to localhost.

220-howdydoody

220-

Does in.ftpd start when you connect?:

# ps -ef | grep ftp

....

root 261782440 13:54:43 ?0:00 /usr/sbin/in.ftpd -a

root 26177 261440 13:54:43 pts/60:00 ftp localhost

wsandersa at 2007-7-29 13:25:11 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Try setting the following in /etc/ftpd/ftpaccess

banner /etc/ftpd/banner.msg

greetingbrief

chown root:root /etc/ftpd/banner.msg

chmod 644/etc/ftpd/banner.msg

svccfg

svc:> select svc:/network/ftp

svc:/network/ftp> listprop inetd_start/exec

check the output...

svc:/network/ftp> setprop inetd_start/exec = "/usr/sbin/in.ftpd -a"

quit

svcadm restart svc:/network/ftp

Stuart_Flishera at 2007-7-29 13:25:11 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Thanks. It works.

am4963a at 2007-7-29 13:25:11 > top of Java-index,Solaris Operating System,Solaris 10 Features...