You are on page 1of 8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

FTPADMINISTRATIONinsolaris11
ftpcmd&Files:
/usr/lib/inet/proftpd
/etc/proftpd.conf
/etc/ftpusers
/usr/bin/ftpwho
/usr/bin/ftpcount
/usr/bin/ftptop

/usr/sbin/ftpshut
/var/log/xferlog
/var/run/proftpd.pid
/var/run/proftpd.scoreboard

root@solaris2:/usr/lib/inet#svcadmenableftp
root@solaris2:/usr/lib/inet#ftp0
ftp:connect:Connectionrefused
ftp>bye
root@solaris2:/usr/lib/inet#svcsftp
STATESTIMEFMRI
maintenance14:54:56svc:/network/ftp:default
root@solaris2:/usr/lib/inet#svcsdftp
STATESTIMEFMRI
onlineDec_27svc:/network/loopback:default
onlineDec_27svc:/network/physical:upgrade
onlineDec_27svc:/network/physical:default
onlineDec_27svc:/system/nameservice/cache:default
onlineDec_27svc:/network/service:default
onlineDec_27svc:/system/filesystem/local:default
root@solaris2:/usr/lib/inet#svcadmclearftp
root@solaris2:/usr/lib/inet#svcsftp
STATESTIMEFMRI
maintenance14:55:26svc:/network/ftp:default
root@solaris2:~#svcsxvftp
svc:/network/ftp:default(FTPserver)
State:maintenancesinceDecember30,201303:06:39PMUTC
Reason:Startmethodfailedrepeatedly,lastexitedwithstatus1.
See:http://support.oracle.com/msg/SMF8000KS
See:manM/usr/share/mans1Mproftpd
See:file://usr/share/doc/proftpd/
See:/var/svc/log/networkftp:default.log
Impact:Thisserviceisnotrunning.
Youhavenewmailin/var/mail/root
root@solaris2:~#more/var/svc/log/networkftp:default.log
[Nov116:58:14Rereadingconfiguration.]
[Dec3014:54:56Enabled.]
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

1/8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

[Dec3014:54:56Executingstartmethod("/usr/lib/inet/proftpd").]
warning:unabletodetermineIPaddressof'solaris2'
error:novalidserversconfigured
Fatal:errorprocessingconfigurationfile'/etc/proftpd.conf'
[Dec3014:54:56Method"start"exitedwithstatus1.]
[Dec3014:54:56Executingstartmethod("/usr/lib/inet/proftpd").]
Nowichange/etc/hostsfileip&hostnameasfollows
root@solaris2:~#cat/etc/hosts
#
#Copyright2009SunMicrosystems,Inc.Allrightsreserved.
#Useissubjecttolicenseterms.
#
#Internethosttable
#
::1localhost
127.0.0.1localhostloghost
10.66.10.108solaris2
root@solaris2:~#svcsftp
STATESTIMEFMRI
maintenance15:06:39svc:/network/ftp:default
root@solaris2:~#svcadmclearftp
root@solaris2:~#svcsftp
STATESTIMEFMRI
offline*15:08:53svc:/network/ftp:default
root@solaris2:~#svcsftp
STATESTIMEFMRI
online15:08:59svc:/network/ftp:default
root@solaris2:~#cat/etc/proftpd.conf
ServerName"FTPserver"
ServerIdentoff
ServerTypestandalone
DefaultServeron
Port21
Umask022
#TopreventDoSattacks,setthemaximumnumberofchildprocesses
#to30.Ifyouneedtoallowmorethan30concurrentconnections
#atonce,simplyincreasethisvalue.NotethatthisONLYworks
#instandalonemode,ininetdmodeyoushoulduseaninetdserver
#thatallowsyoutolimitmaximumnumberofprocessesperservice
#(suchasxinetd).
MaxInstances30
#Settheuserandgroupunderwhichtheserverwillrun.
#Userftp
#Groupftp
#Normally,wewantfilestobeoverwriteable.
AllowOverwriteon
#BaruseofSITECHMODbydefault.
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

2/8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

<LimitSITE_CHMOD>
DenyAll
</Limit>
#MakePAMthefinalauthorityonwhatgetsauthenticated.
AuthOrdermod_auth_pam.c*mod_auth_unix.c
#Usesystemlibrariesforuserlookups.
PersistentPasswdoff
#Rootloginmustbeenabledexplicitly.Itisnotpermittedbydefault.
#Allowitonlyifyouknowwhatyouaredoing.
#RootLoginon
RootLoginon
DisplayConnect/etc/issue
root@solaris2:~#ftp10.66.10.108
Connectedto10.66.10.108.
220::ffff:10.66.10.108FTPserverready
Name(10.66.10.108:root):root
331Passwordrequiredforroot
Password:
530Loginincorrect.
Loginfailed.
RemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
ftp>pwd
530PleaseloginwithUSERandPASS
root@solaris2:~#cat/etc/ftpusers
#
#ListofusersdeniedaccesstotheFTPserver,seeftpusers(4).
#
#root
daemon
bin
sys
adm
lp
uucp
nuucp
dladm
netadm
netcfg
smmsp
gdm
xvm
mysql
openldap
webservd
nobody
noaccess
nobody4
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

3/8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

aiuser
unknown
ftp
dhcpserv
root@solaris2:~#ftp0
Connectedto0.0.0.0.
220::ffff:127.0.0.1FTPserverready
Name(0:root):root
331Passwordrequiredforroot
Password:
230Userrootloggedin
RemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
ftp>pwd
257"/root"isthecurrentdirectory
ftp>bye
221Goodbye.
root@solaris2:~#ftpwho
standaloneFTPdaemon[24541],upfor22min
nousersconnected
root@solaris2:~#ftpcount
Masterproftpdprocess24541:
0users
C:\Users\chittibabu.miriyala>ftp10.66.10.108
Connectedto10.66.10.108.
220::ffff:10.66.10.108FTPserverready
User(10.66.10.108:(none)):root
331Passwordrequiredforroot
Password:
230Userrootloggedin
ftp>

root@solaris2:~#ftpwho
standaloneFTPdaemon[24541],upfor23min
24597root[0m12s]0m6sidle
Serviceclass1user
root@solaris2:~#ftpcount
Masterproftpdprocess24541:
Serviceclass1user

TocreateAnonymoususer:
root@solaris2:~#passwdsftp
ftpLK
root@solaris2:~#passwdftp
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

4/8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

WARNING:changingaccountinreserveduidrange:ftp.
NewPassword:
ReenternewPassword:
passwd:passwordsuccessfullychangedforftp
root@solaris2:~#passwdsftp
ftpLK
root@solaris2:~#passwduftp
WARNING:changingaccountinreserveduidrange:ftp.
passwd:passwordinformationchangedforftp
root@solaris2:~#passwdsftp
ftpPS
root@solaris2:~#ftp0
Connectedto0.0.0.0.
220::ffff:127.0.0.1FTPserverready
Name(0:root):ftp
331Passwordrequiredforftp
Password:
530Loginincorrect.
Loginfailed.
RemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
ftp>bye
221Goodbye.
root@solaris2:~#vi/etc/ftpusers
hastftpuser
root@solaris2:~#ftp0
Connectedto0.0.0.0.
220::ffff:127.0.0.1FTPserverready
Name(0:root):ftp
331Passwordrequiredforftp
Password:
230Userftploggedin
RemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
ftp>bye
221Goodbye.
root@solaris2:~#ftpwho
standaloneFTPdaemon[24541],upfor35min
24639ftp[0m57s]0m53sidle
24649root[0m8s]0m3sidle
Serviceclass2users

ForavirtualhostthatisusingafixedIPaddress,usethefollowingdirective.Youmay
addmultipleIPaddressesseparatedbyspacesifneeded.
<VirtualHost10.0.0.1>
ServerName"MyvirtualFTPserver"
</VirtualHost>
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

5/8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

Toprovideanonymousftpaccesstoyoursite,usethesedirectives:
#Denyloginaccess
<LimitLOGIN>
DenyAll
</Limit>
<Anonymous~ftp>
#Allowanonymouslogins
<LimitLOGIN>
AllowAll
</Limit>....
</Anonymous>
ftpshutdown:
TheftpshutcommandclosesdowntheFTPserverataparticulartime.Ifyouwantto
stopservingFTPonly,butnotstopthedaemon(soitcanreportthe
serviceisnotavailabletoclients)thenusethisprocedure.Theftpshutcommandwill
blockconnectionsandstopthecurrentconnection,butnotshutdown
theserverdaemonitself.
root@solaris2:~#ftpshutnow
Note:
time:Shutdowntimethatisspecifiedbythewordnowforimmediateshutdown,orinone
oftwoformats(+numberorHHMM)forafutureshutdown
root@solaris2:~#cat/etc/shutmsg
2013123015505100100005
goingdownat%s
root@solaris2:~#svcsftp
STATESTIMEFMRI
online15:08:59svc:/network/ftp:default
root@solaris2:~#ftp0
Connectedto0.0.0.0.
500FTPservershutdown(goingdownatMonDec3015:50:512013)pleasetryagain
later
ftp>bye
torestartftp:
root@solaris2:~#ftprestart
/usr/sbin/ftpshut:/etc/shutmsgremoved
root@solaris2:~#ftp0
Connectedto0.0.0.0.
220::ffff:127.0.0.1FTPserverready
Name(0:root):root
331Passwordrequiredforroot
Password:
230Userrootloggedin
RemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
ftp>
root@solaris2:~#useraddmtest
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

6/8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

80blocks
root@solaris2:~#passwdtest
NewPassword:
ReenternewPassword:
passwd:passwordsuccessfullychangedfortest
root@solaris2:~#loginsxltest
test100staff10
/export/home/test
/usr/bin/bash
PS123013111
root@solaris2:~#dfh
FilesystemSizeUsedAvailableCapacityMountedon
rpool/export/home/test
9.8G35K3.5G1%/export/home/test
root@solaris2:~#ftp0
Connectedto0.0.0.0.
220::ffff:127.0.0.1FTPserverready
Name(0:root):test
331Passwordrequiredfortest
Password:
230Usertestloggedin
RemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
ftp>bye
221Goodbye.
root@solaris2:~#/usr/lib/inet/proftpdV
CompiletimeSettings:
Version:1.3.3g(maint)
Platform:SOLARIS2(SOLARIS2_11)[unavailable]
Built:TueApr23201315:59:08PDT
BuiltWith:
configure'CC=/ws/on11updatetools/SUNWspro/sunstudio12.1/bin/cc'
'CXX=/ws/on11updatetools/SUNWspro/sunstudio12.1/bin/CC''prefix=/usr''
mandir=/usr/share/man''bindir=/usr/bin''libdir=/usr/lib''sbindir=/usr/sbin''CFLAGS=
m32xO4xtarget=ultra2xarch=sparcvisxchip=ultra2Qoptioncg
xregs=no0x1.3a2c000000000p1022pplW2,xwrap_intxmemalign=8smt
I/usr/include/kerberosv5DHAVE_KRB5_H=1DKRB5_DLLIMP=
DHAVE__GETGRPSBYMEMBER''LDFLAGS=zguidance=nolazyloadznolazyload
lbsm''install_user=ul''install_group=gk''sysconfdir=/etc''localstatedir=/var/run''
libexecdir=/usr/lib/proftpd''enableipv6''enablectrls''enablefacl''enablenls''
enabledso''enableopenssl''disablestatic''with
modules=mod_solaris_audit:mod_solaris_priv''with
shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss''enablebuffer
size=16384'
CFLAGS:m32xO4xtarget=ultra2xarch=sparcvisxchip=ultra2Qoptioncg
xregs=no0x1.3a2c000000000p1022pplW2,xwrap_intxmemalign=8smt
I/usr/include/kerberosv5DHAVE_KRB5_H=1DKRB5_DLLIMP=
DHAVE__GETGRPSBYMEMBER
data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

7/8

3/15/2015

Administration:FTPADMINISTRATIONinsolaris11

LDFLAGS:L$(top_srcdir)/libzguidance=nolazyloadznolazyloadlbsm
LIBS:lsendfilelseclintllssllcryptolssllcryptolpamlsupplsocketlnsllresolv
ldl
Files:
ConfigurationFile:
/etc/proftpd.conf
PidFile:
/var/run/proftpd.pid
ScoreboardFile:
/var/run/proftpd.scoreboard
HeaderDirectory:
/usr/include/proftpd
SharedModuleDirectory:
/usr/lib/proftpd
Features:
Autoshadowsupport
+Controlssupport
+cursessupport
Developersupport
+DSOsupport
+IPv6support
+Largefilesupport
Lastlogsupport
ncursessupport
+NLSsupport
+OpenSSLsupport
+POSIXACLsupport
+Shadowfilesupport
+Sendfilesupport
+Tracesupport
TunableOptions:
PR_TUNABLE_BUFFER_SIZE=16384
PR_TUNABLE_DEFAULT_RCVBUFSZ=8192
PR_TUNABLE_DEFAULT_SNDBUFSZ=8192
PR_TUNABLE_GLOBBING_MAX_MATCHES=100000
PR_TUNABLE_GLOBBING_MAX_RECURSION=8
PR_TUNABLE_HASH_TABLE_SIZE=40
PR_TUNABLE_NEW_POOL_SIZE=512
PR_TUNABLE_SCOREBOARD_BUFFER_SIZE=80
PR_TUNABLE_SCOREBOARD_SCRUB_TIMER=30
PR_TUNABLE_SELECT_TIMEOUT=30
PR_TUNABLE_TIMEOUTIDENT=10
PR_TUNABLE_TIMEOUTIDLE=600
PR_TUNABLE_TIMEOUTLINGER=30
PR_TUNABLE_TIMEOUTLOGIN=300
PR_TUNABLE_TIMEOUTNOXFER=300
PR_TUNABLE_TIMEOUTSTALLED=3600
PR_TUNABLE_XFER_SCOREBOARD_UPDATES=10

data:text/htmlcharset=utf8,%3Ch3%20class%3D%22posttitle%20entrytitle%22%20itemprop%3D%22name%22%20style%3D%22margin%3A%200.75em

8/8

You might also like