I have Debian VPS and I gave FTP access to somebody, say John. I don't want to give John SSH access, but he needs to put tasks into
What are my possible variants?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I guess I found a solution (one of). I can create an HTML form with 6 inputs (minute, hour, day, month, dayofweek, command), and let John use it.
After submit I generate a cron file with these 6 values (+
john as username), validate it with this Python script, and put it to
There is a difficulty with putting this file to
cron.d since the webserver runs under a non-privileged user. This can be solved with
setuid'ed C++ program.