[PLUG] User Unable to Execute Commands
Carlos Konstanski
ckonstanski at pippiandcarlos.com
Mon Sep 25 00:21:11 UTC 2006
root's $PATH is different from that of a normal user. Don't know which
distro you are using, or I would be able to tell you where each $PATH is
defined.
Does the full path, /usr/bin/rm, work for a normal user? If so, then
the $PATH is broken. echo $PATH to check it. If it looks right, that's
when things get weird.
Check aliases to make sure an rm-overriding alias didn't get created.
Carlos Konstanski
On Sun, 24 Sep 2006, Rich Shepard wrote:
> Date: Sun, 24 Sep 2006 17:03:18 -0700 (PDT)
> From: Rich Shepard <rshepard at appl-ecosys.com>
> Reply-To: "General Linux/UNIX discussion and help; civil and on-topic"
> <plug at lists.pdxlinux.org>
> To: "General Linux/UNIX discussion and help, civil and on-topic"
> <plug at lists.pdxlinux.org>
> Subject: Re: [PLUG] User Unable to Execute Commands
>
> On Sun, 24 Sep 2006, Rogan Creswick wrote:
>
>> Fixed the problem as then your normal user could run commands, or then
>> root could run commands?
>
> Rogan,
>
> When a normal user could not run commands, root could. From the same
> directory and the same commands.
>
>> Run as who? (root or normal user?)
>
> Normal user.
>
>> Screwing with your $PATH will do that. Are you sure you didn't run 'rm -f
>> g *'?
>
> Nope. To both. Nothing changed in $PATH and the files g* were still there;
> root could delete them with the same command.
>
>> (note the space before the *) That would toast your . files, which would
>> almost certainly have some effect on your PATH, but no one elses. (it also
>> wouldn't take effect until you opened a new terminal, vt, or logged out /
>> in.
>
> But, it would have remained a problem after rebooting.
>
>> Are you missing any files in your home dir?
>
> Nope.
>
> Thanks,
>
> Rich
>
> --
> Richard B. Shepard, Ph.D. | The Environmental Permitting
> Applied Ecosystem Services, Inc.(TM) | Accelerator
> <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list