[MacTUG] Fileu (N-drive) userid mapping issue
Dani Roloson
daroloso at uwaterloo.ca
Fri Jan 16 17:16:12 EST 2015
2) if you want the current logged in user dynamically,
checking the owner of /dev/console seems to be one way
open smb://fileu.uwaterloo.ca/users\$/`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`
but this also seems to work
open smb://fileu.uwaterloo.ca/users\$/$USER
You'd avoid the second one if you might possibly be running the script using ARD UNIX as root
(because something in the script needs that level of power)
since it resolves to root instead of the currently logged in user.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20150116/959bab20/attachment.html>
More information about the MacTUG
mailing list