[sudo-users] sudo crontab

Galen Johnson Galen.Johnson at sas.com
Thu Mar 6 14:42:46 EST 2008


What we did was to disable the env_reset (Defaults    !env_reset)...this took care of 99% of our environment issues.

=G=

-----Original Message-----
From: sudo-users-bounces at courtesan.com [mailto:sudo-users-bounces at courtesan.com] On Behalf Of Jeanne Ilchuk
Sent: Thursday, March 06, 2008 2:31 PM
To: sudo-users at courtesan.com
Subject: Re: [sudo-users] sudo crontab

I'm telnet from home using our VPN, and I export TERM=vt100, EDITOR=vi
VISUAL=vi, from the .profile in my home dir.

The setting Todd recommended for the sudoers file works fine, but I was
wondering why it wasn't defaulting to my editor, or root's editor, which
is vi. Here's part of my .profile

EDITOR=vi
VISUAL=vi
export PATH MANPATH EDITOR VISUAL
#PS1='$NAME: $PWD $ '
PS1='METALIB-jmi # '
SHELL=/bin/ksh
TERM=vt100
export PS1 SHELL TERM
set -o emacs

I set emacs so I can use the arrow keys to recall commands instead of
the ksh esc-k

Where is the system default editor set?  I didn't see it in any of the
files in /etc/default/

Jeanne


Faisal Azfar wrote:
>
> Did you check your  terminal settings  in the shell that you are using
> sudo ?
>
> you might want to do a setenv TERM ( or export  TERM) to point to the
> correct setting  ( e.g vt102 ).
>
>
>
> - Faisal
>
> IBM Global Services
> 200 Laurel Ave, Room E3-2C25, Middletown, NJ 07748
> Email : fazfar at us.ibm.com
> Ph: 732-420-1794
> Pager Email: 1108173 at skytel.com
> Pager Phone: 1-800-759-8888, Pin: 1108173
>
>
> *Jeanne <ilchuk at wrlc.org>*
> Sent by: sudo-users-bounces at courtesan.com
>
> 03/06/2008 01:37 PM
>
>
> To
>       sudo-users at courtesan.com
> cc
>
> Subject
>       Re: [sudo-users] sudo crontab
>
>
>
>
>
>
>
>
> When I try to sudo crontab -e for root, or any other application users I
> am responsible for, I get this weird result.  I'm using vi editor.  What
> else should I look for ?
>
>
> jmi # sudo crontab -e sfxglb3
> Password:
> 131
> ?
>
> ?
> q
> The crontab file was not changed.
> jmi #
>
>
> What does this mean?  Our organization has finally instituted sudo for
> all former root users, so my workday is grinding to a halt trying to
> re-adjust.
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>

____________________________________________________________
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users



More information about the sudo-users mailing list