Crontab seems to be stuck on read only

Your Operating System you are using to access your NAS.

I’m using Windows and the Opera browser
User was using Android and Chrome / Firefox (which are effectively the same in Android anyways)

NAS model

TS-433?
Processor: Quad-core ARM Cortex-A55 @ 2.0 GHz
Memory: 4 GB

Firmware Version/Build numbers - not just “The latest”

5.2.9.3410

Network Setup (ie Single Port or Port Trunking)

Single Port?

Problem: Even with sudo, when I try to edit the Crontab file in PuTTY using VI, I get an error that it is read-only and there seems to be no way to set it as read-write. The Google searches I did suggested that there could be a problem with the RAID-Array of my drives but I’m not having any RW issues with files in general on my NAS and the RAID structure seems fine.

Try logging in with the admin account. Enable it if disabled.

You may refer to this FAQ:

How to add jobs to crontab to schedule a job | QNAP

Sorry, I forgot to mention that I was using that guide and still having issues. Going to try NA9D’s suggestion, my account is set to admin but my guess is that it’s something only THE admin account can do?

imageThis is using the Cloud Key as the password

So that’s not correct.

The admin account gets disabled by QNAP after you set up your own account. You will need to re-enable it and set a new password for it. You do that in the user control panel.

Yes, the admin account has additional features and permissions that secondary admin accounts do not have.

Thanks, I will try this.

Does this mean it’s not disabled? I don’t see an enable option:

Yes, it’s enabled. :+1:

Did you enable the SSH service in the NAS? Or just Telnet? Your connection attempt looks like Telnet.

Yes, I’m using PuTTY

Then use PuTTY to connect via SSH instead of Telnet.

But it is?

Would you mind sharing what your main use case is? What are you trying to achieve by modifying the Crontab? This will help us better assist you. Thanks!

Trying to set up an autorun task on a python script so that it will start up with the NAS reboots.

Check to be sure that your admin password is correct.

Wouldn’t autorun.sh not be better for NAS startup tasks ?

I would think you are correct @dolbyman. Crontab is more for a scheduled task in Linux that runs every day at 3AM. Autorun.sh is better suited to startup tasks.

I don’t know why this didn’t come up in my Google search but I must have just not used the right search terms. I’ll look it up.

I can’t tell if this worked or not:

image

But whenever I open the editor, my command is at the top.

Hmm.. I don’t know what the .viminfo file is for. Must me something with VI. I think autorun.sh was written fine. I would do a cat autorun.sh to be sure…