sted Posted March 18, 2011 Posted March 18, 2011 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%$
powdarrmonkey Posted March 18, 2011 Posted March 18, 2011 You probably want to investigate the pam_mount Pluggable Authentication Module (PAM).
Steve21 Posted March 18, 2011 Posted March 18, 2011 (edited) 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 Edited March 18, 2011 by Steve21
powdarrmonkey Posted March 18, 2011 Posted March 18, 2011 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.
dhicks Posted March 18, 2011 Posted March 18, 2011 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?
somabc Posted March 18, 2011 Posted March 18, 2011 (edited) More specifically you need this in /etc/pam.d/system-login session required pam_mkhomedir.so skel=/etc/skel/ umask=0077 https://help.ubuntu.com/community/Alternate_Pam_Krb5LDAP_Authentication Edited March 18, 2011 by somabc 1
dwhyte85 Posted March 18, 2011 Posted March 18, 2011 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now