File owner in Linux

Apologies for asking something simple.
I have searched for the way to find file (folder) owner without any luck :frowning:

Q: (creation time of it, modification time of it, size of it, sha1 of it) of file "/etc/passwd"
E: The operator “creation time” is not defined.

Q: ( modification time of it, size of it, sha1 of it) of file "/etc/passwd"
A: ( Mon, 21 Jan 2019 00:16:14 -0600 ), 1565, f6eb23304c288c5d172642d87131ba48c5936fab
T: 208

Q: ( user of it ) of file "/etc/passwd"
E: The operator “user” is not defined.

Q: ( owner of it ) of file "/etc/passwd"
E: The operator “owner” is not defined.

Q: owner of security descriptor of file "/etc/passwd"
E: The operator “security descriptor” is not defined.

Thank you,
Aleksandr

Please don’t hesitate to ask questions! :slight_smile:

I think this is what you are looking for:

user name of <filesystem object> : string

https://developer.bigfix.com/relevance/reference/filesystem-object.html#user-name-of-filesystem-object-string

1 Like

Aram, thank you!
Exactly what I was looking for :slight_smile:

Q: user name of file "/etc/passwd"
A: root
T: 1325

Q: group name of file "/etc/passwd"
A: root
T: 260

1 Like