*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 ...
-
18th March 2011, 02:39 PM #1 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%$
-
-
IDG Tech News
-
18th March 2011, 02:53 PM #2 You probably want to investigate the pam_mount Pluggable Authentication Module (PAM).
-
-
18th March 2011, 02:58 PM #3 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.
-
-
18th March 2011, 03:03 PM #4 
Originally Posted by
Steve21
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.
-
-
18th March 2011, 04:02 PM #5 
Originally Posted by
sted
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?
-
-
18th March 2011, 04:48 PM #6 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.
-
-
18th March 2011, 05:20 PM #7 
Originally Posted by
dhicks
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: 
Similar Threads
-
By silver in forum Hardware
Replies: 2
Last Post: 7th January 2009, 01:35 PM
-
By techyphil in forum Windows
Replies: 8
Last Post: 16th October 2008, 10:03 PM
-
By LeonieCol in forum Windows
Replies: 18
Last Post: 12th March 2008, 03:36 PM
-
By proby1 in forum Windows Vista
Replies: 2
Last Post: 15th November 2007, 10:39 AM
-
By timbo343 in forum Windows
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
-
Forum Rules