<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Linux Disable Shell / FTP Access For a User Account</title> <atom:link href="http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: last</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-66282</link> <dc:creator>last</dc:creator> <pubDate>Mon, 02 Jan 2012 16:33:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-66282</guid> <description>Folks help please
I am a new sys admin and when I arrived at org someone had already installed and configured centos 5 linux server. I wanted to allow only to users acess to internet. so I found out that 5 users are on dhcp and they connect to internet..yet even when i put the rest on dhcp, they still cant access internet. The rest are on static ip and even if you add the gateway they wont get internet. please help me as to how I can give some access to internet or deny. the former guy never left documentation. hey, tell me also what i need to do becuase now I dont know how to block or allow access</description> <content:encoded><![CDATA[<p>Folks help please<br
/> I am a new sys admin and when I arrived at org someone had already installed and configured centos 5 linux server. I wanted to allow only to users acess to internet. so I found out that 5 users are on dhcp and they connect to internet..yet even when i put the rest on dhcp, they still cant access internet. The rest are on static ip and even if you add the gateway they wont get internet. please help me as to how I can give some access to internet or deny. the former guy never left documentation. hey, tell me also what i need to do becuase now I dont know how to block or allow access</p> ]]></content:encoded> </item> <item><title>By: KlausRo</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-65339</link> <dc:creator>KlausRo</dc:creator> <pubDate>Fri, 09 Dec 2011 00:49:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-65339</guid> <description>Awesome, thanks for this tip!</description> <content:encoded><![CDATA[<p>Awesome, thanks for this tip!</p> ]]></content:encoded> </item> <item><title>By: ip intel</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-63276</link> <dc:creator>ip intel</dc:creator> <pubDate>Fri, 07 Oct 2011 13:20:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-63276</guid> <description>n~#usermod -h
:)</description> <content:encoded><![CDATA[<p>n~#usermod -h<br
/> :)</p> ]]></content:encoded> </item> <item><title>By: Jesse</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-60582</link> <dc:creator>Jesse</dc:creator> <pubDate>Fri, 08 Jul 2011 20:11:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-60582</guid> <description>NM, I found it https://help.ubuntu.com/10.04/serverguide/C/ftp-server.html</description> <content:encoded><![CDATA[<p>NM, I found it <a
href="https://help.ubuntu.com/10.04/serverguide/C/ftp-server.html" rel="nofollow">https://help.ubuntu.com/10.04/serverguide/C/ftp-server.html</a></p> ]]></content:encoded> </item> <item><title>By: Jesse</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-60581</link> <dc:creator>Jesse</dc:creator> <pubDate>Fri, 08 Jul 2011 20:06:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-60581</guid> <description>I wanted to have an account that could only FTP and not have any shell access.
I used the above mentioned &#039;chsh -s /sbin/nologin&#039; but then it would not allow login to FTP either.
I have restored with &#039;chsh -s /bin/bash username&#039;.
Any idea on how to allow an account FTP access but no shell access?</description> <content:encoded><![CDATA[<p>I wanted to have an account that could only FTP and not have any shell access.<br
/> I used the above mentioned &#8216;chsh -s /sbin/nologin&#8217; but then it would not allow login to FTP either.<br
/> I have restored with &#8216;chsh -s /bin/bash username&#8217;.</p><p>Any idea on how to allow an account FTP access but no shell access?</p> ]]></content:encoded> </item> <item><title>By: harish</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-57580</link> <dc:creator>harish</dc:creator> <pubDate>Sat, 23 Apr 2011 04:42:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-57580</guid> <description>how to enable the ssh account when it is disabled by chsh</description> <content:encoded><![CDATA[<p>how to enable the ssh account when it is disabled by chsh</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-45320</link> <dc:creator>Anonymous</dc:creator> <pubDate>Sun, 27 Dec 2009 02:20:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-45320</guid> <description>You can disable the account by locking it with:
passwd -l {username}
What it does is place a &#039;!&#039; in front of the encrypted password in /etc/shadow.</description> <content:encoded><![CDATA[<p>You can disable the account by locking it with:<br
/> passwd -l {username}<br
/> What it does is place a &#8216;!&#8217; in front of the encrypted password in /etc/shadow.</p> ]]></content:encoded> </item> <item><title>By: Alfa</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-44611</link> <dc:creator>Alfa</dc:creator> <pubDate>Thu, 12 Nov 2009 02:37:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-44611</guid> <description>alternative, you can edit /etc/passwd.
Ex.
Before :
ftpusers:x:1000:1000:cyber,,,:/home/ftpusers:/bin/bash
After :
ftpusersr:x:1000:1000:cyber,,,:/home/ftpusers:/usr/sbin/nologin</description> <content:encoded><![CDATA[<p>alternative, you can edit /etc/passwd.<br
/> Ex.<br
/> Before :<br
/> ftpusers:x:1000:1000:cyber,,,:/home/ftpusers:/bin/bash</p><p>After :<br
/> ftpusersr:x:1000:1000:cyber,,,:/home/ftpusers:/usr/sbin/nologin</p> ]]></content:encoded> </item> <item><title>By: Markus</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-42263</link> <dc:creator>Markus</dc:creator> <pubDate>Sat, 27 Jun 2009 07:34:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-42263</guid> <description>Setting shell to nologin do not prevent the user to forward ports with SSH.</description> <content:encoded><![CDATA[<p>Setting shell to nologin do not prevent the user to forward ports with SSH.</p> ]]></content:encoded> </item> <item><title>By: Tim (kb0odu)</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-42249</link> <dc:creator>Tim (kb0odu)</dc:creator> <pubDate>Fri, 26 Jun 2009 00:29:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-42249</guid> <description>To get the just the IP Address under linux, try the following command:
&lt;code&gt;ifconfig eth1 &#124; grep &#039;inet&#039;&lt;/code&gt;
This will return both the IPv4 and IPv6 Addresses.  If you only want the IPv4 Address, try the following:
&lt;code&gt;ifconfig eth1 &#124; grep &#039;Bcast&#039;&lt;/code&gt;
Change to the appropriate interface if it isn&#039;t eth1.
Tim
kboodu</description> <content:encoded><![CDATA[<p>To get the just the IP Address under linux, try the following command:<br
/> <code>ifconfig eth1 | grep 'inet'</code><br
/> This will return both the IPv4 and IPv6 Addresses.  If you only want the IPv4 Address, try the following:<br
/> <code>ifconfig eth1 | grep 'Bcast'</code><br
/> Change to the appropriate interface if it isn&#8217;t eth1.<br
/> Tim<br
/> kboodu</p> ]]></content:encoded> </item> <item><title>By: Rick</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-42241</link> <dc:creator>Rick</dc:creator> <pubDate>Thu, 25 Jun 2009 17:38:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-42241</guid> <description>Anurdh65,
To get the ip address of a linux box, type the following from the command prompt (bash shell):
ifconfig
Sometimes you can also get ip information using the following hack:
host `hostname`
To get the ip address of a windows box, type the following form the command promt (dos shell):
ipconfig</description> <content:encoded><![CDATA[<p>Anurdh65,</p><p>To get the ip address of a linux box, type the following from the command prompt (bash shell):</p><p>ifconfig</p><p>Sometimes you can also get ip information using the following hack:</p><p>host `hostname`</p><p>To get the ip address of a windows box, type the following form the command promt (dos shell):</p><p>ipconfig</p> ]]></content:encoded> </item> <item><title>By: Vishal</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-42236</link> <dc:creator>Vishal</dc:creator> <pubDate>Thu, 25 Jun 2009 14:08:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-42236</guid> <description>Anurdh,
Can you elaborate your question pls?</description> <content:encoded><![CDATA[<p>Anurdh,<br
/> Can you elaborate your question pls?</p> ]]></content:encoded> </item> <item><title>By: anurdh65</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-42229</link> <dc:creator>anurdh65</dc:creator> <pubDate>Thu, 25 Jun 2009 04:24:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-42229</guid> <description>Hi,
Thanks for this information. Can anybody help me to get the ip address as Linux coding. I normally use the website ip details to get the ip address for windows. But i want to get the ip address for teh linux platform can anybody help me for the coding</description> <content:encoded><![CDATA[<p>Hi,</p><p>Thanks for this information. Can anybody help me to get the ip address as Linux coding. I normally use the website ip details to get the ip address for windows. But i want to get the ip address for teh linux platform can anybody help me for the coding</p> ]]></content:encoded> </item> <item><title>By: daniels</title><link>http://www.cyberciti.biz/faq/how-to-disable-shell-ftp-access-to-newuser/#comment-42220</link> <dc:creator>daniels</dc:creator> <pubDate>Wed, 24 Jun 2009 11:52:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4201#comment-42220</guid> <description>Why not use virtual users for email?</description> <content:encoded><![CDATA[<p>Why not use virtual users for email?</p> ]]></content:encoded> </item> </channel> </rss>
