getpmac/maclabel

Hi guys!

can anyone help me with getpmac how it works? i'm trying to know what is the current label of the (each) user?

and can i do it with maclabel as well?

btw i'm using FreeBSD 6.2

Regards,

ned

Man Page for mac_seeotheruids (all Section 4) - The UNIX and Linux Forums looks like a start.

i guess you didn't understand my question... when i execute the command

getpmac username

so i get a structure getpmac [-l list, of, labels] [-p pid]

my question is what should i replace username with? so i get the current label for user?

BR

---------- Post updated at 05:37 AM ---------- Previous update was at 03:41 AM ----------

Hi DGPickett !

here is the answer if you didn't know

we just need to write command

 getpmac 

to see the user mac label

anyways Thanks for try

By logging in as all possible/involved users, which is a bit cumbersome. I expect there is an easy way to get all username values to try them. And what you see is the label of the login shell. Other pids of that uid may be at different access levels, my_id/low versys my_id/high, which is why it has a pid focus.

1 Like