Quantcast
Channel: Get list of users in a group in FreeBSD - Server Fault
Viewing all articles
Browse latest Browse all 6

Answer by Wb7odyFred for Get list of users in a group in FreeBSD

$
0
0

pw group show ftpgroup

ftpgroup:*:2001:

pw group show wheel

wheel:*:0:root,fred,carl

pw group show video

video:*:44:lightdm

pw user show ftp

ftp:*:2002:2001::0:0:PureFTP user:/nonexistent:/usr/sbin/nologin

pw user show carl

carl:$6$SDkXHtJyIp53egpl$XBg3cuem.RLW63Pa0E16Qw4hmc96lXFgC/fTwCSnDEgYE/OhairDv.mX193ToC6PaQfsp.NegsqEYMHSMxinE/:1003:1003::0:0:CarlDubak:/home/carl:/usr/local/bin/fish

pw user show fred

fred:$6$alWrCEOtGuU1Bx7t$oWXCNkP4t4yQVn5.0ZKuJqAtCNXkR5ywcdI0Guxqv3myDI.u/qrqUzBX7BW4jmwLFHDd00tCdyGt3A9Q6T4s4/:1002:1002::0:0:FredFinster:/home/fred:/usr/local/bin/fish

getent passwd {carl}

carl:$6$SDkXHtJyIp53egpl$XBg3cuem.RLW63Pa0E16Qw4hmc96lXFgC/fTwCSnDEgYE/OhairDv.mX193ToC6PaQfsp.NegsqEYMHSMxinE/:1003:1003:CarlDubak:/home/carl:/usr/local/bin/fish

getent passwd {fred}

fred:$6$alWrCEOtGuU1Bx7t$oWXCNkP4t4yQVn5.0ZKuJqAtCNXkR5ywcdI0Guxqv3myDI.u/qrqUzBX7BW4jmwLFHDd00tCdyGt3A9Q6T4s4/:1002:1002:FredFinster:/home/fred:/usr/local/bin/fish

id

id=0(root) gid=0(wheel) groups=0(wheel),5(operator)

id 1003

uid=1003(carl) gid=1003(carl) groups=1003(carl),0(wheel),5(operator)

id 1002

uid=1002(fred) gid=1002(fred)groups=1002(fred),0(wheel),5(operator),145(webcamd)

id 5

uid=5(kmem) gid=65533(nogroup) groups=65533(nogroup)

id {operator}

uid=2(operator) gid=5(operator) groups=5(operator)


Viewing all articles
Browse latest Browse all 6

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>