Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Samba and smbmount

  • 18-02-2003 12:34pm
    #1
    Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭


    Hey guys,

    I'm trying to get an smb share mounted from one linux machine to another, but before I can do that I seem to be having a problem connecting to a machine's smb service full-stop

    the machine has smbd running, yet if I try to run either smbclient or smbmount I get b*tch-slapped.

    e.g.
    $prompt-> smbclient -L x.x.x.3
    added interface ip=x.x.x.2 bcast=x.x.x.255 nmask=x.x.x.0
    error connecting to x.x.x.3:139 (Connection refused)
    Error connecting to x.x.x.3 (Connection refused)
    Connection to x.x.x.3 failed

    similarly:
    $prompt->smbmount //x.x.x.3/backup /mnt/backup -o username=userN
    Error connecting to x.x.x.3 (Connection refused)
    5463: Connection to x.x.x.3 failed
    SMB connection failed


    If I run testparm on the smb.conf file everything comes back nicely, and I have the service configured the same way as other machines, with the only difference being no printer services are shared and there is a specific share accessible by only a given user.

    Any takers? :confused:


Comments

  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    are both the smbd and nmbd running ??

    Can you browse the shares from a windows box? Can you
    mount shares from a windows box?

    P


  • Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭Lemming


    Originally posted by flamegrill
    are both the smbd and nmbd running ??

    Yes
    Can you browse the shares from a windows box? Can you
    mount shares from a windows box?
    [/B]

    No, and subsequently, No.


  • Closed Accounts Posts: 304 ✭✭Zaltais


    Can you mount the share from within the linux box itself (i.e. mount the smb share on the box that's sharing the files). Try using the smbclient program to connect to the smb share from both the machine itself and the other machine.

    If you've a firewall on the problem machine open port 139 (I think).

    Plus if you're connecting two linux machines you should ideally be using nmb instead of smb.

    <edit>
    plus you should use the mount program and specify the type as smb, rather than using smbmount directly.
    (e.g. mount -t smb -o username=username%password //192.168.XX.XX/sharename /mnt/mountpoint)
    </edit>


  • Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭Lemming


    Originally posted by Zaltais
    Can you mount the share from within the linux box itself

    yes . But any attempt to smbmount from an external machine refuses to work.

    plus you should use the mount program and specify the type as smb, rather than using smbmount directly.
    (e.g. mount -t smb -o username=username%password //192.168.XX.XX/sharename /mnt/mountpoint)

    Ok, where I am now. I can connect to the machine in question from the windows network, but can't connect from another linux box - which I NEED to do. The windows boxes and go jump for a connection to this particular machine as far as I'm concerned.

    Any time I try to run smbmount directly I get the following:
    [b]$prompt-> smbmount //x.x.x.2/dir /mnt/dir -o username=userN [/b]
    password: *********etc
    9507: tree connect failed: code 0
    SMB connection failed
    

    If I try to mount the share and pass in the filetyp as smbfs, I get the following:
    [b]$prompt-> mount -t smbfs -o username=userN,password=*****etc  //x.x.x.2/dir /mnt/dir[/b]
    9240: tree connect failed: code 0
    SMB connection failed
    


  • Registered Users, Registered Users 2 Posts: 4,676 ✭✭✭Gavin


    A quick search on google groups would seem to imply that you are running an older kernel ? You've probably checked it out already, but just in case.

    Gav


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭Lemming


    Originally posted by Verb
    A quick search on google groups would seem to imply that you are running an older kernel ? You've probably checked it out already, but just in case.

    Gav

    Ok, using $prompt-> uname -r

    - samba share machine is kernel version 2.4.18-14, samba version 2.2.5
    - machine attempting smbmount is kernel version 2.4.9-34, samba version 2.2.1a


    It should be noted however, that if I attempt to try a connection from a machine with the same kernel/samba version as the smb-share machine in question, it also failed to mount.


  • Closed Accounts Posts: 304 ✭✭Zaltais


    Did you try the firewall settings? Only other thing I can think of right now is the "hosts allow" section of the config file, or maybe the security mode settings, but you can connect via a windows machine you say?


Advertisement