Check permission of a services


New Member
Jun 21, 2020
Reaction score
Possible a noob question but I haven't the slightest idea. How do I check on the CLI with which permissions a services runs. So user and group.

run ls -l command against the full path of your service
e.x ls -l /usr/bin/ssh
You need to check several things in the case of services:
  1. What user the service runs under, and what groups that user belongs to, as that defines what permissions the service will have. Check this. Spoiler: use tools like top and some filtering.
  2. If you’re interested in things like “what permissions a file created by service A would have?”, then you need to research umask (User file creation MASK). There may be some umask sentences in the service definition scripts or files, or in the process’ home directory if its user had one; check this.
Last edited:

Members online

Latest posts