[CentOS] change sudoers remotely

Mon Jul 8 21:17:35 UTC 2013
John R. Dennison <jrd at gerdesas.com>

On Mon, Jul 08, 2013 at 05:02:58PM -0400, m.roth at 5-cent.us wrote:
> 
> Since doing what you did just told the world a username that they can try
> to break in with.

Assuming it's internet facing.

> Second, sudoers should ALWAYS be edited with visudo, and you might do a
> here script....

Hardly.  If you're using any type of provisioning system with a tested
template this type of thing is trivial to do right.

Tim, if you're using C6 look into dropping a properly configured sudo
config into /etc/sudoers.d instead of mucking with /etc/sudoers.conf.





							John
-- 
TURKEY, n. A large bird whose flesh when eaten on certain religious
anniversaries has the peculiar property of attesting piety and gratitude.
Incidentally, it is pretty good eating.

-- Ambrose Bierce, The Devil's Dictionary
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20130708/effc5259/attachment-0004.sig>