LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-29-2012, 09:07 AM   #1
MarvinU
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
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!

thanks!
 
Old 10-29-2012, 10:49 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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..
 
Old 10-29-2012, 10:49 AM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,163
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
My Computer > right click > map network drive> \\net\sharename
 
Old 10-29-2012, 11:18 AM   #4
MarvinU
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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?

Many thanks for the response
 
Old 10-29-2012, 11:40 AM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem in Accessing folder from windows xp to fedora's shared folder uk.engr Linux - Newbie 4 07-21-2012 03:39 AM
Move Thunderbird Local Folder to Windows Samba Network Drive Linux.Girl Linux - General 4 12-19-2011 08:38 AM
make linux folder visible on windows network ? tonj Linux - Software 5 12-10-2009 05:40 PM
Mount external hard drive's folder as partition visible in df WojtekO Linux - Newbie 7 03-11-2009 10:33 PM
Where to put shared music folder mikieboy Linux - Desktop 3 07-12-2007 09:13 AM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration