LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack 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
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,021

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
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
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
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,021

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
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
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
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,021

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 08:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration