Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-02-2005, 11:42 AM
|
#1
|
LQ Newbie
Registered: Jul 2005
Location: Melbourne, Australia
Distribution: Fedora
Posts: 16
Rep:
|
Can map shared linux drive in XP but CANNOT SEE FILES
Hi all
Just another linux n00b running a fresh install of Fedora core 64. I'm trying to setup Samba to share files with my Windows XP home box and appear to have most of it sorted -
- I can see the linux box in my network neighbourhood
- I can ping bothways
- In XP command line, net /view \\<linuxbox> displays the shared folder on the linux box
- In linux terminal, smbstatus reveals the XP box as logged in
- accounts have been setup for read/write access (verified OK by logging in from Windows)
- same workgroup settings
- I can map the shared folder as a network drive in XP
- Firewalls have been disabled to rule them out
However.... I can't see anything in the shared folder even though there are files in it! If I try to write to it (I've given it write access for the account) it gives me an error saying its either full or write protected. Ditto if I go into the mapped drive in XP command line.
I've been banging my head on the wall for hours now so any advice would be much appreciated. I'm pretty sure that the basic network config is sound - I can ping and log on FFS so it must be something at a higher level. I just don't understand why it just doesn't appear to 'see' any content....
Cheers
Johann
Last edited by johannlo; 07-02-2005 at 11:54 AM.
|
|
|
07-02-2005, 04:03 PM
|
#2
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
You know of course you have to set up Samba users separately (Linux "system" users are not automatically Samba users)? Just my two cents.
|
|
|
07-03-2005, 04:37 AM
|
#3
|
LQ Newbie
Registered: Jul 2005
Location: Melbourne, Australia
Distribution: Fedora
Posts: 16
Original Poster
Rep:
|
Yes
- user "adm" created as linux user
- user "adm" (both unix and windows names) created as samba user
- <shared directory> set to allow read / write to all users and groups
hence... ???????
To make things worse, I tried duplicating the problem - created another samba share. This time, I couldn't even map to it on the windows side - gave me "share not found on this path" or something similar. However, this new share is
- browseable (you can even browse to it when mapping, but it returns the error above)
- comes up fine with "net view \\<linuxhost>"
?????? Starting to suspect its bloody windows side at fault here....
|
|
|
07-03-2005, 05:33 AM
|
#4
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
To add Samba users you have to use smbpasswd utility.
Read 'man smbpasswd'.
Have you tried using swat? It may make life easyer, in particular first time.
Last edited by Emerson; 07-03-2005 at 05:38 AM.
|
|
|
07-03-2005, 07:51 AM
|
#5
|
LQ Newbie
Registered: Jul 2005
Location: Melbourne, Australia
Distribution: Fedora
Posts: 16
Original Poster
Rep:
|
Yes I've created the user logons in both linux and samba. I did it via GNOME (in fedora core 4) but its definitely there - if you put in
smbpasswd -a username
I get a "duplicate password, password not changed" msg i.e. I've already set it.
Its very confusing as I can read and map, but I can't write or modify. All folders / files have global permissions set.... firewalls off on both machines...
\
Can't run swat as its not installed with this distro. I tried to manually install the swat rpm (its missing from the installation DVD iso) but its not the same version / architecture (I'm running fed core 4 for AMD64) and it says I'm missing some files. Pretty sure there's nothing too wrong with smb.conf anyway, I've tested it via replacing it with some simple scripts (from textbooks etc.) and I run into the exact same problem
|
|
|
07-03-2005, 09:15 AM
|
#6
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Another tool to try is webmin. Or you can compile swat yourself. The sources should be available from your distro's repository.
|
|
|
07-04-2005, 02:14 AM
|
#7
|
LQ Newbie
Registered: Jul 2005
Location: Melbourne, Australia
Distribution: Fedora
Posts: 16
Original Poster
Rep:
|
FIXED
FIXED!!!!! YAY!!!!
Problem is the SELinux security policy implemented as a new process in FC4 (hence explaining why none of the Samba docos I read mentioned it...)
Turned it off, all good!
I knew it wasn't my Samba config!!! (I've spent enough years reading txt config files in good old DOS to back my judgement w/ pseudo-code!)
Thanks anyway and take note if you ever use FC4.....
Cheers!
|
|
|
08-01-2005, 09:23 AM
|
#8
|
Member
Registered: Jan 2005
Location: Raleigh, NC
Distribution: Debian
Posts: 35
Rep:
|
This is wierd....
I have checked all of those config files and the name was not in there, just localhost. I am guessing that it is still pulling the name from DNS. Is there a command to flush DNS or is this something that will work itself out when the DHCP renews? Thanks again!!
|
|
|
11-16-2005, 11:02 AM
|
#9
|
LQ Newbie
Registered: Nov 2005
Posts: 4
Rep:
|
OK, johannlo. Seems I have the same problem: Cannot see or create files using samba or ftp. Seems they just diappeared from the windows explorer view. How did you go about turning off the SELinux security policy?
|
|
|
11-16-2005, 11:20 AM
|
#10
|
LQ Newbie
Registered: Nov 2005
Posts: 4
Rep:
|
OK, I found something. Just ran the command setenforce 0 to disable SELinux enforcing temporarily and then turned it back with setenforce 1 after I finished my smb session.
Seems you also can do it permanently by editing /etc/selinux/config and change SELINUX=enforcing to SELINUX=permissive. Then reboot or something. Seems there may potentially be some mess to clean up if you disable it completely.
For more info, see http://fedora.redhat.com/docs/selinu...-securitylevel
Brgds Karsten Breivik
|
|
|
11-16-2005, 03:42 PM
|
#11
|
LQ Newbie
Registered: Jul 2005
Location: Melbourne, Australia
Distribution: Fedora
Posts: 16
Original Poster
Rep:
|
Selinux....
Yes I have made no attempt to reconcile SELinux with samba - I'm just running a home network and I'm behind a router so with linux, iptables, + firewall on router (I know its pretty barebones) + NAT, I figure if someone can hack through that then they deserve to be in my little sh*tbox
To be honest my windoze box is much more vulnerable! (though its not running any listening services e.g. ftp or ssh).
|
|
|
All times are GMT -5. The time now is 05:53 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
|
|