Be a Sudoer

FAIL (the browser should render some flash content, not this).

Download in .ogv format


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


mikegerwitz's picture

Well, while sudo itself is a good tip, I'm not so sure NOPASSWD is the best thing to be teaching those that are new to the command (or anyone, rather). If sudo has no password, that completely eliminates that layer of security preventing an attacker from compromising the system.

To comment on zuk's comment above: there's nothing wrong with sudo so long as you use a password. In order to use it (so long as NOPASSWD is NOT used), you need to know the password of an account with sudoer permissions. Being logged into the account doesn't mean anything, unless they recently used sudo and didn't close the terminal. The `passwd` command prompts the user for the current password, meaning they can't simply change the password on you and gain access to sudo. In fact, it's much more secure than simply using `su`, since it only runs that single command as root.

Mike Gerwitz
Free Software Developer

Thank you for the .ogv files, by the way...

Silver Knight's picture

While I did indeed appreciate the .ogv files in the past, since Firefox 3.5 I appreciate them even MORE than before. Thank you, Linux Journal for adding them to the page. As Flash on Linux is really hit-or-miss (some distros work flawlessly with Flash, and some distros or even from version to version of the SAME distro have troubles with Flash) it's nice to be able to click and stream the .ogv file directly in Firefox, or via an external player (VLC, etc.). Never once has the .ogv files given me any trouble playing them. (These wonderful little short clips with little Linux tips are a great thing for me to point new Linux users at after I've helped them install their first distro, too. It really helps them feel like they don't have to feel "lost" in a new OS.)

you shouldn't use sudo like this!

zuk's picture

That's not secure, even with the password set on!
You should use sudo only to specific programs, not everything!
Also, to programs you're not the owner and doesn't have any write access to them.
IF someone hacked into your account, even if you have password on the sudo, he can actually used : passwd command to change your passwd and gain root privilege using the sudo you gave him...

Don't use it, it ruins the whole user separation *nix is using.

sutoroot [@ "gee" mail dot .com


Daniel Kelly's picture

I don't use sudo very often, and you left a clue in your video that you might not either when you accidentally typed su. I use su very often, and I like to log in as root remotely via gdm. If you do use sudo, do this in a command window within gnome: gksudo gdmsetup this will pull up the gdm configuration where you can allow root to login from the login screen and remotely if you have x11vnc setup.

I should also mention gksudo is a command worth mentioning if you do a follow up video.

"gksudo gedit /etc/shadow &" in this case, you could use sudo.