archives

sudo: must be setuid root

I bought a TonidoPlug, which is a wall-wart with an embedded Linux server (running Ubuntu 9.04 Jaunty).  Out of the box, sudo gave the error:

sudo: must be setuid root

This message means exactly what it says -- the sudo command is not setuid and it must be setuid (and owned by root).

chown root:root /usr/bin/sudo
chmod u+s /usr/bin/sudo

will correct the 'problem.' (I put quotes around 'problem' because there are some who will say that this is a security feature.)

sudo: gem: command not found

There are hundreds of reports on the net about "sudo: gem: command not found".  Out of the dozen or so I looked at, the suggested resolution amounted to "ensure that 'gem' is in your PATH."

Yep.  It is in my path.  That is to say, the following works:
­

gem --help

but the following fails:

sudo gem --help

Further confusing matters, gem is in the path shown by:

Bort and Suspenders

Here is a side-by-side of Bort and Suspenders.  Both are Rails starter applications.

September 10, 2009

Anonymous modules have no name to be referenced by

If you get

Anonymous modules have no name to be referenced by

when you're using a Rails template, it can be caused by referencing an undefined variable.  You can pretend that message means that the [nothing.] in [nothing.]VARIABLE_NAME is an anonymous module.

Subversion - Import a Directory While Ignoring Some of Its Content