Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Sean Kamath
> On Sep 8, 2021, at 02:24, jim hook wrote: > ... > ex.: "unset cd" would help, but any solution in general? I alias ‘ls’ to my preferred args. Sometimes I don’t want those. In ksh, I just use \ls to not use the alias. I confirmed \cd will use the builtin (at least on ksh) with: $cd() { >

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Reuben ua Bríġ
> Date: Wed, 8 Sep 2021 11:24:18 +0200 > From: jim hook > Thinking of that home dirs could be on a shared storage, that can be > accessed by others and maliciously modify the ".profile", etc. files > of the targeted user. > > ex.: "unset cd" would help, but any solution in general? directory p

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Reuben ua Bríġ
> Date: Wed, 8 Sep 2021 11:24:18 +0200 > From: jim hook > Thinking of that home dirs could be on a shared storage, that can be > accessed by others and maliciously modify the ".profile", etc. files > of the targeted user. > > ex.: "unset cd" would help, but any solution in general? > Date

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Reuben ua Bríġ
> Date: Wed, 8 Sep 2021 11:24:18 +0200 > From: jim hook > Thinking of that home dirs could be on a shared storage, that can be > accessed by others and maliciously modify the ".profile", etc. files > of the targeted user. > > ex.: "unset cd" would help, but any solution in general? >

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Ian Darwin
On Wed, Sep 08, 2021 at 11:24:18AM +0200, jim hook wrote: > test$ cd > rmplayer > test$ > test$ type cd > cd is a function > test$ > test$ tail -4 .profile > cd() > { > echo rmplayer > } > test$ > test$ uname -mrs > OpenBSD 6.9 amd64 > test$ > > Thinking of that home dirs could be on a shared stor

Re: Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread Ingo Schwarze
Hi Jim, jim hook wrote on Wed, Sep 08, 2021 at 11:24:18AM +0200: > test$ cd > rmplayer > test$ > test$ type cd > cd is a function > test$ > test$ tail -4 .profile > cd() > { > echo rmplayer > } > test$ > test$ uname -mrs > OpenBSD 6.9 amd64 > test$ Those are useful features. I doubt you will fi

Are there any protection againts heisting the "shell builtin"s?

2021-09-08 Thread jim hook
test$ cd rmplayer test$ test$ type cd cd is a function test$ test$ tail -4 .profile cd() { echo rmplayer } test$ test$ uname -mrs OpenBSD 6.9 amd64 test$ Thinking of that home dirs could be on a shared storage, that can be accessed by others and maliciously modify the ".profile", etc. files of th