+ Post New Thread
Results 1 to 7 of 7
*nix Thread, adding mapped drives to ubuntu systems in Technical; Im looking at making some ageing pcs last a bit longer in one of my schools so atm am playing ...
  1. #1


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,506
    Thank Post
    227
    Thanked 848 Times in 727 Posts
    Rep Power
    287

    adding mapped drives to ubuntu systems

    Im looking at making some ageing pcs last a bit longer in one of my schools so atm am playing with ubuntu 10.10 (runs nicely and boots much quicker than xp). On my test vm i have managed to get my ubunti pc domained quite happily (using centrify) and have locked down what the users have access to (though when selecting groups in user profile editor for some reason the staff group is not listed but pupils is but for testing purposes i can live with that). How do i now get it so when any user logs in it maps their home drive (which is \\server\users$\group\username but i can soon share them as \\server\username$ if needed) and the exercises drive preferably automatically without the user doing anything ( so basically im after a linux exuivelent of
    net use u: \\server\%username%$

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    You probably want to investigate the pam_mount Pluggable Authentication Module (PAM).

  3. #3

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    As far as I know from my limited Ubu knowledge (Playing with Zoneminder box), nix in general doesn't use drive mappings in "Windows sense".

    Closest I know of is using mounts (smbmount)

    smbmount //"server"/"share" /"Name"

    etc.

    //"server"/"share" <- Normal link to the share on Server
    /"Name" <- Name of the "mount" point on the Linux machine

    (Note smbmount are temporary, only mounts it for that logon. aka needs to be on startup etc)

    Any use?

    Steve


    *Edit - Found link
    http://ubuntuforums.org/showthread.php?t=255872
    Last edited by Steve21; 18th March 2011 at 03:00 PM.

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by Steve21 View Post
    As far as I know from my limited Ubu knowledge (Playing with Zoneminder box), nix in general doesn't use drive mappings in "Windows sense".

    Closest I know of is using mounts (smbmount)
    which is what pam_mount is for.

  5. #5

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,613
    Thank Post
    1,229
    Thanked 772 Times in 670 Posts
    Rep Power
    234
    Quote Originally Posted by sted View Post
    How do i now get it so when any user logs in it maps their home drive
    To where? If you wanted shared Windows / Linux desktops could you mount \\server\users$ to /home in /etc/fstab?

  6. #6
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    More specifically you need this in /etc/pam.d/system-login

    Code:
    session         required        pam_mkhomedir.so skel=/etc/skel/ umask=0077
    https://help.ubuntu.com/community/Al...Authentication
    Last edited by somabc; 18th March 2011 at 04:56 PM.

  7. Thanks to somabc from:

    dhicks (19th March 2011)

  8. #7
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,212
    Thank Post
    155
    Thanked 146 Times in 131 Posts
    Rep Power
    102
    Quote Originally Posted by dhicks View Post
    To where? If you wanted shared Windows / Linux desktops could you mount \\server\users$ to /home in /etc/fstab?
    This is how I currently do it, well slightly different reasons but /etc/fstab noauto then calling mount as and when needed (init.d in our case), works fine

SHARE:
+ Post New Thread

Similar Threads

  1. mapped drives
    By silver in forum Hardware
    Replies: 2
    Last Post: 7th January 2009, 01:35 PM
  2. Drives not always being mapped?
    By techyphil in forum Windows
    Replies: 8
    Last Post: 16th October 2008, 10:03 PM
  3. Mapped Drives - not so mapped!
    By LeonieCol in forum Windows
    Replies: 18
    Last Post: 12th March 2008, 03:36 PM
  4. Slow mapped drives.
    By proby1 in forum Windows Vista
    Replies: 2
    Last Post: 15th November 2007, 10:39 AM
  5. Replies: 4
    Last Post: 7th December 2005, 08:09 PM

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
  •