LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2004, 05:52 PM   #1
adityaishere
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
Question Mapping a drive to a Samba server


Hi all,
I maintain a Samba server on RedHat 9 with clients are windows work systems.(recenty joined the job,never worked on Samba before). I need to have a directory(drive) on my server such that all my clients can acess it.I figured out the directory on my server where the user mapped drives are present.I created a new sub directory in that but to make it available to my clients to map it I came to know that I need To make "Samba" point to that directory.I came to know that I need to modify "smb.conf" to do that.Can somebody suggest me how can I make "Samba" point to the new drive so that I can map the drive on my client machines.

Example:
A,B,C,D are my clients.S is the server
In the "home" directory on S there are 4 sub directoies A,B,C,D which are mapped to 'U' drive on respective clients. So when a client 'A' accesses its 'U' drive it accesses 'A' directory in "home" on the server.Now I need to have a directory "common" in "home" of my server so that I can map it to a drive on each of the clients.Let the drive be "Y".So if each of the clients goes to the network drive "Y" they should access the "common" directory on my server.

Can somebody help me figure out how to do that.
 
Old 08-05-2004, 06:39 PM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Samba is not easy. To help you get your feet wet, install SWAT. It is a web based configuration editor for samba. You can choose a myriad of others as well here: http://us2.samba.org/samba/GUI/ . All of the publishing of drive questions that you posed are in the documentation there. That is a place to start until you hit a snag.
 
Old 08-05-2004, 07:36 PM   #3
PiLgRiM
Member
 
Registered: Jul 2004
Location: New York
Distribution: SuSE
Posts: 38

Rep: Reputation: 15
Below is a basic share. Append this to the bottom of your smb.conf file or just below the [homes] section. Change the @admin to whatever your admins group is. You'll need to at least set owner and group permissions on the unix files systems. You can change [share] to whatever you'd like to share the path as.

[share]
comment = Shared files
path = /var/data
admin users = @admin
read only = No
create mask = 0775
directory mask = 0775
browseable = no

After you add this, edit your login script to map whatever drive you'd like to \\sambaserver\share
 
  


Reply



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
Samba uid/gid mapping (Server to client) problems mcle Linux - Networking 2 01-07-2005 08:16 AM
Mapping a network drive mikepengelly Linux - Networking 1 08-31-2004 03:27 PM
Regarding Mapping to Network Drive ssnkumar Linux - General 3 06-18-2004 01:11 PM
Mapping a network drive from Windows 2k to an ftp, Apache/1.3.27 Server DumbWindow$User General 5 04-08-2004 12:16 PM
SuSE 9.0 Pro - SAMBA - WS Drive Mapping to Server mjohns Linux - Newbie 0 02-22-2004 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 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
Open Source Consulting | Domain Registration