LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-29-2004, 04:25 AM   #1
m.b
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
smbmount - tree connect failed


hi there

it was offered to me, to use linux in the company im working for

so i did it, but now to my problem with samba

a domain is used, the dc and the server is a windows 2003 machine, so i need to connect to the ms network

so i want to mount some directories on the server and tried the following

smbmount //server/home/usr /windows/home -o username=usr,password=pwd,workgroup=domain,uid=xxx,gid=xxx,debug=4

when using this command following error is returned

added interface ip='myip' bcast='bcastip' nmask=255.255.255.0
resolve_lmhosts: Attempting lmhosts lookup for name 'server'<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost
resolve_hosts: Attempting host lookup for name 'server'<0x20>
Connecting to serverip at port 139
5022: session request ok
5022: session setup ok
5022: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

as guest i can connect but have no ntfs based rights on that directory
i was also able to connect with kde without any problem, with my username 'usr' and my password 'pwd'

[global]
workgroup = domain
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = yes
map to guest = Bad User
printing = CUPS
printcap name = CUPS
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
security = user

thx in advance

Last edited by m.b; 04-29-2004 at 04:26 AM.
 
Old 05-01-2004, 07:57 PM   #2
Mikecore
Member
 
Registered: Dec 2003
Distribution: Fedora Core 1
Posts: 35

Rep: Reputation: 15
smbmount

I not sure I understand what your doing but if your trying to mount a win 2000 server from
a linux client they you smbmount command would look somthing like this

smbmount //winserver/share_dircetory /mnt/server

"winserver" = the name of the server
share_directory = the path to it
"/mnt/server" = a mount piont "server bieing a folder you make for this.

I looks to me you have your coomand backword.

if your doing what I said.
 
Old 05-03-2004, 08:20 AM   #3
m.b
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
no the command is right, i just written it that its easy to misunderstand

on our server we have a folder called home in which the folders of every user are located

in my case it would be //windowsserver/home/mb

the mounting point i put 1st in /windows/home
this wasnt working
so i tried the mounting point /mnt/windows
but this also isnt working (same error message)

the strage thing is, like i said, i can connect to the share using konqueror, i also can connect to the windowsserver using the smbmount command as user 'guest' but this user has no ntfs based rights on the windows machine
i also tried it with other user accounts, the result was the same errormessage as before

i guess it has something todo with samba (version 2) itself, the exact version i dont know at the moment, cause im not at work.
 
Old 05-03-2004, 01:36 PM   #4
member57
Member
 
Registered: Jul 2003
Location: Texas
Distribution: Mandrake
Posts: 65

Rep: Reputation: 15
I use the:
mount -t smbfs -o username=xxxx,password=xxxxx //IP or Netbios name/share /mount/point
 
Old 05-04-2004, 03:06 PM   #5
m.b
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
i also used this command with the same result as above
 
Old 05-07-2004, 03:26 AM   #6
m.b
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
in the meantime i was able to look up the exact version: 2.28a

i also tried to mount the windowsshare with a credentialsfile and also /etc/fstab with and without credentialsfile

the error stays the same
 
Old 09-27-2006, 12:44 PM   #7
dginf
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
/etc/sysconfig/@SELINUX


SELINUX = disabled







Good luck!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tree connect failed: NT_STATUS_BAD_NETWORK_NAME nilantha Linux - Networking 14 03-07-2011 10:38 PM
tree connect failed: NT_STATUS_BAD_NETWORK_NAME lostboy Linux - Networking 5 09-03-2004 07:44 AM
Samba problem..-tree connect failed.. cobrichka Red Hat 2 01-04-2004 12:00 PM
tree connect failed: Adibe_Hamm Linux - Networking 0 09-16-2003 07:13 AM
tree connect failed: ERRDOS -ERRnosuchshare Randall Linux - Networking 2 02-09-2002 06:10 PM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration