I have a user with highly restricted rights.
While I'm allowed to modify my crontab, the default editor is
nano, which can become a real problem when you are used to
vi and don't want to screw a production environment.
I can't export a variable, nor declare one, so
export EDITOR='vi' or
EDITOR=vi crontab -e just don't work
... and I'm not even allowed to run vi (or nano) directly, so I have no idea how I actually could handle that.
Is there a way to circumvent those restrictions ?
To give an idea of my limitations, the login message is :
You are in a limited shell. Type '?' or 'help' to get the list of allowed commands
and the result of the "?" command is
cd clear crontab exit help history lpath ls lsudo php pwd
EDIT : Forgot to look for my OS version
/proc/version tells me that :
Linux version 2.6.26-2-amd64 (Debian 2.6.26-29) (email@example.com) (gcc version 4.1.3 20080704 (prerelease) (
Debian 4.1.2-25)) #1 SMP Sun Mar 4 21:48:06 UTC 2012
cat /etc/debian_version tells me
5.0.10 (What ?!)
I'm more used to play with Ubuntu now, but am still a bit surprised.