Windows Server 2008 R2 Thread, Mapping Drives - Script ? in Technical; I am trying to map a drive - We have a share on a Samba server (CentOS 5) I have ...
18th July 2012, 11:12 AM #1
Mapping Drives - Script ?
I am trying to map a drive - We have a share on a Samba server (CentOS 5) I have tried mapping it through GP Preferences but it doesn't show the drive although I have not selected "Hide this drive". The users have separate logins for the Samba share for example my Windows Domain Username might be "joebloggs" but on samba it might be "jb". What I'm after is a script or similar that will map to the drive but map it so that the user double clicks it and can then "enter the correct credentials" but I cant seem to map it unless I put in the credentials first.
Through CMD I can map to it but only after I have specified the Login credentials for the share, but I don't want that I want the user to input it.
I did make a script a while ago and everybody complained that the black box keeps asking for a password.... I got the drives mapped through a batch file but it asked for the password in a CMD window first, once the password was entered and the user pressed enter then the drive was mapped.
Also: I have tried to get samba to work via SSO on my domain and failed miserably so thats out the window.
Anybody any Ideas ?
IDG Tech News
18th July 2012, 11:21 AM #2
Why don't you setup the Samba Server to auth against AD? surely that makes it simplier?
There is a good guide on the Wiki - but never tried it with Centos - with Ubuntu it works
Alternatively you could setup the usernames the same on the samba server and use things like %username% etc in the batch files.
Thanks to glennda from:
cpjitservices (18th July 2012)
18th July 2012, 11:30 AM #3
tried to setup my Samba server to authenticate against AD and couldn't get it to work!
I might try and add accounts in AD the same as the ones in Samba.
18th July 2012, 11:52 AM #4
Well depends on how secure you want to be but you could do something like with the password parameter as the username?
Originally Posted by cpjitservices
net use P: \\server\share /user:%username% %username% (i can't remember where you put password in when scripting).
By glennda in forum Scripts
Last Post: 28th January 2011, 09:56 AM
By Bluetooth in forum Scripts
Last Post: 20th November 2009, 09:15 PM
By cookie_monster in forum Scripts
Last Post: 12th October 2009, 09:02 PM
By ctote in forum Windows
Last Post: 18th April 2008, 07:49 AM
By timbo343 in forum Windows
Last Post: 7th December 2005, 08:09 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)