Samba - sharing mounted NTFS partition
My setup is reasonably simple. I have two computers. One, [Aaron], runs only WinXP Home (this is the client for Samba), and the other, [Spider], has two drives, one with Linux (FC4), and the other with WinXP Pro (same as having two partitions) and is setup for dual boot.
The shared directories on the linux machine are:
[Downloads] = /home/Aaron/Downloads
[WinXP] = /media/WinXP (this is the mount point for my WinXP drive)
I can view the shares on [Aaron] (Win) through samba ok. I can also view the normal linux share, Downloads, on [Spider] from [Aaron].
However, when I try to view [WinXP] on [Spider] FROM [Aaron], I get a network error. On the linux box, I can browse around the mounted Windows drive/partition using Nautilus or a Terminal without a problem.
The smbusers and smbpasswd files are setup and work correctly - as evidenced from being able to login and browse the linux share.
Smb.conf contains:
[WinXP]
Comment = Windoze XP
Path = /media/WinXP
Writeable = no
Browseable = yes
Valid users = Aaron
smbclient on Spider gives this error:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
this is after accepting my login.
From other information I have read, I believe the problem may be with the mount permissions on the WinXP mount point (particularly as I have no trouble accessing the linux shared directory).
the log file after an attempted access has:
/media/WinXP does not exist or is not a directory, when connecting to [WinXP]
I read somewhere that the mount point to share via Samba had to be in the home directory, so I tried mounting it in /home/Aaron/WinXP. The errors were the same as above. I tried changing the ownership when I mounted it... ie:
mount -t ntfs /dev/hdb1 /home/Aaron/WinXP -o ro,umask=0222,uid=500,gid=500
This made no difference either.
I've seen similar problems in various forums before, but haven't found a solution that applies here.
I thought if I can browse a mounted drive, then why wouldn't I be able to share it... unless I need an ntfs driver for the Samba server too. You'd think it would be using the standard file system though.
Any help would be appreciated!
|