79505973

Date: 2025-03-13 09:36:48
Score: 0.5
Natty:
Report link

Thanks for this hint. This works for me:

while read -r user
do
    echo $user
    su "$user" -c 'screen -ls'
done \
< <(
    grep -Pv "(nologin|false|sync)$" /etc/passwd \
    | cut -d: -f 1
)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dan Bolser