Mailinglist Archive: opensuse (4393 mails)

< Previous Next >
Re: [SLE] Re: [suse-security] Did SuSE hack ls or which?
  • From: Alexandr Malusek <Alexandr.Malusek@xxxxxxxxxx>
  • Date: 27 Nov 2001 11:13:27 +0100
  • Message-id: <86u1vgh67s.fsf@xxxxxxxxxxxxxxxxx>
Matthew Johnson <matthew@xxxxxxxxxxxxxxx> writes:

> > On Monday 26 November 2001 12:07 pm, you wrote:
> > > Noticed that Turbolinux promptly reports where ls is located in response
> > > to "which ls", as will Mandrake and RedHat, but SuSE 7.3 won't.
> > >
> > > Is this intentional?
> > > Please don't tell me I've been hacked already, the box has only
> > > been running 12 hours, and its only got a ssh open.
>
> Just noticed that on my box too. Its behind a firewall, of course still can
> be cracked, but...
>
> Can anyone from SuSE verify its working please? Really pretty please :).

Note that the default "which" in SuSE is the bash alias

$ alias which
alias which='type -p'

see bash(1) and /etc/bash.bashrc (7.3) or /etc/profile (7.2) for more info.
Also try:

$ type -a ls
ls is aliased to `ls $LS_OPTIONS'
ls is /bin/ls

The old "which" command is still there:

$ /usr/bin/which ls
/bin/ls

--
Alexandr.Malusek@xxxxxxxxxx

< Previous Next >
Follow Ups
References