Check permission of a services

MvL

New Member
Joined
Jun 21, 2020
Messages
1
Reaction score
0
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

Well-Known Member
Joined
Mar 9, 2020
Messages
453
Reaction score
292
Credits
1,727
This link will help you:



warlockk
 

CptCharis

Well-Known Member
Joined
Feb 27, 2018
Messages
562
Reaction score
465
Credits
970
run ls -l command against the full path of your service
e.x ls -l /usr/bin/ssh
 

gvisoc

Well-Known Member
Joined
May 29, 2020
Messages
416
Reaction score
487
Credits
4,265
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:
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top