LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mount from windows XP to fedora core 4 using samba (https://www.linuxquestions.org/questions/linux-server-73/mount-from-windows-xp-to-fedora-core-4-using-samba-607786/)

davoti 12-19-2007 01:18 AM

mount from windows XP to fedora core 4 using samba
 
Hi,

I have a shared folder on Fedora box and would like to mount it from windows XP (professional) so I can read/change source files. have a few question, appreciate some help.

1) Is it possible to do so using NFS on both machines?

2) Is it possible to do so using Samba (Fedora as Samba server and XP as client) ?

3) I tried to config smb.conf on Fedora box, the only I change is basically the following :

security = user

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
path = /home/joe
valid users = joe
public = yes
writable = yes
printable = no
create mask = 0765


4) run smdpasswd -a joe, enter password

restart smb service on Linux

5) When trying to map network driver in windows XP, using \IP_ADDRESS\home\joe, it prompts for user name and password, so I entered joe\password

6) XP always changes user name to \COMPANY_DOMAIN_NAME\joe and ask for re-log in, never be able to log in


what do I miss here? where is domain name come from?

Many thanks

Dave

zaktalanos 12-19-2007 02:11 AM

samba
 
the XP domain name is just the leftover of how xp connects to the default active directory server thing. you can forget about it if you have your samba working correctly. first thing you have to remember about samba, is that there are 2 parts to samba.

1. the samba authorization part
2. the linux file permissions and ownership for the file.

firstly your conf file:

;[myshare]
; comment = Mary's and Fred's stuff
path = /home/joe
valid users = joe
public = yes
writable = yes
printable = no
create mask = 0765

try this instead:

[myshare]
path = /home/joe
valid users = joe
public = yes
browsable = yes
writable = yes
printable = no
create mask = 0765

check the permissions of the folder /home/joe, and make sure that it belongs to joe (joe can read/write to it)

then, in windows connect to:

\\ipaddress\myshare

and try connect with username joe and your password.

oh, and if you want to check if all is working correctly, run testparm it will test all your samba settings and tell you what is missing, then restart samba.


All times are GMT -5. The time now is 05:32 PM.