M
M
mrWan2017-11-10 17:10:51
linux
mrWan, 2017-11-10 17:10:51

How can I make it so that only cron has access to the scripts it runs?

Some cronom scripts run, everything works as it should. Everything would be fine, but if only we could make it so that only cron could see the scripts that it needs to run. How can this be done? Access to the directory by IP, what should I do? Or are there better options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2017-11-10
@leahch

You can turn it into a cgroup, you can do it through systemd, for example

P
pfg21, 2017-11-10
@pfg21

create a special user, put him as the owner of the scripts and set the rights to scripts to 700, or even 100.
run scripts on behalf of this user.
if you need administration - cheat in sudo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question