Operating System - Linux
1753607 Members
5945 Online
108797 Solutions
New Discussion юеВ

map windows drives on linux

 
iinfi1
Super Advisor

map windows drives on linux

hi all,
i m using RHEL5 Client.
i m in a fix. i have a windows file server and a windows AD domain controller.
all windows workstation users are able to log in to their workstations authenticated by Windows DC and also shared drives on the file server mapped with logon scripts.

now i m creating linux workstations and have been successful in adding the linux machines to the domain and users are authenticated from the windows DC.
now comes the question of mapping the shared drives for each user.
the script on the windows DC is as below

NET USE G: \\172.16.2.2\FINANCE

NET USE G: \\172.16.2.2\AUDIT


for each user the script is different and users sit on any workstation.
is their any way Linux can be made to understand this script and drives be mapped for users?



thanks
14 REPLIES 14
Heironimus
Honored Contributor

Re: map windows drives on linux

You can mount Windows file shares, but that script is a DOS BAT file. Linux doesn't use "net use" for mounting Windows shares, nor does it map them to drive letters.

My experience is mostly with assigned computers or server-to-server mounts, so I can't offer much advice on the any user/any desktop/different shares situation. However, I think that pam_mount (http://pam-mount.sf.net/) was designed to support that scenario, so I'd start there.
iinfi1
Super Advisor

Re: map windows drives on linux

thank you. i will chhk wat pam is abt
iinfi1
Super Advisor

Re: map windows drives on linux


when i run a yum install pam_mount in either RHEL5 or CentOS 5 i get no thing to do.
i downloaded the pam module package frm the net and ran ./configure
and here is what i get
i m not an expert in linux yet. no way i can get thru this. plz help.

No package 'libHX' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libHX_CFLAGS
and libHX_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

[root@lin2 pam_mount-1.16]#
Rob Leadbeater
Honored Contributor

Re: map windows drives on linux

Hi,

You could also look at the various Samba modules that are (usually) included with RedHat.

smbmount will probably do what you need.

http://www.linux-noob.com/forums/lofiversion/index.php/t1404.html

Hope this helps,

Regards,

Rob
iinfi1
Super Advisor

Re: map windows drives on linux

i m afraid i dont think this wud work as we are looking at arnd 700 odd users who are going to move from windows workstations to linux workstations with the Windows AD authenticating them and scripts written in AD
like
NET USE G: \\172.16.2.2\FINANCE

NET USE G: \\172.16.2.2\AUDIT

mapping/mounting them to the shared drives. Users shared drives may be different and each user has more than one shared drive and this changes for each user.
so adding the mapping lines to each workstations fstab file is not feasible.

am i getting you rite?
Rob Leadbeater
Honored Contributor

Re: map windows drives on linux

Hi,

It should be possible, but will probably need some work/research.

This looks like a good start:

http://oreilly.com/catalog/samba/chapter/book/ch06_06.html

Cheers,

Rob
Rob Leadbeater
Honored Contributor

Re: map windows drives on linux

Maybe not... On closer inspection that looks more like using Samba to replace a Windows server, not the other way around...
iinfi1
Super Advisor

Re: map windows drives on linux

yea .. i m afraid Rob

the steps in ur link wud wrk for a samba DC n win client. :|

do u knw of any other wrkarnd?
Steven E. Protter
Exalted Contributor

Re: map windows drives on linux

Shalom

Use cifsmount or mount -t cifs or set it up in /etc/fstab

//10.0.0.10/web /web cifs credentials=/etc/samba/cred-file,uid=invest,gid=web
#,fmask=0770,dmask=0770 0 0


credentials file includes:

username = username
password = password

With RHEL 4 use mount -t smbfs

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com