+ Post New Thread
Results 1 to 6 of 6
Mac Thread, Mapping windows shares %username% equivalent in Technical; I have been able to get workgroup manager to add a drive mapping on the desktop for the general user ...
  1. #1

    Join Date
    Feb 2007
    Posts
    73
    Thank Post
    3
    Thanked 4 Times in 2 Posts
    Rep Power
    16

    Mapping windows shares %username% equivalent

    I have been able to get workgroup manager to add a drive mapping on the desktop for the general user share eg. \\someserver\usershares$. But I want to be able to add the home directory of that user eg
    \\someserver\usershares$\%username%.

    Is there a %Username% equivalent on mac osx ? If not has anyone got a simple script that will map a windows share using the current user’s username?

    Also I am using admit Mac which is meant to be able to cope with user home folders being on a dfs, the problem is we don’t use the home folder information (as this is done with my doc`s redirection) and so admit Mac can’t map it, any ideas ?

  2. #2
    Rozzer's Avatar
    Join Date
    Aug 2005
    Location
    South West
    Posts
    720
    Thank Post
    21
    Thanked 81 Times in 61 Posts
    Rep Power
    34

    Re: Mapping windows shares %username% equivalent

    i think you can use ~ instead of %username%

    Not 100% sure tho.

    Ross

  3. #3

    Join Date
    Apr 2006
    Location
    UK
    Posts
    939
    Thank Post
    39
    Thanked 70 Times in 54 Posts
    Rep Power
    30

    Re: Mapping windows shares %username% equivalent

    I wish you luck with this, closest i got a few months ago was to get all home folders listed but only alow access to the user logged on to its folder. E.g. user had to trawl through all home directories to get to there own.

  4. #4
    Rozzer's Avatar
    Join Date
    Aug 2005
    Location
    South West
    Posts
    720
    Thank Post
    21
    Thanked 81 Times in 61 Posts
    Rep Power
    34

    Re: Mapping windows shares %username% equivalent

    Ok try these few things.

    Add your Mac OSX server to Active directory with directory access in utilities.

    When you add one of the mac workstations to AD with directory access make sure you untick the "force local home directory"

    Also the last extreme thing is by making sure all directorys before the users areas has "read only" access. That took me a long time to figure out.

    Ross

  5. #5

    Join Date
    Feb 2007
    Posts
    73
    Thank Post
    3
    Thanked 4 Times in 2 Posts
    Rep Power
    16

    Re: Mapping windows shares %username% equivalent

    Hi,

    I have been experimenting with getting user folders to map onto the desktop. As far as I can tell Mac OSX is unable to map subdirectories of a share directly. I think this is because the mount command is not capable of mapping subdirectory.

    So to get round this I have been attempting to mount the share all users are stored on then using :

    mkdir /Volumes/Users
    mount -t cifs //Server/Users$ /Volumes/Users

    Then getting the users name using

    id -u -n | read -d @ Username
    (This gets the users username delimited by the “@” sign)

    Then create a symbolic link from the user share to the individual user’s home folder

    ln -s /Volumes/Users/$Username/ /Domain/cvs.lan/users/$Username/Desktop/MyDocuments

    Full version:

    #!/bin/bash
    mkdir /Volumes/Users
    mount -t cifs //Server/Users$ /Volumes/Users
    id -u -n | read -d @ Username
    ln -s /Volumes/Users/$Username/ /Domain/cvs.lan/users/$Username/Desktop/MyDocuments

    This unfortunately does not seem to work correctly . Any suggestions would be much appreciated.

    Thanks

    Andy

  6. #6

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,192
    Thank Post
    300
    Thanked 215 Times in 185 Posts
    Rep Power
    57

    Re: Mapping windows shares %username% equivalent

    I don't know if this will work for you but i needed to mount a share for all machines and not know ing much about unix scripting i resorted to applescript.

    tell application "Finder"
    open location "afp://;AUTH=Client%20Krb%20v2@server/share"
    end tell

    The above mounts the share using kerberos authentication. Whether this helps i dunno but there you go. I used automator to run it but you should be able to run it at login surely.



SHARE:
+ Post New Thread

Similar Threads

  1. Free equivalent of Deepfreeze
    By binky in forum Windows
    Replies: 2
    Last Post: 4th December 2007, 09:17 AM
  2. Replies: 3
    Last Post: 17th October 2007, 10:15 AM
  3. Replies: 4
    Last Post: 16th January 2007, 09:36 AM
  4. Windows equivalent to applescript?
    By woody in forum Windows
    Replies: 5
    Last Post: 9th November 2006, 12:20 PM
  5. mapping a drive to web folder in windows xp
    By russdev in forum Windows
    Replies: 1
    Last Post: 3rd October 2005, 09:31 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •