<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sys-Admin Information&#039;s &#187; SMF</title>
	<atom:link href="http://sysinfo.bascomp.org/category/solaris/smf/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Disable Telnet Session</title>
		<link>http://sysinfo.bascomp.org/2008/03/block-telnet-session/</link>
		<comments>http://sysinfo.bascomp.org/2008/03/block-telnet-session/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 08:16:21 +0000</pubDate>
		<dc:creator>Hell-me</dc:creator>
				<category><![CDATA[SMF]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Telnet]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/03/04/block-telnet-session/</guid>
		<description><![CDATA[Bellow this, is procedure to block/stop/disable telnet service at solaris 10

bash&#62; vi /etc/inetd.conf
&#40;then put comment out ‘#’ below)
#telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd

(then stop and restart services)

bash&#62; /etc/rc2.d/S72inetsvc stop
bash&#62; /etc/rc2.d/S72inetsvc start

or

bash&#62; /etc/init.d/inetsvc stop
bash&#62; /etc/init.d/inetsvc start

Update:
Solaris 10 x86 updae 6, telnet was offline/disable by default

bash&#62;cat /etc/release 
         [...]]]></description>
			<content:encoded><![CDATA[<p>Bellow this, is procedure to block/stop/disable telnet service at solaris 10</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inetd.conf
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">then</span> put comment out ‘<span style="color: #666666; font-style: italic;">#’ below)</span>
<span style="color: #666666; font-style: italic;">#telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd</span></pre></div></div>

<p>(then stop and restart services)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc2.d<span style="color: #000000; font-weight: bold;">/</span>S72inetsvc stop
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc2.d<span style="color: #000000; font-weight: bold;">/</span>S72inetsvc start</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>inetsvc stop
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>inetsvc start</pre></div></div>

<p><strong>Update:</strong><br />
Solaris 10 x86 updae 6, telnet was offline/disable by default</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>release 
                       Solaris <span style="color: #000000;">10</span> <span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">/</span>08 s10x_u6wos_07b X86
           Copyright <span style="color: #000000;">2008</span> Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled <span style="color: #000000;">27</span> October <span style="color: #000000;">2008</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span>svcs <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> telnet
offline         <span style="color: #000000;">13</span>:08:<span style="color: #000000;">13</span> svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>telnet:default</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/03/block-telnet-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting NTP Server &amp; Client in Solaris 10 (update)</title>
		<link>http://sysinfo.bascomp.org/2008/02/setting-ntp/</link>
		<comments>http://sysinfo.bascomp.org/2008/02/setting-ntp/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 06:34:25 +0000</pubDate>
		<dc:creator>Gun nee</dc:creator>
				<category><![CDATA[SMF]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[NTP]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/02/27/setting-ntp/</guid>
		<description><![CDATA[Setting NTP ( Network Time Protocol) on Solaris 10
Configuring an NTP Server 
1. Edit file ntp.conf

bash&#62; cp /etc/inet/ntp.server /etc/inet/ntp.conf
bash&#62; vi /etc/inet/ntp.conf

Add server address for ntp server

server 1.id.pool.ntp.org
server 1.asia.pool.ntp.org
server 3.asia.pool.ntp.org
broadcast 224.0.1.1 ttl 4
&#160;
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
&#160;
keys /etc/inet/ntp.keys
trustedkey [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Setting NTP ( Network Time Protocol) on Solaris 10</strong></p>
<p><strong>Configuring an NTP Server </strong><br />
<strong>1. Edit file ntp.conf</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.server <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf</pre></div></div>

<p>Add server address for ntp server</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">server 1.id.pool.ntp.org
server 1.asia.pool.ntp.org
server 3.asia.pool.ntp.org
broadcast 224.0.1.1 ttl 4
&nbsp;
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
&nbsp;
keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0</pre></div></div>

<p>Save your change configuration</p>
<p><strong>2. Refresh daemon NTP</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>ntp<span style="color: #000000; font-weight: bold;">/</span>ntp.drift
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm <span style="color: #7a0874; font-weight: bold;">enable</span> svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp</pre></div></div>

<p><strong>Configuring an NTP Client </strong><br />
<strong>1. Edit file ntp.conf</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.client <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>ntp<span style="color: #000000; font-weight: bold;">/</span>ntp.drift</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf
    server 10.10.10.1 prefer <span style="color: #666666; font-style: italic;"># IP NTP Server  Primary</span>
    server 10.10.10.2         <span style="color: #666666; font-style: italic;"># IP NTP Server Secondary</span>
    driftfile <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>ntp<span style="color: #000000; font-weight: bold;">/</span>ntp.drift</pre></div></div>

<p><strong>2. Refresh daemon NTP</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm <span style="color: #7a0874; font-weight: bold;">enable</span> svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm refresh svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm restart svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp</pre></div></div>

<p>You can use "ntpq -p" to monitor ntpd's performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/02/setting-ntp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ssh in Solaris</title>
		<link>http://sysinfo.bascomp.org/2008/01/ssh-in-solaris/</link>
		<comments>http://sysinfo.bascomp.org/2008/01/ssh-in-solaris/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 04:42:03 +0000</pubDate>
		<dc:creator>Gun nee</dc:creator>
				<category><![CDATA[SMF]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/01/28/ssh-in-solaris/</guid>
		<description><![CDATA[This post is about service ssh in solaris 9 or 10
Solaris 9
Disable service ssh ?

bash&#62;  /etc/init.d/sshd stop
bash&#62; /etc/rc3.d/S89sshd stop

Enable service ssh ?

bash&#62; /etc/init.d/sshd start
bash&#62; /etc/rc3.d/S89sshd start

Refresh service ssh ?

bash&#62; kill -HUP `cat /var/run/sshd.pid`

Solaris 10
First you can check service ssh with command

bash&#62; svcs &#124; grep ssh
online         Jan_21 [...]]]></description>
			<content:encoded><![CDATA[<p>This post is about service ssh in solaris 9 or 10</p>
<p><strong>Solaris 9</strong><br />
Disable service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sshd stop
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc3.d<span style="color: #000000; font-weight: bold;">/</span>S89sshd stop</pre></div></div>

<p>Enable service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sshd start
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc3.d<span style="color: #000000; font-weight: bold;">/</span>S89sshd start</pre></div></div>

<p>Refresh service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-HUP</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>sshd.pid<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

<p><strong>Solaris 10</strong><br />
First you can check service ssh with command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcs <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span>
online         Jan_21   svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default</pre></div></div>

<p>If status ssh offline, you can make online with command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm <span style="color: #7a0874; font-weight: bold;">enable</span> <span style="color: #660033;">-t</span> network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>svc<span style="color: #000000; font-weight: bold;">/</span>method<span style="color: #000000; font-weight: bold;">/</span>sshd start</pre></div></div>

<p>Disable service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm disable <span style="color: #660033;">-t</span> network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default</pre></div></div>

<p>Restart service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm restart network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>svc<span style="color: #000000; font-weight: bold;">/</span>method<span style="color: #000000; font-weight: bold;">/</span>sshd restart</pre></div></div>

<p>Refresh service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm refresh network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default</pre></div></div>

<p>For a root enable connect to host via ssh service</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>sshd_config</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[....]
# Valid options are yes, without-password, no.
PermitRootLogin no
[....]</pre></div></div>

<p>Replace <strong>no</strong> with <strong>yes</strong>, after that save the edited configuration.<br />
Don't forget for the restart service ssh, after edit configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/01/ssh-in-solaris/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Create User Who Can Only Connect Through FTP</title>
		<link>http://sysinfo.bascomp.org/2007/07/create-user-who-can-only-connect-through-ftp/</link>
		<comments>http://sysinfo.bascomp.org/2007/07/create-user-who-can-only-connect-through-ftp/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 06:11:53 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[SMF]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/07/12/create-user-who-can-only-connect-through-ftp/</guid>
		<description><![CDATA[This is was created user "only" connect through FTP,Used in Solaris 9

bash&#62; uname -sr
SunOS 5.9


bash&#62; cat /etc/shells
/bin/bash
&#91;....&#93;
/bin/ftpaccess
/sbin/sh


The Tricks is direct users shell from "bash" to "ftpaccess"

bash&#62; useradd -d /export/home/ftpuser -s /bin/ftpaccess ftpuser

Now connect from windows box to solaris server

dos&#62; C:\&#62; ftp serverftp
Connected to serverftp.
220 serverftp NcFTPd Server &#40;registered copy&#41; ready.
User &#40;serverftp:&#40;none&#41;&#41;: ftpuser
331 User testftp okay, [...]]]></description>
			<content:encoded><![CDATA[<p>This is was created user "only" connect through FTP,Used in Solaris 9</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-sr</span>
SunOS <span style="color: #000000;">5.9</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>shells
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>....<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ftpaccess
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span></pre></div></div>

<p><span id="more-15"></span></p>
<p>The Tricks is direct users shell from "bash" to "ftpaccess"</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> useradd <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>export<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ftpuser <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ftpaccess ftpuser</pre></div></div>

<p>Now connect from windows box to solaris server</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">dos&gt; C:\&gt; ftp serverftp
Connected to serverftp.
<span style="color: #cc66cc;">220</span> serverftp NcFTPd Server <span style="color: #66cc66;">&#40;</span>registered <span style="color: #b1b100; font-weight: bold;">copy</span><span style="color: #66cc66;">&#41;</span> ready.
User <span style="color: #66cc66;">&#40;</span>serverftp:<span style="color: #66cc66;">&#40;</span>none<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>: ftpuser
<span style="color: #cc66cc;">331</span> User testftp okay, need password.
Password:
<span style="color: #cc66cc;">230</span>-You are user #<span style="color: #cc66cc;">1</span> of <span style="color: #cc66cc;">50</span> simultaneous users allowed.
<span style="color: #cc66cc;">230</span>-
<span style="color: #cc66cc;">230</span> Restricted user logged <span style="color: #00b100; font-weight: bold;">in</span>.
ftp&gt; ls
<span style="color: #cc66cc;">200</span> PORT command successful.
<span style="color: #cc66cc;">150</span> Opening ASCII mode data connection <span style="color: #00b100; font-weight: bold;">for</span> /bin/ls.
.profile
local.cshrc
local.login
local.profile
<span style="color: #cc66cc;">226</span> Listing completed.
ftp: <span style="color: #cc66cc;">51</span> bytes received <span style="color: #00b100; font-weight: bold;">in</span> <span style="color: #cc66cc;">0</span>,01Seconds <span style="color: #cc66cc;">3</span>,40Kbytes/sec.
Done!.</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/07/create-user-who-can-only-connect-through-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
