Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-05-2006, 04:47 AM
|
#1
|
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Rep:
|
Unable to share files from my linux to windows computers through samba
Dear friends,
All I wanted to do is to share my files from my FC2 to users from Windows machine. But I don't know why it never work.
I did the following configuration in my /etc/samba/smb.conf
workgroup = myworkgroup
hosts allow = 192.168.0. 127.
Set ENCRYPT PASSWORDS to "yes"
Set SMB PASSWORD FILE to "/etc/smbpasswd"
[homes]
comment = Home Directories
browseable = no
writable = yes
Now add any other shares you want like this:
[sharename]
comment = Comment
path = /MyMusic
read only = yes
public = yes
Save and exit.
smbpasswd -a user password
service smb restart
Suppose to be very simple and easy. But I just don't know why not work. I go to windows machine, find this linux computer (Potato) there, then I click into it and it says "\\Potato is not accessible. You might not have permission to access this network resouce."
What is wrong....please helpe me....I tried so many days already....
or is there any other way to share a file from my linux to windows computer? I just want to share file to windows computers....
thanks for taking time reading my mail....
Regards
Y
|
|
|
|
05-05-2006, 07:57 AM
|
#2
|
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,463
Rep:
|
is this the full output of your "smb.conf" file? because you haven't defined a security level. security=share is probably what you are wanting....
what is your "[global]" section........?
have you read "using samba" that comes with samba or used google for a myriad of guides..........???
Last edited by satinet; 05-05-2006 at 07:58 AM.
|
|
|
|
05-05-2006, 11:16 AM
|
#3
|
|
Member
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190
Rep:
|
Comment out the "host allow" part, should probably by 192.168.0.0 anyway
Define a [global] section as adviced.
|
|
|
|
05-05-2006, 09:27 PM
|
#4
|
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
Hi friends,
Sorry, previously was just part of the file. I redo another simple one. Here is the whole file:
[global]
encrypt passwords = yes
netbios name = Potato
security = share
socket options = TCP_NODELAY IPTOS_LOWDELAY
wins support = yes
workgroup = myworkgroup
[public]
path = /MyMusic
read only = no
Thats it. I have my music in /MyMusic. All I want is the windows users can access this folder. But I went to a window computer, find this samba computer (Potato) there, clicked it but it says "\\Potato is not accessible. You might not have permission to access this network resouce."
Can't even get into the first hurdle of getting into the Potato computer.
What am I missing here?
thanks for taking time helping......
Regards
Y
|
|
|
|
05-05-2006, 10:57 PM
|
#5
|
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
Dear friends,
Thanks! I think I have solved the problem. I read somwhere that for XP, need to set wins=mysambaip. So I did that, and it worked.
thanks a lot for helping!
Regards
Y
|
|
|
|
05-21-2006, 08:19 PM
|
#6
|
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
Suddenly today my samba share cannot work again.
Just a simple file sharing but cannot work.
Same problem as before.
Now I wrote another config file like this:
[global]
workgroup = boogey.com
netbios name = Potato
security = share
[share1]
path = /MyMusic
valid users = potato
writable = yes
But when I tried to access the Potato computer from windows, it says
"\\Potato is not accessible. You might not have permission to access this network resouce."
Can't even get into the first hurdle of getting into the Potato computer.
I am really headache, howcome suddenly it doesnt work...
pls help if you know why...thanks...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:03 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|