VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Can't save root crontab after editing? [solved]  (Read 2814 times)

davidlondonuk

  • Member
  • *
  • Posts: 55
Can't save root crontab after editing? [solved]
« on: February 04, 2011, 11:39:47 pm »

Hi,

If I su to root and do 'crontab -e', root crontab comes up in vi. If I edit that file and save, vi says changes were written to crontab blah blah, do 'crontab -e' again and my changes have vanished-it's the original crontab with out any of the changes again? How do i edit the root crontab?

Thanks for any help,

David

Solution: I have no idea why vi/vim is not saving any changes to the root crontab file when invoked with 'crontab -e'? Started thunar as root and edited /var/spool/cron/crontab/root with medit and saved.
« Last Edit: February 05, 2011, 12:20:53 am by davidlondonuk »
Logged

Pita

  • Vectorian
  • ****
  • Posts: 1332
Re: Can't save root crontab after editing? [solved]
« Reply #1 on: February 06, 2011, 05:05:49 pm »

I have the same problem ever since I moved from VL4.8 to VL6 both for
root and user. I am using mcedit.
Logged

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: Can't save root crontab after editing? [solved]
« Reply #2 on: February 06, 2011, 07:16:45 pm »

Here's an old thread but it sounds very similar to your situations, and the solution of recreating the symbolic link is an easy fix:
http://www.linuxquestions.org/questions/linux-general-1/crontab-e-does-not-save-402347/
Logged