On Wed, Jun 11, 2008 at 12:49 PM, Lan Barnes <[EMAIL PROTECTED]> wrote:
>
> On Wed, June 11, 2008 12:46 pm, Carl Lowenstein wrote:
>
>>
>> By the way, the "locate" command is really helpful in cases like this,
>> if the locate database has been built on your system, normally it is
>> re-built around 4AM on a system that is running.
>>
>
> ... as is tab completion. But that depends on having /sbin and /usr/sbin
> in your path ... IOW, being root.

As I recall, the origin of this thread was "bash: useradd: command not found"
which is nearly always an indication of a path problem if you haven't
misspelled the command name.

Locate(1) tends to locate things by name regardless of where they
might happen to be.  Just now, as a non-privileged user, running on
Fedora 9, "locate useradd" found a number of things.
/usr/sbin/useradd as expected, but also /usr/sbin/luseradd.  For
adding lusers, I suppose.

    carf
-- 
 carl lowenstein marine physical lab u.c. san diego
 [EMAIL PROTECTED]

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

Reply via email to