Results 1 to 11 of 11

Thread: Samba with RH9

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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

  8. #8

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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..

  9. #9
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  10. #10

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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

  11. #11
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width