<?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: Top 20 OpenSSH Server Best Security Practices</title> <atom:link href="http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.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: graz</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-178889</link> <dc:creator>graz</dc:creator> <pubDate>Sun, 22 Jan 2012 10:11:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-178889</guid> <description>I&#039;m still a bit unsure about how using sudo to su - is a good idea.
logon to server with regular account and bad password 12345678
sudo su-
12345678 and you have a root shell..
Surely to step up to the root user from a regular account you should be issuing a separate password. I see the thought behind protecting the root password by never having to type it and no one having to know it, but with sudo su - someone can gain root without the root pw anyway, so whats the point of protecting it if its not needed anyway.
Just my 2 cents anyway..</description> <content:encoded><![CDATA[<p>I&#8217;m still a bit unsure about how using sudo to su &#8211; is a good idea.</p><p>logon to server with regular account and bad password 12345678<br
/> sudo su-<br
/> 12345678 and you have a root shell..</p><p>Surely to step up to the root user from a regular account you should be issuing a separate password. I see the thought behind protecting the root password by never having to type it and no one having to know it, but with sudo su &#8211; someone can gain root without the root pw anyway, so whats the point of protecting it if its not needed anyway.</p><p>Just my 2 cents anyway..</p> ]]></content:encoded> </item> <item><title>By: Andrew Bruce</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-178790</link> <dc:creator>Andrew Bruce</dc:creator> <pubDate>Thu, 19 Jan 2012 00:59:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-178790</guid> <description>One technique I like to use is to have local, low-priv accounts used for SSH access on a nice&#039;n&#039;empty box. This in conjunction with TCP forwarding allows me to let users in (no passwords, of course, just PK authentication) and then chroot the users to lock them in their current dir. That minimizes zero-day risk cuz the SSH users have no privs on the domain, network, or anything else--they are simply placeholders to allow TCP port forwarding to be setup. Users setting up tunnels to &quot;real&quot; servers get prompted with our strong two-factor authentication so we have the best of both worlds.
VPN would be fine but it is very slow compared to SSH. No, this is *not* due to protocol (I&#039;ve timed VPN and SSH and there is no detectable difference in throughput). It is instead due to the edge firewalls that trap / track all VPN traffic and the shitty VPN clients the organization wants us to use.
To sum up: keep your SSH server clean of all other software, use local low-priv user accounts, use only PK for authentication, maybe tie in IP filtering to prevent hackers from even knowing about your listening port. Port knocking is too complicated for me to explain to users, or I&#039;d be using that instead (tres kewl approach).</description> <content:encoded><![CDATA[<p>One technique I like to use is to have local, low-priv accounts used for SSH access on a nice&#8217;n'empty box. This in conjunction with TCP forwarding allows me to let users in (no passwords, of course, just PK authentication) and then chroot the users to lock them in their current dir. That minimizes zero-day risk cuz the SSH users have no privs on the domain, network, or anything else&#8211;they are simply placeholders to allow TCP port forwarding to be setup. Users setting up tunnels to &#8220;real&#8221; servers get prompted with our strong two-factor authentication so we have the best of both worlds.</p><p>VPN would be fine but it is very slow compared to SSH. No, this is *not* due to protocol (I&#8217;ve timed VPN and SSH and there is no detectable difference in throughput). It is instead due to the edge firewalls that trap / track all VPN traffic and the shitty VPN clients the organization wants us to use.</p><p>To sum up: keep your SSH server clean of all other software, use local low-priv user accounts, use only PK for authentication, maybe tie in IP filtering to prevent hackers from even knowing about your listening port. Port knocking is too complicated for me to explain to users, or I&#8217;d be using that instead (tres kewl approach).</p> ]]></content:encoded> </item> <item><title>By: MUNIKRISHNAN.M</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-178244</link> <dc:creator>MUNIKRISHNAN.M</dc:creator> <pubDate>Mon, 09 Jan 2012 06:12:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-178244</guid> <description>this details are very help full Linux learner and working system admins
thank you</description> <content:encoded><![CDATA[<p>this details are very help full Linux learner and working system admins</p><p>thank you</p> ]]></content:encoded> </item> <item><title>By: Henry Paul</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-177714</link> <dc:creator>Henry Paul</dc:creator> <pubDate>Fri, 30 Dec 2011 06:00:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-177714</guid> <description>There is another solution to root auditing and login. We use root login with without-password option so key login is allowed remotely, password is denied. Then we configured EASH shell for session logging on our jump server and restrict ssh logins via jump server. Basically the entire ssh session is logged to a remote server for future auditing, and we still have a more convenient access to the system for running automated scripts, etc.</description> <content:encoded><![CDATA[<p>There is another solution to root auditing and login. We use root login with without-password option so key login is allowed remotely, password is denied. Then we configured EASH shell for session logging on our jump server and restrict ssh logins via jump server. Basically the entire ssh session is logged to a remote server for future auditing, and we still have a more convenient access to the system for running automated scripts, etc.</p> ]]></content:encoded> </item> <item><title>By: Siddharth</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-176866</link> <dc:creator>Siddharth</dc:creator> <pubDate>Mon, 12 Dec 2011 19:13:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-176866</guid> <description>hey, Vivek,
thank you for this excellent post.
I have a query
Is it possible to block multiple ssh logins from a single client pc?
i mean, a single client must be allowed to run only one ssh sessionat any given time.
If it helps, my server is debian and client is ubuntu</description> <content:encoded><![CDATA[<p>hey, Vivek,<br
/> thank you for this excellent post.<br
/> I have a query<br
/> Is it possible to block multiple ssh logins from a single client pc?<br
/> i mean, a single client must be allowed to run only one ssh sessionat any given time.<br
/> If it helps, my server is debian and client is ubuntu</p> ]]></content:encoded> </item> <item><title>By: MetroMagz</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-176269</link> <dc:creator>MetroMagz</dc:creator> <pubDate>Thu, 01 Dec 2011 14:37:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-176269</guid> <description>You could disable it and run as the another account which that account has same permit as root account, that&#039;s what i do on my server.
This tutorial very useful as the sysadmin.</description> <content:encoded><![CDATA[<p>You could disable it and run as the another account which that account has same permit as root account, that&#8217;s what i do on my server.</p><p>This tutorial very useful as the sysadmin.</p> ]]></content:encoded> </item> <item><title>By: arrogant admin</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-176112</link> <dc:creator>arrogant admin</dc:creator> <pubDate>Sun, 27 Nov 2011 10:41:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-176112</guid> <description>&lt;blockquote&gt;# Turn on  reverse name checking
VerifyReverseMapping yes&lt;/blockquote&gt;
Don&#039;t do this. It will cause you a painful delay when logging in, should your DNS servers get inaccessible (i.e. uplink down) or misconfigured.
Exacty the moment you need to fix it ASAP.
And, probably, a lot of &quot;POSSIBLE BREAK-IN ATTEMPT&quot; useless chatter in your syslog should your ssh clients&#039; reverse zone be misconfigured somehow (a lot of ISPs are misconfigured that way, so nobody cares). Don&#039;t know if recent versions of sshd do that, though. Seen that on older systems.</description> <content:encoded><![CDATA[<blockquote><p># Turn on  reverse name checking<br
/> VerifyReverseMapping yes</p></blockquote><p>Don&#8217;t do this. It will cause you a painful delay when logging in, should your DNS servers get inaccessible (i.e. uplink down) or misconfigured.<br
/> Exacty the moment you need to fix it ASAP.</p><p>And, probably, a lot of &#8220;POSSIBLE BREAK-IN ATTEMPT&#8221; useless chatter in your syslog should your ssh clients&#8217; reverse zone be misconfigured somehow (a lot of ISPs are misconfigured that way, so nobody cares). Don&#8217;t know if recent versions of sshd do that, though. Seen that on older systems.</p> ]]></content:encoded> </item> <item><title>By: vinit</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-176091</link> <dc:creator>vinit</dc:creator> <pubDate>Sat, 26 Nov 2011 12:36:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-176091</guid> <description>hi i used the command SCP to transfer files but uploading speed is not goin above 32KBps. WHY?
is there any limit of speed in SCP
second thing is there any way to transfer filesat high speed but secure way between two Linux machine.
please reply me at my ID vinit.j@echidnainc.com thanks</description> <content:encoded><![CDATA[<p>hi i used the command SCP to transfer files but uploading speed is not goin above 32KBps. WHY?<br
/> is there any limit of speed in SCP<br
/> second thing is there any way to transfer filesat high speed but secure way between two Linux machine.<br
/> please reply me at my ID <a
href="mailto:vinit.j@echidnainc.com">vinit.j@echidnainc.com</a> thanks</p> ]]></content:encoded> </item> <item><title>By: Jose Baars</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-174606</link> <dc:creator>Jose Baars</dc:creator> <pubDate>Mon, 03 Oct 2011 16:58:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-174606</guid> <description>If you demand or even allow the use of su or sudo, then you must disable any form of interactive access of user root, even at console level, or else you have a possible accountability leak.
Basically everybody implicitly agrees that the fundamental security model of Unix/Linux is flawed in at least these ways:
- It doesn&#039;t scale well ( more than 1 admin *have* to use one account: root)
- It doesn&#039;t offer sufficient granularity ( you either have all with root, or almost   nothing)
- It is virtually impossible to guarantee accountability in all cases.
I would be interested to see developments to solve that problem in more fundamental way than to patch it up with nice or, more often, ugly and cumbersome add-ons.</description> <content:encoded><![CDATA[<p>If you demand or even allow the use of su or sudo, then you must disable any form of interactive access of user root, even at console level, or else you have a possible accountability leak.</p><p>Basically everybody implicitly agrees that the fundamental security model of Unix/Linux is flawed in at least these ways:<br
/> - It doesn&#8217;t scale well ( more than 1 admin *have* to use one account: root)<br
/> - It doesn&#8217;t offer sufficient granularity ( you either have all with root, or almost   nothing)<br
/> - It is virtually impossible to guarantee accountability in all cases.</p><p>I would be interested to see developments to solve that problem in more fundamental way than to patch it up with nice or, more often, ugly and cumbersome add-ons.</p> ]]></content:encoded> </item> <item><title>By: Adil</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-174592</link> <dc:creator>Adil</dc:creator> <pubDate>Mon, 03 Oct 2011 08:27:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-174592</guid> <description>yup chris it is
~/.ssh/authorized_key or ~/.ssh/authorized_key2
here is the place where you past the new key.</description> <content:encoded><![CDATA[<p>yup chris it is</p><p>~/.ssh/authorized_key or ~/.ssh/authorized_key2</p><p>here is the place where you past the new key.</p> ]]></content:encoded> </item> <item><title>By: Vietnam advisor</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-173727</link> <dc:creator>Vietnam advisor</dc:creator> <pubDate>Tue, 06 Sep 2011 11:23:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-173727</guid> <description>Thanks for your info &quot; OpenSSH is the implementation of the SSH protocol. OpenSSH is recommended for remote login, making backups, remote file transfer via scp or sftp, and much more. SSH is perfect to keep confidentiality and integrity for data exchanged between two networks and systems&quot;.
Anyone can suggest a smart expert to set it up for my company.</description> <content:encoded><![CDATA[<p>Thanks for your info &#8221; OpenSSH is the implementation of the SSH protocol. OpenSSH is recommended for remote login, making backups, remote file transfer via scp or sftp, and much more. SSH is perfect to keep confidentiality and integrity for data exchanged between two networks and systems&#8221;.<br
/> Anyone can suggest a smart expert to set it up for my company.</p> ]]></content:encoded> </item> <item><title>By: CiderMark</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-173164</link> <dc:creator>CiderMark</dc:creator> <pubDate>Tue, 09 Aug 2011 07:33:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-173164</guid> <description>@markhahn
ssh only knows the key if you are using one and all that proves is that the person had access to the key. Using a key for root is fine but you would still need to set a password for root (in case the network is down and you have to access the server from the console). With remote root login enabled, I would only need access to someone else&#039;s PC and the password for root. There is nothing that could be used, forensically, on the server to identify me. At least if I had to log on to my own, personal, account and then su to root the IP address AND the originators login are recorded.
Having said that, though, if you haven&#039;t got centralised logging once you&#039;ve got access to root you just delete the auditing files and do whatever it was you weren&#039;t supposed to be doing!!!</description> <content:encoded><![CDATA[<p>@markhahn</p><p>ssh only knows the key if you are using one and all that proves is that the person had access to the key. Using a key for root is fine but you would still need to set a password for root (in case the network is down and you have to access the server from the console). With remote root login enabled, I would only need access to someone else&#8217;s PC and the password for root. There is nothing that could be used, forensically, on the server to identify me. At least if I had to log on to my own, personal, account and then su to root the IP address AND the originators login are recorded.</p><p>Having said that, though, if you haven&#8217;t got centralised logging once you&#8217;ve got access to root you just delete the auditing files and do whatever it was you weren&#8217;t supposed to be doing!!!</p> ]]></content:encoded> </item> <item><title>By: markhahn</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-173073</link> <dc:creator>markhahn</dc:creator> <pubDate>Fri, 05 Aug 2011 18:54:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-173073</guid> <description>ssh, of course, knows whose key was used to login as root - there&#039;s no lack of accountability there.  you don&#039;t get an audit trail of what the person did, but you don&#039;t with &quot;sudo su -&quot; either.  it really boils down to whether you use root so infrequently that sudo is viable - remember that every time you type your password, you stand a chance of exposing it.</description> <content:encoded><![CDATA[<p>ssh, of course, knows whose key was used to login as root &#8211; there&#8217;s no lack of accountability there.  you don&#8217;t get an audit trail of what the person did, but you don&#8217;t with &#8220;sudo su -&#8221; either.  it really boils down to whether you use root so infrequently that sudo is viable &#8211; remember that every time you type your password, you stand a chance of exposing it.</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-173020</link> <dc:creator>Cody</dc:creator> <pubDate>Wed, 03 Aug 2011 13:09:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-173020</guid> <description>Well said, Philippe.
Frankly, someone being rude in such a way is only going to make that person look less intelligible and that person will also be taken less seriously. It comes down to constructive criticism versus being arrogant and holding little argument, in the end.
And the funny thing is, regarding his remark of you might as well turn off ssh. Well then why not go further and say: turn off the computer? Ah right - because any computer is not 100% secure, even a computer that is off. Yes, you should secure it as much as possible but to claim turning off ssh is going to make it magically more secure is ridiculous. In that case, you may as well turn off other services that are far less secure. Indeed - there&#039;s many attack vectors out there, and as you (Philippe) point out not having a valid login is pretty much not nice for an attacker if you can&#039;t login with root remotely. Indeed, by the time you may find a valid login, you may have been blocked by a firewall or some other system. Exactly why the old apache phf bug was so useful: it wasn&#039;t so you could crack root password, it was so you could get a valid login so you can get one step closer and you could even have possibility of trying a local exploit - more of those than remote, more than likely. If you by chance had a root password found, fine, but that wasn&#039;t the only use of it (clearly).
Thing is - the original person, anomie, was correct.</description> <content:encoded><![CDATA[<p>Well said, Philippe.</p><p>Frankly, someone being rude in such a way is only going to make that person look less intelligible and that person will also be taken less seriously. It comes down to constructive criticism versus being arrogant and holding little argument, in the end.</p><p>And the funny thing is, regarding his remark of you might as well turn off ssh. Well then why not go further and say: turn off the computer? Ah right &#8211; because any computer is not 100% secure, even a computer that is off. Yes, you should secure it as much as possible but to claim turning off ssh is going to make it magically more secure is ridiculous. In that case, you may as well turn off other services that are far less secure. Indeed &#8211; there&#8217;s many attack vectors out there, and as you (Philippe) point out not having a valid login is pretty much not nice for an attacker if you can&#8217;t login with root remotely. Indeed, by the time you may find a valid login, you may have been blocked by a firewall or some other system. Exactly why the old apache phf bug was so useful: it wasn&#8217;t so you could crack root password, it was so you could get a valid login so you can get one step closer and you could even have possibility of trying a local exploit &#8211; more of those than remote, more than likely. If you by chance had a root password found, fine, but that wasn&#8217;t the only use of it (clearly).</p><p>Thing is &#8211; the original person, anomie, was correct.</p> ]]></content:encoded> </item> <item><title>By: Philippe Petrinko</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-173009</link> <dc:creator>Philippe Petrinko</dc:creator> <pubDate>Wed, 03 Aug 2011 07:41:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-173009</guid> <description>@Enzo
&gt; &quot;you might as well turn off ssh because you are clueless and incompetent.&quot;
No need to be rude to enlight your point.
Insults are inappropriate in a technical debate, and counter-productive.
A brute force attack is much more difficult if you don&#039;t now any login.
Why ? Try it yourself: when you try a login + password, system rejects you but never says what was wrong : login or login+password
Mathematically, you&#039;ll have to multiply number of average attempt for root login by number of possible login name, which makes a real difference, and give system more opportunity to reject your IP and stop your attack.</description> <content:encoded><![CDATA[<p>@Enzo</p><p>&gt; &#8220;you might as well turn off ssh because you are clueless and incompetent.&#8221;</p><p>No need to be rude to enlight your point.<br
/> Insults are inappropriate in a technical debate, and counter-productive.</p><p>A brute force attack is much more difficult if you don&#8217;t now any login.</p><p>Why ? Try it yourself: when you try a login + password, system rejects you but never says what was wrong : login or login+password</p><p>Mathematically, you&#8217;ll have to multiply number of average attempt for root login by number of possible login name, which makes a real difference, and give system more opportunity to reject your IP and stop your attack.</p> ]]></content:encoded> </item> <item><title>By: Enzo</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-173006</link> <dc:creator>Enzo</dc:creator> <pubDate>Wed, 03 Aug 2011 06:08:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-173006</guid> <description>If someone is using a brute force attack, they will find a valid account anyway. If you cannot protect the root account, then you cannot protect any account and you might as well turn off ssh because you are clueless and incompetent.</description> <content:encoded><![CDATA[<p>If someone is using a brute force attack, they will find a valid account anyway. If you cannot protect the root account, then you cannot protect any account and you might as well turn off ssh because you are clueless and incompetent.</p> ]]></content:encoded> </item> <item><title>By: Pkboyz</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-172997</link> <dc:creator>Pkboyz</dc:creator> <pubDate>Tue, 02 Aug 2011 18:49:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-172997</guid> <description>using failed2ban is also a great way to protect your ssh server.</description> <content:encoded><![CDATA[<p>using failed2ban is also a great way to protect your ssh server.</p> ]]></content:encoded> </item> <item><title>By: nyuszika7h</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-172996</link> <dc:creator>nyuszika7h</dc:creator> <pubDate>Tue, 02 Aug 2011 18:38:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-172996</guid> <description>Nice try, but that didn&#039;t work. :)</description> <content:encoded><![CDATA[<p>Nice try, but that didn&#8217;t work. :)</p> ]]></content:encoded> </item> <item><title>By: Cody</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-172637</link> <dc:creator>Cody</dc:creator> <pubDate>Thu, 21 Jul 2011 15:57:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-172637</guid> <description>timeout: yes, that works - I even mentioned that one (perhaps I was vague; I would believe that!). but still, should not be left logged in anyway (be it screen locked or something else) when not there. So, point is: yes, you CAN do sudo cmd but even then you should not stay logged in and if you do use su (it can be useful at times when doing a lot of editing of configuration files or some such) then it won&#039;t time out. Again, likely some what preference and something else i mention later.
strong passwords: agreed, I don&#039;t think the root password should be shared - hence the fair enough remark. Still though, one less password can be a flaw. It isn&#039;t necessarily a flaw, but it can be. See next point (i already mentioned this one though but will again).
sudo su: true, however, as you point out it is useful at times (I used this one a lot in the past and still do at times). But still, my point of getting a user password (keeping in mind some don&#039;t have nearly as strong passwords as they should) and then having sudo access could be a problem IF that password is stolen. The problem isn&#039;t even really the set up in a lot of the cases, but that the user is who chooses the password and the password is one of the weakest links in the chain of security. Because lets face it: if you can make it,  you can break it.
I&#039;ll give you that sudo has some benefits, e.g, not having to have a root password set or even not having it known to more than one, but there&#039;s still some issues with it. That&#039;s all I was getting at. I think what it boils down to is actually it depends on the environment, the amount of users, etc. Or even limiting root to one user (be it by groups, or changing user requirements, whatever the case may be. I mean a programmer doesn&#039;t need root, necessarily). Obviously with multiple administrators you do have an issue right from the get go. Best solution may not be a solution at all in some cases: again, environment and requirements is a part of it.
As for my remark about security being complete. Yes, agreed you shouldn&#039;t dismiss it. That would be a terrible mistake (as has been proven time and again especially lately). It actually bothers me in many ways - security is the responsibility of everyone working together (there goes the passwords being weak or written down issue again).
Anyway, I&#039;ll finish by saying: yes, it has its uses. But at same time, just like chroot has potential issues, so to does sudo. Then again, what doesn&#039;t ? My main points were simply you should always log off and keep your passwords safe - else you run into trouble. And of course, nowadays a real issue is more web related. The amount of non filtered queries to databases, etc., is a real hazard to a lot of people!</description> <content:encoded><![CDATA[<p>timeout: yes, that works &#8211; I even mentioned that one (perhaps I was vague; I would believe that!). but still, should not be left logged in anyway (be it screen locked or something else) when not there. So, point is: yes, you CAN do sudo cmd but even then you should not stay logged in and if you do use su (it can be useful at times when doing a lot of editing of configuration files or some such) then it won&#8217;t time out. Again, likely some what preference and something else i mention later.</p><p>strong passwords: agreed, I don&#8217;t think the root password should be shared &#8211; hence the fair enough remark. Still though, one less password can be a flaw. It isn&#8217;t necessarily a flaw, but it can be. See next point (i already mentioned this one though but will again).</p><p>sudo su: true, however, as you point out it is useful at times (I used this one a lot in the past and still do at times). But still, my point of getting a user password (keeping in mind some don&#8217;t have nearly as strong passwords as they should) and then having sudo access could be a problem IF that password is stolen. The problem isn&#8217;t even really the set up in a lot of the cases, but that the user is who chooses the password and the password is one of the weakest links in the chain of security. Because lets face it: if you can make it,  you can break it.</p><p>I&#8217;ll give you that sudo has some benefits, e.g, not having to have a root password set or even not having it known to more than one, but there&#8217;s still some issues with it. That&#8217;s all I was getting at. I think what it boils down to is actually it depends on the environment, the amount of users, etc. Or even limiting root to one user (be it by groups, or changing user requirements, whatever the case may be. I mean a programmer doesn&#8217;t need root, necessarily). Obviously with multiple administrators you do have an issue right from the get go. Best solution may not be a solution at all in some cases: again, environment and requirements is a part of it.</p><p>As for my remark about security being complete. Yes, agreed you shouldn&#8217;t dismiss it. That would be a terrible mistake (as has been proven time and again especially lately). It actually bothers me in many ways &#8211; security is the responsibility of everyone working together (there goes the passwords being weak or written down issue again).</p><p>Anyway, I&#8217;ll finish by saying: yes, it has its uses. But at same time, just like chroot has potential issues, so to does sudo. Then again, what doesn&#8217;t ? My main points were simply you should always log off and keep your passwords safe &#8211; else you run into trouble. And of course, nowadays a real issue is more web related. The amount of non filtered queries to databases, etc., is a real hazard to a lot of people!</p> ]]></content:encoded> </item> <item><title>By: Roland</title><link>http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html#comment-172636</link> <dc:creator>Roland</dc:creator> <pubDate>Thu, 21 Jul 2011 15:37:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=5489#comment-172636</guid> <description>#timeout: works like this: at t1 you do &quot;sudo edit /etc/somefile&quot; and you will be prompted for your user password. at t2 you do &quot;sudo edit /etc/someotherfile&quot;. With small edits and delta-t is small, you will not be prompted again for a password. But if you leave your desk for a while, and a colleague or janitor will try a sudo command, (s)he will be prompted for the password.
# strong passwords: An admin knowing the (shared) root password needs also to memorize a personal password for doing things that do not require root access. With sudo, the admin has one password less to worry about, which leaves more energy and motivation for a single, stronger, password.
#sudo su: this is circumventing the use of sudo. Still you need to use one password less than with not using sudo. Also, sudo su has its uses. Sometimes I create a user account that is locked, e.g., no password exist to login. But with sudo su you can still login.
Yes, complete security will never be achieved, but I believe sudo is a step in that direction.</description> <content:encoded><![CDATA[<p>#timeout: works like this: at t1 you do &#8220;sudo edit /etc/somefile&#8221; and you will be prompted for your user password. at t2 you do &#8220;sudo edit /etc/someotherfile&#8221;. With small edits and delta-t is small, you will not be prompted again for a password. But if you leave your desk for a while, and a colleague or janitor will try a sudo command, (s)he will be prompted for the password.</p><p># strong passwords: An admin knowing the (shared) root password needs also to memorize a personal password for doing things that do not require root access. With sudo, the admin has one password less to worry about, which leaves more energy and motivation for a single, stronger, password.</p><p>#sudo su: this is circumventing the use of sudo. Still you need to use one password less than with not using sudo. Also, sudo su has its uses. Sometimes I create a user account that is locked, e.g., no password exist to login. But with sudo su you can still login.</p><p>Yes, complete security will never be achieved, but I believe sudo is a step in that direction.</p> ]]></content:encoded> </item> </channel> </rss>
