Re: SMB connection failed



Thanks for your replies guys !! but the issue is not with the command i
tried both smbmount and mount with proper switches!!

The issue is with the firewall, if i disable it then the smbmount -t
and mount works perfectly fine, for reference i have given the iptables
file below.


Kurt wrote:
> Make that smbmount //server/share /localdir -o username=.......
>
> ....kurt
>
> Kurt wrote:
> >
> > For FC3 try smbmount //server/share -o
> > username=<name>,password=<password>[,workgroup=<workgroup>]
> >
> > For RH9 you may need to use mount -t smbfs, look for the exact syntax in
> > the man page for mount.
> >
> > gainil wrote:
> >
> >> Hi,
> >>
> >> I have 4 PCs, two have Win2k, one has RedHat 9 and the other has
> >> Fedora Core 3.
> >>
> >> I want to access shared folders on Win2k PC from FedoraCore 3 PC
> >>
> >> I use the following commands and got the error
> >>
> >> [root@locahlost sysconfig]# mount //machinename/sharename /mountpoint
> >> -o =username
> >> 5614: Connection to ntserver failed
> >> SMB connection failed
> >> [root@locahlost sysconfig]#
> >>
> >> I disabled the firewall and all is working fine.
> >> I want to know how can i enable the firewall and achieve the same
> >>
> >> If firewall is put on my /etc/sysconfig/iptables file looks like this
> >>
> >> # Firewall configuration written by system-config-securitylevel
> >> # Manual customization of this file is not recommended.
> >> *filter
> >> :INPUT ACCEPT [0:0]
> >> :FORWARD ACCEPT [0:0]
> >> :OUTPUT ACCEPT [0:0]
> >> [root@locahlost sysconfig]# cat iptables
> >> # Firewall configuration written by system-config-securitylevel
> >> # Manual customization of this file is not recommended.
> >> *filter
> >> :INPUT ACCEPT [0:0]
> >> :FORWARD ACCEPT [0:0]
> >> :OUTPUT ACCEPT [0:0]
> >> :RH-Firewall-1-INPUT - [0:0]
> >> -A INPUT -j RH-Firewall-1-INPUT
> >> -A FORWARD -j RH-Firewall-1-INPUT
> >> -A RH-Firewall-1-INPUT -i lo -j ACCEPT
> >> -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
> >> -A RH-Firewall-1-INPUT -p 50 -j ACCEPT
> >> -A RH-Firewall-1-INPUT -p 51 -j ACCEPT
> >> -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
> >> -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> >> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 137
> >> -j ACCEPT
> >> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 138
> >> -j ACCEPT
> >> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139
> >> -j ACCEPT
> >> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 445
> >> -j ACCEPT
> >> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j
> >> ACCEPT
> >> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j
> >> ACCEPT
> >> -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
> >> COMMIT
> >> [root@locahlost sysconfig]#
> >>
> >> Any suggestion would be helpful
> >> Thanks in advance
> >>

.



Relevant Pages

  • Re: LinNeighborhood and smbmount ??
    ... If I su as root I can use smbmount from the command line or if I ... > am logged in as root I can use LinNeighborhood to mount the windoze share. ...
    (alt.os.linux.suse)
  • smbmount returning 256 when called by system()
    ... I have a c++ app I'm writing that attempts to perform an smbmount in ... This command returns a 256 return code and the mount does not succeed. ... code for smbmount, I'd greatly appreciate it ...
    (comp.os.linux.development.apps)
  • Re: Mounting network smb server
    ... >>mount command.Do I need to specify the device first before I try to mount ... > using the 'smbclient' command: ... > See the 'smbmount' man page for more information. ...
    (comp.os.linux.setup)
  • RE: Machine not Booting - Continued
    ... mkraid command and the mount command in the script as you suggested (in no ... Otherwise specify the same mkraid and mount command in /etc/rc.local. ... it has no proper file system to mount. ...
    (RedHat)
  • Re: [SLE] Still cannot update beyond original KDE3.3--Exhausted and Depressed
    ... Open Yast, Click on Software, ... to attach the contents of the disks to the existing filesystem. ... mount point is the directory in the filesystem you will attach those ... > Like perhaps give the the exact command and where to ...
    (SuSE)