Check permission of a services

MvL

New Member
Credits
11
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.
 


warlockk

Active Member
Credits
1,069
This link will help you:



warlockk
 

CptCharis

Well-Known Member
Credits
331
run ls -l command against the full path of your service
e.x ls -l /usr/bin/ssh
 

gvisoc

Member
Credits
750
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


Top