Is it possible to restrict access to the service for specific user and allow for another?
Asked
Active
Viewed 412 times
-1
-
https://stackoverflow.com/a/21649384/13126651 may this help you? – Jatin Mehrotra Dec 04 '20 at 05:56
1 Answers
1
Yes, you can explicitly control who can create at
jobs. See at.allow(5) and at.deny(5) man pages.
The /etc/at.allow and /etc/at.deny files determine which user can submit commands for later execution via at(1) or batch(1).
The format of the files is a list of usernames, one on each line. Whitespace is not permitted.
If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use at.
If /etc/at.allow does not exist, /etc/at.deny is checked. every username not mentioned in it is then allowed to use at.
An empty /etc/at.deny means that every user may use at.
If neither exists, only the superuser is allowed to use at.

fpmurphy
- 2,464
- 1
- 18
- 22