kwevej wrote:Hi there,
I use
fish as my default shell
but - when I use
sudo, it asks me to enter password repeatedly, even thou I have
sudo timeout set to 15 minutes.
sudo works correctly under bash
Code: Select all
z@pc /t/zTemp> ls
a/ b/
z@pc /t/zTemp> sudo ls
[sudo] password for z:
a b
z@pc /t/zTemp> sudo ls
[sudo] password for z:
a b
z@pc /t/zTemp> bash
z@pc /tmp/zTemp $ sudo ls
[sudo] password for z:
a b
z@pc /tmp/zTemp $ sudo ls
a b
fish, version 1.23.1
I've contacted fish-user mailing list. Nobody has the same problem.
So, I've booted from LMDE iso - still the same.
Tried to install Debian to VirtualBox - it works!
So there's something wrong with LMDE ...
I have been using fish for many years on various debain based distros including LMDE and have never run into any problems with sudo. However I think it might depend on what you mean by
I use fish as my default shell
If I read that in the literal sense it means that when you run
it will return something like
When I run echo $SHELL, I get output like this:
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
graham@acer ~> echo $SHELL
/bin/bash
I have highlighted in bold type the bits that matter.
To achieve this you want to return to bash as the default shell but run the fish environment on top of it.
This is achieved by changing any program path or shortcut (keyboard or otherwise) to something like the following (I will assume you use gnome-terminal as your terminal of choice, if you don't you will have to alter the command accordingly):
or for a root terminal
You will get the fish shell every time you start a terminal, but I am prepared to bet you will no longer have any problems with sudo.
Of course if you actually need a fish
shell as opposed to just a fish
terminal that solution will not work for you. For my purposes a fish terminal is fine.