View Full Version : accessing a win XP share with FC3
JB05
5th May 2005, 11:26 PM
Been trying to setup my two machines so I can share the extra internal HDD with the other, Im using a BT 1800HG wireless gateway, one wired the other wireless the wireless is the XP share I want to access, so far I configured my gateway to allow access, I cant manage to access it through nautilus using the connect to server action, it dont show in Windows Network location either, the file sharing is setup ok and is accessible through my version of XP on the wired box, also followed some threads which say to allow access to ports 137-139, I configured the wireless box's firewall to allow these ports, I also can see the share if I open a terminal then type,
smbclient -L KIDS-HOME
This lists all shares, Im new to Fedora and Linux so not sure what to do next, when accessing it with nautilus it asks for password then says 'cannot display all the contents'
Any help/advice ?
Thanks,
JB
ghenry
6th May 2005, 10:29 AM
I would just use the connect to server feature in nautilus.
When it asks for a password, just hit enter.
GO read the samba docs on www.samba.org
THey have a comlete section in the Howto for connect to Windows XP etc.
veeraafed
6th May 2005, 11:42 AM
dear friend
"smbcleint -L kids-home -U administrator" or any user this will aks u password if u give the password it ll show u what rall the shares u have in xp system
for example u have data in edirve that u wnat to copy to fedora now share the edrive "e"
and use this command
"smbclinet //kids-home(ip)/e -U username " this ll ask passwd aftergiving passwd this ll the prompt
ll like this now ur in kids-home edrive
smb: \> ls "this ll show u what u have in e drive "
if u want to copy file from xp to fedora use "get" with filename
if u wnat to copy file form fedroa t xp use "put" with file name
this is same like ftp
this is one methode ,another methode u install sambapackage throug add/remove program and select windows file server , after installing, click start icon there u ll find network server open that and serach for ur winxp system
veeraafed
6th May 2005, 12:13 PM
another methode u can make ur fedora like a windows workgoup
this is also simple
use vi to edit /etc/samba/smb.conf
go to global option
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = workgroup
# server string is the equivalent of the NT Description field
server string = Samba Server
netbios name = fedora (this is name of ur linux system)
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 192.168.1. 192.168.2. 127. (u plz give subnet)
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
password level = 0
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
keep the default uncomment option let it be only chage the above option if comment please uncomment it
and this is for share defination
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
this is u default home directory for user of ur linux system
if u want to add any directory
[data]
comment = data directory
path = /data
browseable = yes
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
like this u can share any more directories u want
save this file and use this command to start samba "service smb restart"
and u can see what r the option and directory shared in linux by using "testparm" from cli
now u goto winxp system and go search for computer and give "fedora" it ll show u the linux system fedora when u double click this , it ll ask u a passwd , for that
u go to linux system and create smbpasswd file using this command
"cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd" u run this command and check the file is present in that directory
and add the linux user to samba by using "smbpasswd -a linuxusername" it ll ask u to enter new passwd and conform passwd
and give the user name and passwd while u accesing the fedora system
this will work
========================================
if u need further details plz contact me on veeraafed@gmail.com
========================================
JB05
7th May 2005, 12:21 AM
Cheers for all the help, I can now connect to all my shares ok, it appears it was the extra slash being added by nautilus, when I installed KDE it worked, I noticed the URL was different so changed it in GNOME then it worked,
So,
smb://
Instead of
smb:///
Thanks for all the advice.
JB
veeraafed
7th May 2005, 01:28 PM
u can also mount smb sahre through mount command
mount -t smbfs -o username=admin,password=pass //winxp/sharename /fedora/mountpintdirectory
cheers
veeraa
veeraafed
9th May 2005, 12:28 PM
hi,
how to post message in fedoraforam plz help me
onegative
15th December 2005, 08:14 PM
hahahaha you just did :P
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.