<?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; FTP</title>
	<atom:link href="http://sysinfo.bascomp.org/tag/ftp/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>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>
