|
-
May 30th, 2005, 11:45 AM
#1
Samba with RH9
I am trying to use Samba in a redhat 9 environment and attempting to share my linux box with my Windows XP Laptop.
I have talked to numerous people on this, and it seems none of them could get it working. Right now I have it so my computer can detect the samba server, but cannot access anything within it and it gives me the error something along the lines of cannot find the specified network share.
I have looked online for tutorials, and followed them as best I could, but I am still running into this error.
I'm just wondering if any Linux Guru's around here could give me a tip or two on how to get this up and running.
-
May 30th, 2005, 12:08 PM
#2
Re: Samba with RH9
Don't you just love samba? I have spent the entire weekend fighting with Samba, anyway it does work because I have a working domain controller to show for it .
Back to your problem, if Windows is saying that the name cannot be found, it is most likely due to the fact that the directory on the Linux file system which the share is mapped to is either inaccessable or does not exist. Double check the configuration and make sure that the path to the directory is correct and is also the full path to the directory.
-
May 30th, 2005, 12:11 PM
#3
Re: Samba with RH9
Its kind of weird why it doesnt recognize it...However, I do have it in the proper directory
on startup i have mounted my 120 gig drive to /dev/windows
i was using it as an ntfs before which is why i named it windows..anyways
so i have it pointed to that folder, and i have verified that it is mounted.
-
May 30th, 2005, 12:28 PM
#4
Re: Samba with RH9
You mapped the drive to /dev/windows? This might be what is causing your problem. the /dev directory contains device files, for example the device file for your hard disk may be hda1. You should then map this to a directory other than /dev. Try mounting it to the directory /mnt/windows (you may need to create it first).
Also, is the partition you are mounting still NTFS? If it is then you will only have read access to it, as linux doesn't support write to NTFS.
-
May 30th, 2005, 12:34 PM
#5
Re: Samba with RH9
wow im a boob lol...i meant i mounted it to /mnt/windows
/dev/hdc1 was the drive lol...was a typo on my part, sorry
And the drive used to be nfts, I formatted it into a linux drive now
-
May 30th, 2005, 01:29 PM
#6
Re: Samba with RH9
Check the following:
- The directory is accessable on Linux when logged on as the user you are using to connect via Samba.
- The permissions on the parent directory /mnt are correct and the mount directory itself.
- Check your log files, these should be in /var/log/samba under the name's machine_name.log.
- Attempt to make another share pointing to a linux directory which is not a mount point. Does this work?
- Is your firewall enabled? - If so, it may be blocking access to your shares. You need to have tcp/udp ports 135,136 and 137 open to incoming connections.
If all that fails, post your smb.conf file and I'll take a look for you.
-
May 30th, 2005, 02:09 PM
#7
Re: Samba with RH9
When I get home I will post my config file
I am pretty sure I have everything set up properly...chmod it to 7777 so everything is free, no firewall, and the drives are mounted correctly
-
May 30th, 2005, 04:55 PM
#8
Re: Samba with RH9
I couldnt find the log you were talking about..there was no log with my machines name..although im not sure i gave my machine a name...
and uhh..for some reason i cant copy or paste...so uhh yeah..
-
May 30th, 2005, 06:10 PM
#9
Re: Samba with RH9
At the very least you should have a file called smbd.log and log.smbd. You can do a quick search for these via the command line:
Code:
# find / -name log.smbd
# find / -name smbd.log
Did you try making another share? - Did it work? - Also can you access the share using smbclient on the machine samba is installed on?
-
May 30th, 2005, 07:55 PM
#10
Re: Samba with RH9
yeah i found log.smbd and was gonna post it earlier..but i cant copy or paste from openoffice, or nano.
here is a link to my log file
http://s21.yousendit.com/d.aspx?id=0...C0MU4JLFIR5DYU
-
May 31st, 2005, 02:39 AM
#11
Re: Samba with RH9
There is nothing in the file which suggests an error in the syntax of the configuration file. But, when you attempt to connect to a share Samba should create a log containing your machine netbios name or if you haven't given it one, an IP address.
You should, by looking at those files route out the exact error. You should see something like this dependign on your error:
Code:
[2005/05/31 08:38:18, 0] smbd/service.c:make_connection_snum(615)
'/ohome/music' does not exist or is not a directory, when connecting to [music]
[2005/05/31 08:38:18, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/05/31 08:38:18, 3] smbd/connection.c:yield_connection(69)
Yielding connection to music
[2005/05/31 08:38:18, 3] smbd/error.c:error_packet(105)
error string = No such file or directory
[2005/05/31 08:38:18, 3] smbd/error.c:error_packet(129)
error packet at smbd/reply.c(415) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|