I am able to mount a corporate shared directory on my AWS Workspace manually but I need to do this for all users.
$ sudo ksu [sudo] password for <Domain>\<User.Name>: Leaving uid as root (0) $ mount -t cifs //<Domain>/<Path> /home/*/<Mount\ Point\ Name> -o multiuser,sec=krb5 $ exit
I need this to work for all users which means I need a general solution.
Amazon Workspaces create one virtual machine per user. I need to create an image of my OS to share with other users. So even if I were in some way to create a fstab entry with my credentials, those credentials wouldn't be valid for any other user's Workspace.
I may have the wrong end of the stick, this may not be achievable.
I imagine something like the above, might work by creating a script that runs at user log-on, as the user which uses ksu to create the context and then mounts a directory in the user's home directory. Therefore the user's credentials wouldn't be available at run time as they'd be just logging in.