Auto map network drive using SAMBA with batch file
Hi everyone.
I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are:
1) to have the [public] share automatically map as the P: drive to members of the employees group
2) to have the [tech] share automatically map as the t: drive to members of the tech group
3) to have the [sales] share automatically map as the s: drive to members of the sales group
4) to have the [customerSupport] share automatically map as the r: drive to members of the support group
5) to have the users home directory automatically map as the u: drive to all members of the domain.
How it stands now is, everyone's home directories auto map correctly to the U: drive...as specified in my smb.conf file. Can someone please help me understand how to get the above listed drives to auto map to users when they first log in? This is easily done on a Windows AD domain controller, but I am fairly new to a Samba PDC. I'm not sure if this is relevant, but this samba server is also an LDAP server. I have ldapsmb tools installed that allow easier management between the 2 types of accounts (LDAP and Samba).
Code:
here is the script, which is placed in /var/lib/samba/netlogon
---------- Post updated 10-13-10 at 12:53 PM ---------- Previous update was 10-12-10 at 03:07 PM ----------
anyone?
Last edited by unassassinable; 10-12-2010 at 06:38 PM..
Reason: mistype
Hi
I need to restore an oracle backup from production in a test x86 Solaris 10 box . But the space is limited and does not have enough to hold both the backup as well as database . Hence , I am thinking of mapping a network drive from another x86 Solaris 10.
Pls let me know if it is... (3 Replies)
Hi Team,
I am not able to get file name from shared drive when filename have spaces in it.
following command i am using.
filename="REP00105 - ABC XYZ (SCM)_ 1.TXT"
/hfx/opt/samba220/bin/smbclient \\\\${nt_host}\\${nt_share} ${NT_PASSWORD} -U${NT_USERNAME} -c "cd ${nt_directory}; prompt;... (1 Reply)
I am setup a samba share server which is authenticating from Active Directory.
I am able to access the share with AD user but not able to access when group defined in "valid users" parameters.
below are the steps i performed.
In smb.conf
workgroup = QASLABS
password server =... (3 Replies)
Hopefully someone will be kind enough to help me. I have a fileserver acting as a PDC and providing samba shares to a small network. Authentication to the PDC is via LDAP (setup using ebox) The users all have real local accounts on the server.
I would like a windows logon script that will:... (4 Replies)
I am using Samba 3.0.33. The user.map file is not referred anywhere is Smb.conf. Infact, I couldn't see the user.map file any where in samba. But everything seems to be working. Is there an alternative way to refer to the users list. (2 Replies)
Anyone know how I can map a windows drive to an apache shared drive?
In my httpd.conf file, I have:
Alias /merc_rpts/ "/u/merc_rpts/"
<Directory "/u/merc_rpts">
Options Indexes
</Directory>
I'm able to bring up a browser and see the contents of this folder.
In... (0 Replies)
I have two servers, one running on Windows server 2003 and one running Sun Solaris 10. Can you help me how to map drive from Sun Solaris to Windows server 2003.
Thanks (1 Reply)
hi all ;;
I have a Tru64 UNIX machine , first i want my employees ( windows clients) to see specific directory on unix , and how can i put a unix command in a visual basic code to copy the contents of that directory to drive c in the client side who request that by clicking a push button.
... (3 Replies)