visudo and pico
Hi there,
I put that on my /root/.bashrc and /home/crud/.bashrc: EDITOR=pico; export EDITOR VISUAL=pico; export VISUAL I do 'source /root/.bashrc', I run 'visudo', and it opens with vi :( How can I do to make it open with pico ? Greets, C- |
From the man page:
Quote:
|
you could also do
pico /etc/sudoers |
"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" \ 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 Code:
cd /usr/bin *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 |
All times are GMT -5. The time now is 10:37 PM. |