visudo with gedit on RHEL 6.x and CentOS 6.x

Linux system administrators unfamiliar with the classic “vi” (or vim) editor should really take the time to learn this essential command-line tool. For those who want to try everything in the GUI, here’s a tip to use “visudo” during initial system configuration to add one or more groups or users to your sudo rule file. I recommend using the “wheel” group under RHEL 6.x and CentOS 6.x as your standard sudo full-privilege group.

# switch user to root if needed
su -
# set editor to "gedit" for visudo command
EDITOR=gedit visudo
Advertisements

About notesbytom

Keeping technology notes on WordPress.com to free up my mind to solve new problems rather than figuring out the same ones repeatedly :-).
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s