idk what osquery has, but I generally use `stat -f...
# macos
n
idk what osquery has, but I generally use
stat -f '%Su' /dev/console