LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2013, 11:53 PM   #1
srinira2
LQ Newbie
 
Registered: May 2013
Posts: 4

Rep: Reputation: Disabled
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
 
Old 05-14-2013, 01:19 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by srinira2 View Post
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
Sorry, I don't see any error message. Did you forget to post it?
Quote:
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
Your version of Ubuntu is 10.04 which is rather old. Wouldn't it be easier to update your system to a more recent version?
jdk
 
Old 05-14-2013, 04:21 AM   #3
srinira2
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
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:~$
 
Old 05-14-2013, 04:42 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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/
 
Old 05-14-2013, 04:50 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I think it's waiting for you to input something into the file. Try typing this
Code:
:q
and that will exit you from the editor.
jdk
 
Old 05-14-2013, 08:53 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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
.

Last edited by frankbell; 05-14-2013 at 09:03 PM.
 
Old 05-15-2013, 12:09 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think you'll find 'visudo' is for the sudoers file, unless Ubuntu have done another weird thing
 
1 members found this post helpful.
Old 05-15-2013, 07:36 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
You are right, chrism01. Thanks for correcting my brain skip!
 
Old 05-17-2013, 03:24 AM   #9
srinira2
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for all of you my issue is resolved.
 
Old 05-17-2013, 04:06 AM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] dpkg fatal error unable to open files list file Stale NFS file handle cmr26 Linux - Software 5 09-06-2009 04:10 PM
Unable to Open Zip File. rvijay Debian 6 02-19-2005 08:32 AM
Kpilot 4.4.0 File Installer -Unable to Open File- Clie SJ-22 sephiro499 Linux - Software 0 10-04-2004 12:25 PM
Kpilot 4.4.0 File Installer -Unable to Open File- Clie SJ-22 sephiro499 Linux - Newbie 0 10-04-2004 12:43 AM
unable to open password file leif Linux - General 2 03-07-2001 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration