How do I put my shared folder as a standard network drive, visible to windows client?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I put my shared folder as a standard network drive, visible to windows client?
Hi everyone, I am doing a project for college and I need your guys help.
I've been looking everywhere and I am seeing multiple scripts and commands.
However, everything I see on internet doesn't show me where to put it in so I am still having questions!
I need to connect my shared folder named "Home" (homedirectory)to a standard drive letter visible to client windows xp connected to the username.
Right now my smb.conf is configured as followed:
[Home]
comment = Home Directories
path = /home/%u/
browseable = no
writable = yes
So if user test would log in, the path would be /home/test/
I would like to map the share to the H: drive letter..
How do I do this?
Help would really be appreciated!
First make a try to access the network drive from Windows run prompt as follow:
Quote:
Start > Run > \\<full-hostname-of-Unix-system>\<dir> > OK
For example, the netwrok path should be like this:
\\myhost.mydomain.myorg.com\test
Or, if other system is in different domain then use a tilde symbol before <dir> as:
Quote:
\\myhost.mydomain.myorg.com\~test
It will open the directory i.e user's home directory which he want to access through Windows. If it works, then be assured that samba mapping is OK. So then just open My computer (or right click on My computer icon on desktop) > Select "Map network drive" option > Then in "Drive" option select letter you want to assign to it i.e. X, Y, Z, H.. anything, and in "Folder" option enter the full path of mapped directory (that is, \\myhost.mydomain.myorg.com\test) and click OK. After doing this you will find a network drive mapped inside your My computer with other C, D drives.
So just try it let's know if it help you! Good luck..
Shivaa & Habitual:
I just tried this, and it worked, i got a username's homefolder linked to the H: drive.
The only problem is that if I need this to be done, I need every user to log in and do the same thing because the home folders are scripted as /home/(username) right?
I need a logon script for the windows client I think.
The method you described, is that permanent and for every user using the folder shown? or is this per user?
Thanks. I think there's no any script needed.
In order to access every home directory on a single PC, or on different PCs, you (or user itself) will need to map it seperately.
It's not a big task, as you just need to change the directory name for every user in the network drive path, assign a letter (user different drive letter on a same PC obviously) to it and... that's it! You'll get a new network drive mapped in your My computer.
Second, yes it will be permanant, until you choose to right click on the drive (G or H whatever it is) and select "Disconnect" it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.