unable to open the crontab file on ubuntu server ?
1.i have configured sudo privileges for normal user i am unable to open the crontab file getting error like this below.
srinivas@ubuntu:~$ sudo crontab -e [sudo] password for srinivas: 1107 i am using using ubuntu operating system please find the below version. srinivas@ubuntu:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.3 LTS Release: 10.04 Codename: lucid |
Quote:
Quote:
jdk |
Hi jdkaye,
i am facing the below issue i am unable to edit the crontab file using below this command. srinivas@ubuntu:~$ sudo crontab -e [sudo] password for srinivas: 1107 ? ? ? ? ? ? ^Z [1]+ Stopped sudo crontab -e srinivas@ubuntu:~$ |
You need to just 'sudo su -' up to root.
It looks like you haven't got a default EDITOR env var setup, so its probably defaulting to 'ed' or 'ex'; really old school editors. See eg http://www.f15ijp.com/2010/01/changi...r-for-crontab/ |
I think it's waiting for you to input something into the file. Try typing this
Code:
:q jdk |
If you wish to edit the crontab, the canonical command (and I mean that as in "canon," not as in "Shuttleworth") is
Code:
visudo On Ubuntu, to edit the root crontab, you would enter Code:
sudo visudo |
I think you'll find 'visudo' is for the sudoers file, unless Ubuntu have done another weird thing ;)
|
You are right, chrism01. Thanks for correcting my brain skip!
|
Thanks for all of you my issue is resolved.
|
Please use the Thread Tools menu located just above your first post on this thread to mark it as [Solved]. You might want to summarise how you solved your problem.
Thanks, jdk |
All times are GMT -5. The time now is 06:50 AM. |