<?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: Howto prevent non-root users from login into the system using nologin shell</title> <atom:link href="http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Chris</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-174229</link> <dc:creator>Chris</dc:creator> <pubDate>Thu, 22 Sep 2011 09:27:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-174229</guid> <description>@jason,
Make sure that this line is present in your /etc/pam.d/vsftpd:
auth	required	pam_shells.so
This will force users to have a valid shell to log in.
If you set a users shell to /bin/false or /sbin/nologin then FTP logins will not be allowed also.
Regards,
Chris</description> <content:encoded><![CDATA[<p>@jason,</p><p>Make sure that this line is present in your /etc/pam.d/vsftpd:</p><p>auth	required	pam_shells.so</p><p>This will force users to have a valid shell to log in.<br
/> If you set a users shell to /bin/false or /sbin/nologin then FTP logins will not be allowed also.</p><p>Regards,<br
/> Chris</p> ]]></content:encoded> </item> <item><title>By: Thibs</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-174007</link> <dc:creator>Thibs</dc:creator> <pubDate>Fri, 16 Sep 2011 09:35:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-174007</guid> <description>By the way, the command  chsh is designed for changing shell (instead of using usermod)
e.g. :
chsh -s /bin/false tom</description> <content:encoded><![CDATA[<p>By the way, the command  chsh is designed for changing shell (instead of using usermod)</p><p>e.g. :<br
/> chsh -s /bin/false tom</p> ]]></content:encoded> </item> <item><title>By: jason</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-168186</link> <dc:creator>jason</dc:creator> <pubDate>Mon, 10 Jan 2011 09:32:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-168186</guid> <description>I need a fix like this, that still allows the user to access vsftpd. I&#039;ve looked around and it looks like installing some kind of secure shell is my only option. I&#039;m hoping you may know a way that&#039;s as easy as this modification. Thanks in advance.</description> <content:encoded><![CDATA[<p>I need a fix like this, that still allows the user to access vsftpd. I&#8217;ve looked around and it looks like installing some kind of secure shell is my only option. I&#8217;m hoping you may know a way that&#8217;s as easy as this modification. Thanks in advance.</p> ]]></content:encoded> </item> <item><title>By: Guan</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-159788</link> <dc:creator>Guan</dc:creator> <pubDate>Wed, 22 Sep 2010 13:57:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-159788</guid> <description>Use a nologin/false shell is a quick solution to disable login completely.   However, there are needs to only allow login from certain location, say only locally.   Linux-PAM would allow a much finer grain login control.   Check out &#039;man access.conf&#039;.    It is pretty useful when you have very specific login restrictions.</description> <content:encoded><![CDATA[<p>Use a nologin/false shell is a quick solution to disable login completely.   However, there are needs to only allow login from certain location, say only locally.   Linux-PAM would allow a much finer grain login control.   Check out &#8216;man access.conf&#8217;.    It is pretty useful when you have very specific login restrictions.</p> ]]></content:encoded> </item> <item><title>By: ruben</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-156704</link> <dc:creator>ruben</dc:creator> <pubDate>Fri, 18 Jun 2010 15:18:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-156704</guid> <description>excelent!
this info helped me !</description> <content:encoded><![CDATA[<p>excelent!<br
/> this info helped me !</p> ]]></content:encoded> </item> <item><title>By: nagendra rao</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-115014</link> <dc:creator>nagendra rao</dc:creator> <pubDate>Mon, 16 Apr 2007 07:25:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-115014</guid> <description>i got one proble in sftp. how to blck sft service to a particular user</description> <content:encoded><![CDATA[<p>i got one proble in sftp. how to blck sft service to a particular user</p> ]]></content:encoded> </item> <item><title>By: R_Smith</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-110061</link> <dc:creator>R_Smith</dc:creator> <pubDate>Sun, 08 Apr 2007 00:17:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-110061</guid> <description>I was thinking about the main ftp account, that has access in the direcory that is one level up from public_html. There is no option in Cpanel to change this ftp account password.</description> <content:encoded><![CDATA[<p>I was thinking about the main ftp account, that has access in the direcory that is one level up from public_html. There is no option in Cpanel to change this ftp account password.</p> ]]></content:encoded> </item> <item><title>By: nixcraft</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-109897</link> <dc:creator>nixcraft</dc:creator> <pubDate>Sat, 07 Apr 2007 18:17:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-109897</guid> <description>You can use &#039;FTP Manager&#039; to disable or enable FTP user.</description> <content:encoded><![CDATA[<p>You can use &#8216;FTP Manager&#8217; to disable or enable FTP user.</p> ]]></content:encoded> </item> <item><title>By: R_Smith</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-109888</link> <dc:creator>R_Smith</dc:creator> <pubDate>Sat, 07 Apr 2007 16:41:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-109888</guid> <description>Hello,
I have CentOS on dedicated server with Cpanel/WHM installed.
I want more people to have access to Cpanel, but to disable main ftp domain access because if they FTP with the cpanel user/pass they will be able to access the folder MAIL.
What I did so far: I chaged the Cpanel/username password by: ssh passwd , this way the FTP password remained as the old one. This was a solution, because people were not able to use FTP with the Cpanel password. However, in 24h the FTP password was automatically synchonized with the Cpanel password - it became the same as cpanel password.
1. How to disable main domain ftp access for Cpanel user?
2. Maybe there is a way to disable automatic ftp password synchronization?
Thanks in advance!!!</description> <content:encoded><![CDATA[<p>Hello,</p><p>I have CentOS on dedicated server with Cpanel/WHM installed.</p><p>I want more people to have access to Cpanel, but to disable main ftp domain access because if they FTP with the cpanel user/pass they will be able to access the folder MAIL.</p><p>What I did so far: I chaged the Cpanel/username password by: ssh passwd , this way the FTP password remained as the old one. This was a solution, because people were not able to use FTP with the Cpanel password. However, in 24h the FTP password was automatically synchonized with the Cpanel password &#8211; it became the same as cpanel password.</p><p>1. How to disable main domain ftp access for Cpanel user?<br
/> 2. Maybe there is a way to disable automatic ftp password synchronization?</p><p>Thanks in advance!!!</p> ]]></content:encoded> </item> <item><title>By: max</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-29726</link> <dc:creator>max</dc:creator> <pubDate>Sat, 18 Nov 2006 06:25:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-29726</guid> <description>Zach,
to deny non-root logins, simply &#039;touch /etc/nologin&#039;</description> <content:encoded><![CDATA[<p>Zach,<br
/> to deny non-root logins, simply &#8216;touch /etc/nologin&#8217;</p> ]]></content:encoded> </item> <item><title>By: nixcraft</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-29393</link> <dc:creator>nixcraft</dc:creator> <pubDate>Fri, 17 Nov 2006 19:13:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-29393</guid> <description>Zach,
Good question.
Use /bin/false on Debian or Ubuntu Linux system. Both /sbin/nologin and /bin/false are binary file. Don&#039;t softlink them with shell/perl script.
&lt;b&gt;usermod -s /bin/false tom&lt;/b&gt;</description> <content:encoded><![CDATA[<p>Zach,</p><p>Good question.</p><p>Use /bin/false on Debian or Ubuntu Linux system. Both /sbin/nologin and /bin/false are binary file. Don&#8217;t softlink them with shell/perl script.</p><p><b>usermod -s /bin/false tom</b></p> ]]></content:encoded> </item> <item><title>By: Zach True</title><link>http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-29355</link> <dc:creator>Zach True</dc:creator> <pubDate>Fri, 17 Nov 2006 17:38:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/linux-prevent-normal-users-from-logging-into-system.html#comment-29355</guid> <description>On a Debian system, the nologin file does not exist.  Is this a file that I can create?  If so, do I stick it in /etc? Do I have to link it to a file in /sbin?  Also, what should be the contents of the file?
Thanks</description> <content:encoded><![CDATA[<p>On a Debian system, the nologin file does not exist.  Is this a file that I can create?  If so, do I stick it in /etc? Do I have to link it to a file in /sbin?  Also, what should be the contents of the file?</p><p>Thanks</p> ]]></content:encoded> </item> </channel> </rss>
