"However, if visudo is configured with the --with-enveditor flag or the enveditor Default variable is set in sudoers"
this is from sudo's slackbuild:
Code:
FLAGS="$SLKCFLAGS" \
./configure --prefix=/usr --sbindir=/usr/sbin --with-getpass --with-C2
make
I don't think that sudo is compiled with --with-enveditor, if that is what the manpage is saying.
Anyway it would have a security hole. In linux there is no vi any more. We use vi-clones. In most distros vi is just a link to vim. In slackaware it's a link to elvis.
Code:
bash-3.00$ ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 5 2005-03-16 12:34 /usr/bin/vi -> elvis
bash-3.00$
If you remove that link and link vi to pico, then visudo will open /etc/sudoers with pico:
Code:
cd /usr/bin
rm vi
ln -s pico vi
If you use pico as your default editor you may keep the link, but I would recommend you to learn vi. It's a really powerful editor
*EDIT*
As far as i know slackware do not make use of .bashrc . What ever enviromental variables you want to add/edit, put them in .profile