[MacTUG] Fileu (N-drive) userid mapping issue

Keith Peck kdpeck at uwaterloo.ca
Mon Jan 19 10:56:54 EST 2015


Thanks Herbert and Dani,
I don’t use Automater much so with some help from Glenn I was able to complete the process, although I substituted “cifs” for “smb” as the type of mount listed in the script.

Don’s suggestion of creating an alias also works for me (again I'm using cifs rather than smb for it) but the person who I’m trying to fix the problem for needs the drive to be mounted at login for his synch software to work properly – which the Automater solution does.

[cid:4D6D8D61-F6E2-4B0D-801D-402EEBA1F2F9]

— Keith


From: Herbert Balagtas <herbert.balagtas at uwaterloo.ca<mailto:herbert.balagtas at uwaterloo.ca>>
Date: Monday, January 19, 2015 at 9:50 AM
To: Dani Roloson <daroloson at uwaterloo.ca<mailto:daroloson at uwaterloo.ca>>, Keith Peck <keith.peck at uwaterloo.ca<mailto:keith.peck at uwaterloo.ca>>, MacTUG <mactug at mailman.uwaterloo.ca<mailto:mactug at mailman.uwaterloo.ca>>
Cc: Jason Gorrie <jbgorrie at uwaterloo.ca<mailto:jbgorrie at uwaterloo.ca>>
Subject: Re: [MacTUG] Fileu (N-drive) userid mapping issue

I had the same issue after upgrading to Yosemite, my machine wasn’t joined to nexus and unfortunately my userid on this machine wasn’t the same as my nexusid.
Basically used the same command Dani suggested, I created an automator app and added it to my login items.

[cid:B751533C-1321-4D71-AE6C-3693DE124571]

Best regards,

Herbert Balagtas
Unix Systems/Web Development Specialist
Arts Computing Office, PAS 2026
Hbalagtas at uwaterloo.ca<https://connect.uwaterloo.ca/owa/redir.aspx?C=UUN_j9VgdkGDIn_h7lVWC69yJ6RFu9EIks5DdFXMDy_E0paTs2GUR1rGcqisSb6rN3T3rl53Ycg.&URL=mailto%3aHbalagtas%40uwaterloo.ca>
519-888-4567 x 32597

How was my service today? Please fill out the survey and let us know!<https://connect.uwaterloo.ca/owa/redir.aspx?C=UUN_j9VgdkGDIn_h7lVWC69yJ6RFu9EIks5DdFXMDy_E0paTs2GUR1rGcqisSb6rN3T3rl53Ycg.&URL=https%3a%2f%2fuwaterloo.ca%2farts-computing%2ffeedback-form>
https://uwaterloo.ca/arts-computing/feedback-form<https://connect.uwaterloo.ca/owa/redir.aspx?C=UUN_j9VgdkGDIn_h7lVWC69yJ6RFu9EIks5DdFXMDy_E0paTs2GUR1rGcqisSb6rN3T3rl53Ycg.&URL=https%3a%2f%2fuwaterloo.ca%2farts-computing%2ffeedback-form>

From: Dani Roloson <daroloso at uwaterloo.ca<mailto:daroloso at uwaterloo.ca>>
Date: Friday, January 16, 2015 at 5:16 PM
To: Keith Peck <keith.peck at uwaterloo.ca<mailto:keith.peck at uwaterloo.ca>>, MacTUG <mactug at mailman.uwaterloo.ca<mailto:mactug at mailman.uwaterloo.ca>>
Cc: Jason Gorrie <jbgorrie at uwaterloo.ca<mailto:jbgorrie at uwaterloo.ca>>
Subject: Re: [MacTUG] Fileu (N-drive) userid mapping issue

 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/20150119/d5f9b9af/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4D6D8D61-F6E2-4B0D-801D-402EEBA1F2F9.png
Type: image/png
Size: 38641 bytes
Desc: 4D6D8D61-F6E2-4B0D-801D-402EEBA1F2F9.png
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20150119/d5f9b9af/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2015-01-19 at 9.44.27 AM.png
Type: image/png
Size: 473564 bytes
Desc: Screen Shot 2015-01-19 at 9.44.27 AM.png
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20150119/d5f9b9af/attachment-0003.png>


More information about the MacTUG mailing list