LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-05-2003, 02:37 PM   #1
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
Question How to make an entire drive or directory available to Win box using Samba ?


Does anyone know how to make an entire drive or directory, which resides on the Linux box, available to a Windows 98 machine ?

I can manage to make any directory on the Linux hard drive available with for instance ' path = /home ' , but when I do this I only have access to this directory and not the subdirectories inside of the ' /home ' directory. This is of course when I am browsing this directory from the Windows 98 box.

I also cannot find the way to make a separate, physical drive available to the Win98 box. How do you do this ?

JC

smb.conf :

[global]
wins support = yes
os level = 65
local master = yes
preferred master = yes
domain master = yes
workgroup = mshome
fstype = FAT
smb passwd file = /etc/smbpasswd
printing = cups
dns proxy = no
security = share
encrypt passwords = yes
null passwords = yes
#remote announce = 192.168.0.101/MSHOME
guest account = babygirl
valid users = babygirl,jac
hosts allow = 192.168.0.
server string = Samba Server %v
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
netbios name = jac
log file = /var/log/samba/log.%m
load printers = yes

printcap name = lpstat
max log size = 50

# [printers]
# comment = All Printers
# path = /var/spool/samba
# browseable = no
# guest ok = yes
# writable = no
# printable = yes
# create mode = 0700

[D:]
browseable = yes
path = /home
guest ok = yes
read only = no
valid users = jac,babygirl
#create mode = 775
#directory mode = 775
#write list = <user1>
#read list = <user2>

#[e:]
#path =
#browseable = yes
#guest ok = yes
#read only = no
#valid users = jac,babygirl
#create mode = 777
#directory mode = 777
#write list = <user1>
#read list = <user2>
 
Old 05-05-2003, 03:07 PM   #2
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Ok, I found the imediate problem. It was this :

[D:] <---------------------------Here is my problem
browseable = yes
path = /home

Giving the directory an alias "D:" screws up the path if you try to enter a sub directory of ' /home ' .

Simply naming it like this solves the problem :

[home] <---------------------Should be this
browseable = yes
path = /home

Now I can navigate into the subdirectories of ' /home ' .

I still have one problem - how to make a seperate, physical drive, which resides on the Linux box, available to the other machines on the network.
So if anyone knows how to do this, please help.

JC
 
Old 05-05-2003, 03:25 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
shouldn't be any different, what is actually going wrong? if that directory is corretly formatted and mounted it shouldn't be an issue...
 
Old 05-05-2003, 03:58 PM   #4
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Thanks for reply. What my problem is is that I don't know how to word the ' path = ' value so that it points to a different physical drive. In my case the drive is ' hda5 ' for the root of FAT volume ' D: ' and ' hda6 ' for the root volume ' E: ' .

I'm just not clear on how to do this. I can make a ' path = ' value work for any directory on the Linux drive which is ' hdc2 ' but I don't know how to make a ' path = ' value which points to ' hda5 ' or ' hda6 ' which are my desired targets.

JC
 
Old 05-05-2003, 04:22 PM   #5
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 224

Rep: Reputation: 30
I would encourage you to do otherwise. Sharing your whole drive seems kinda messy.
 
Old 05-05-2003, 05:03 PM   #6
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Security wise, I would aggree with you. But in my case, security is not an issue. I want the Windows box to be able to share a FAT32 disk which resides on the Linux server. I am intentionally making the entire disk available as it is only a data drive.

JC
 
Old 05-05-2003, 05:04 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You'll need to mount hdxX then set path to the mount point.
 
Old 05-05-2003, 07:41 PM   #8
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Beautiful ! thanks david .

JC
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Sharing entire Home Directory jawaking00 Linux - Newbie 2 07-25-2005 08:13 AM
win XP can't connect to linux box using samba nebs Linux - Networking 3 02-20-2005 11:42 AM
samba and win 2k active directory restrictions kaasi Linux - General 0 11-06-2003 09:31 PM
Samba access WIN XP shares from linux box rmanocha Linux - Software 8 10-24-2003 08:28 AM
Samba PDC: i can't create shares on win box dbos Linux - Software 6 08-15-2002 11:01 PM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration