LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-03-2006, 11:24 AM   #1
zpcanada
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Rep: Reputation: 0
Samba share problem


I am using VMware workstation 5.5.2. Host machine: windows xp sp2, guest os: Fedora 5.0. I created a few shares on Fedora and Windows XP. I can list shares on both systems with no problem. I can read the share on Windows but I can not write from Fedora. On windows Xp, I can read only read the shares created on folders on Fedora other than user home directories.
This is the output of running testparm on Fedora:
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[thesis]"
Processing section "[share]"
Processing section "[Peng]"
Processing section "[tmp]"
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = MYGROUP
server string = Samba
guest account = zhoupeng
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
guest ok = Yes
hosts allow = 192.168.1., 192.168.2., 127., 192.168.233.
cups options = raw

[homes]
comment = Home Directories
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[thesis]
comment = thesis files
path = /home/zhoupeng/thesis
valid users = Peng, zhoupeng
read only = No

[share]
path = /usr/share
valid users = Peng, zhoupeng
read only = No

[Peng]
comment = Home Directories
path = /home/Peng
valid users = Peng
read only = No

[tmp]
path = /tmp
read only = No

I can read/write tmp, can only read [share], can only list the other shares (no read/write). When I try to open the share [thesis], it gives me an error: \\ip address of fedora\thesis is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out....
The setting of samba on Fedora: Authentication mode: user
Encrypt passwords: yes. Guest Account: zhoupeng
Please help me. I need to be able to read/write the home directory on Fedora from Windows and read/write windows xp shares from Fedora.

Thank you!

Last edited by zpcanada; 09-03-2006 at 11:27 AM.
 
Old 09-03-2006, 11:33 AM   #2
mindsport
Member
 
Registered: Apr 2005
Location: Florida
Distribution: Slackware 13.1-64bit / 2.6.33.4
Posts: 45

Rep: Reputation: 17
in one of the fields you want to be writable try to add: writable = yes
 
Old 09-03-2006, 11:51 AM   #3
zpcanada
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
I just checked my smb.conf file, actually I have that line writable = yes for each section.
The problem is I can not even open the share to list the files inside.

Any other help?
 
Old 09-03-2006, 12:29 PM   #4
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
well all you should need to do to be able to write to a share on a windows box is make sure that the "allow network users to change my files" box is ticked on the sharing tab of the properties for that folder.

"all you should need to do" assumes you have already provided a username/password to access the windows share..

Last edited by lurko; 09-03-2006 at 12:33 PM.
 
Old 09-03-2006, 01:09 PM   #5
zpcanada
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
it didn't ask me for the username/password when I was trying to open the windows share.

Quote:
Originally Posted by lurko
well all you should need to do to be able to write to a share on a windows box is make sure that the "allow network users to change my files" box is ticked on the sharing tab of the properties for that folder.

"all you should need to do" assumes you have already provided a username/password to access the windows share..
 
Old 09-03-2006, 01:37 PM   #6
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
well I don't know what to say to that - I need to enter a user/pass when browsing shares from the cli (which I've already forgotten how to do), and to mount my shares as well. I setup a credentials file though(as detailed here) so it's all transparent to me now.
 
Old 09-03-2006, 01:46 PM   #7
zpcanada
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry, I did input username/password once saved in the keyring. I forgot i did that. Yes, I can write to the windows share now by changing the sharing permission. This got me before. Thank you! lurko
Anybody can help with read/write linux samba share from windows xp?
Quote:
Originally Posted by lurko
well I don't know what to say to that - I need to enter a user/pass when browsing shares from the cli (which I've already forgotten how to do), and to mount my shares as well. I setup a credentials file though(as detailed here) so it's all transparent to me now.
 
Old 09-03-2006, 01:54 PM   #8
zpcanada
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
another question:
there is not smbmount command available on my fedora. my mount command doesn't support smbfs either. I can use mount to mount a Windows share using CIFS file system. Which package I should install?

Quote:
Originally Posted by lurko
well I don't know what to say to that - I need to enter a user/pass when browsing shares from the cli (which I've already forgotten how to do), and to mount my shares as well. I setup a credentials file though(as detailed here) so it's all transparent to me now.

Last edited by zpcanada; 09-03-2006 at 02:14 PM.
 
Old 09-03-2006, 09:25 PM   #9
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
Quote:
Yes, I can write to the windows share now by changing the sharing permission. This got me before. Thank you!
cheers


I have no experience with Fedora, but according to the package details file for samba on my slackware install, smbmount is part of samba - if you don't have it and "mount -t smbfs" doesn't do anything, then I'd suspect you don't have samba installed, that would be the package to grab.
 
Old 09-03-2006, 09:40 PM   #10
zpcanada
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lurko
cheers


I have no experience with Fedora, but according to the package details file for samba on my slackware install, smbmount is part of samba - if you don't have it and "mount -t smbfs" doesn't do anything, then I'd suspect you don't have samba installed, that would be the package to grab.
I have found out that Fedora replaced smbfs with cifs. So I guess smbmount is gone with it. It claims cifs is a better substitution.
 
Old 09-03-2006, 11:16 PM   #11
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
well I'll have to read up on that then as I'm not that impressed with samba, at least when just using it as a client. I can't transfer to my windows box faster than 100kB/s, and transfers from the windows box go 1/2 as fast as they should unless I use smb://address/share in konqueror to access the share.

good luck with that, perhaps you can answer the questions I'm sure to have in future about cifs!
 
  


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
Help !!!!!!! Samba Share Problem snaib Linux - Software 1 06-27-2005 09:58 PM
samba share problem uzairkhan Linux - Software 1 04-16-2005 07:55 PM
samba share problem tacca Linux - Software 3 12-06-2004 08:30 PM
SAMBA HELP - problem with share longhorn1687 Linux - Software 3 05-25-2004 10:40 AM
samba share problem salahuddin_66 Slackware 3 04-26-2004 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration