* Problem with su
@ 2002-08-21 5:47 Jack Patteeuw
2002-08-21 9:22 ` TimC
0 siblings, 1 reply; 3+ messages in thread
From: Jack Patteeuw @ 2002-08-21 5:47 UTC (permalink / raw)
Tru64 V4.0F
anyone seen this problem ?
[root]/> su username -c "ls -al"
-al: bad option(s)
anything after the first word in the "command string" is ignored or causes an
error
--
Jack Patteeuw
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with su
2002-08-21 5:47 Problem with su Jack Patteeuw
@ 2002-08-21 9:22 ` TimC
2002-08-22 2:18 ` Jack Patteeuw
0 siblings, 1 reply; 3+ messages in thread
From: TimC @ 2002-08-21 9:22 UTC (permalink / raw)
Jack Patteeuw (aka Bruce) was almost, but not quite, entirely unlike tea:
> Tru64 V4.0F
>
> anyone seen this problem ?
>
> [root]/> su username -c "ls -al"
> -al: bad option(s)
>
> anything after the first word in the "command string" is ignored or causes an
> error
You've probably set up an alias in your .cshrc or .bashrc files.
One alias I came across for su was something like
alias su=/sbin/su $*
instaed of
alias su=/sbin/su "$@"
Where the latter ensures that anything in quotes remains as one
argument, and the former breaks all quoted objects up into their bits
separated by spaces.
--
TimC -- http://astronomy.swin.edu.au/staff/tconnors/
Conclusion to my thesis --
"It is trivial to show that it is clearly obvious that this is not
woofly"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with su
2002-08-21 9:22 ` TimC
@ 2002-08-22 2:18 ` Jack Patteeuw
0 siblings, 0 replies; 3+ messages in thread
From: Jack Patteeuw @ 2002-08-22 2:18 UTC (permalink / raw)
TimC wrote:
> You've probably set up an alias in your .cshrc or .bashrc files.
Well, sort of !
The idiot previous Sys Admin created a script that replaced su so that he could
"log" who was using su. He obviously never understood that syslogd already did it
for him.
Boy am I glad he is gone ! I wonder hoe many more "dirty" easter eggs he left.
--
Jack Patteeuw
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-22 2:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21 5:47 Problem with su Jack Patteeuw
2002-08-21 9:22 ` TimC
2002-08-22 2:18 ` Jack Patteeuw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox