LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 12-11-2005, 09:25 PM   #1
toadeny
LQ Newbie
 
Registered: Sep 2003
Location: Wellington, New Zealand
Distribution: Fedora Core 3
Posts: 17

Rep: Reputation: 0
smbmount session setup failed: ERRDOS


Hi, i still can't seem to master this smbmount stuff.

tried to mount a share that i have previously successfully unmounted but with no luck, here is my output


[root@box nathan]# smbmount \\\\192.168.0.100\\d$ /mnt/share/ -o username=administrator
Password:
8946: session setup failed: ERRDOS - ERRinvgroup (Invalid workgroup (try the -W option))
SMB connection failed
[root@box nathan]#


i have tried with the workgroup option, thing is i am not on a workgroup. i am on a domain, but it still does not seem to work, any help is appreciated, thanks.
 
Old 12-12-2005, 08:55 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
mount -t smbfs -o username=administrator,pasword=<your-pass> //192.168.0.100/d$ /mnt/share

It will work.
 
Old 12-13-2005, 12:51 PM   #3
toadeny
LQ Newbie
 
Registered: Sep 2003
Location: Wellington, New Zealand
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
thanks for your help, but that gave the same error.

[root@box nathan]# mount -t smbfs -o username=administrator,pasword //192.168.0.100/d$ /mnt/share
Password:
12948: session setup failed: ERRDOS - ERRinvgroup (Invalid workgroup (try the -W option))
SMB connection failed
[root@box nathan]#

i am really stuck, would restarting the box help?(its been up for 30 days+) or preferably, restarting a service or something.

thanks.
 
Old 12-13-2005, 01:19 PM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Remove that $ sign in share name & try.

[root@box nathan]# mount -t smbfs -o username=administrator,pasword //192.168.0.100/d /mnt/share

Does you share name have that $ sign?
 
Old 12-13-2005, 05:08 PM   #5
toadeny
LQ Newbie
 
Registered: Sep 2003
Location: Wellington, New Zealand
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
i have removed the $ but still no luck.

The share is a windows one, trying to map my whole d drive which is shared via the system administrator as 'd$'

this has really got me stumped. is there anything i can try restarting ?
 
Old 12-14-2005, 03:38 AM   #6
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
I did that on my part & yeah on first time i got the same error.

Do it the way mentioned below.
On windows you are actually sharing your whole D drive.

First of all remove the sharing of D drive & click ok-apply & close this options window. Then again share it & before closing this window, click on the permissions tab. If you are able to see the permissions & then you'll be able to share it over linux.

I was able to share it later with the same command. Infact in the second time it wont show you the $ sign with D on sharing it.

As if right now if you'll click on permissions tab (right click on D drive & go to properties & then click on sharing tab) you'll be get an error of like, this option on only available for some administrative purposes.

Run the command mentioned above after all this.
 
Old 12-14-2005, 03:51 AM   #7
toadeny
LQ Newbie
 
Registered: Sep 2003
Location: Wellington, New Zealand
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
Again, thanks for your prompt help on this problem.

i made a new share and gave it the correct permissions and checked it, but still no luck. i will just have to go without this for the time being!
 
Old 12-14-2005, 03:58 AM   #8
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
But its working on my part. Infact i got the same error for the first time.

You didnt have to create any new share. You just have to Share your D drive & check for permissions tab. Also check as it wont show you the $ sign if everything goes properly.

&

Run
mount -t smbfs -o username=administrator,pasword=<your-admin-pass> //192.168.0.100/d /mnt/share
 
Old 12-14-2005, 05:00 AM   #9
toadeny
LQ Newbie
 
Registered: Sep 2003
Location: Wellington, New Zealand
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
Ok, i tried this same command on another box, ran this command which worked fine:

[root@box nathan]# smbmount \\\\192.168.0.105\\d$ /mnt/share1/ -o username=administrator

got prompted and it connected and then i could ls-la as normal!

The only difference between the two computers is that one is on a domain, the other is not (the one that just worked).

I have tried with the workgroup option, but with no luck.

when i try another machine on the same domain i get a different error:

[root@box mnt]# mount -t smbfs -o username=administrator,pasword //192.168.0.107/e /mnt/share2/

cli_negprot: SMB signing is mandatory and we have disabled it.
13508: protocol negotiation failed
SMB connection failed

i am not 100% sure, but i dont think its syntax... i have disabled the firewall but that doesnt work either, this definately used to work before today without any permissions changes.
BTW:default drive shares cannot change permissions, it defaults to admin as an administrative share. i hope that makes sense.

thanks
 
Old 12-14-2005, 05:21 AM   #10
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
In case if you are running samba at your *nix box & domain at windows box, then you may have to to join Windows domain first & then you can browse it with smbclient or mount it over to *nix box with your existing mount -t smbfs command.

BTW...
Quote:
Originally Posted by www.windowsnetworking.com
The system automatically creates hidden "administrative shares" for its logical drives C:, D:, and so forth which it names C$, D$ and so forth. It also creates the admin$ hidden share for to the \winnt folder. These shares are designed for remote access support by domain administrators. By default, if you delete these admin shares, they will be recreated when you reboot. To disable permanently so they will not be recreated on the next reboot, use the following Windows NT registry hack:

Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters
Name: AutoShareServer for servers
Name: AutoShareWks for workstations
Type: REG_DWORD
Value: 0
Microsoft published this knowledge base article on this @ http://support.microsoft.com/kb/q156365/

Last edited by amitsharma_26; 12-14-2005 at 05:24 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
smbmount - tree connect failed m.b Linux - Networking 6 09-27-2006 12:44 PM
Samba 5670: session setup failed: ERRDOS ? fatum112 Linux - Software 14 11-24-2005 03:29 AM
Samba: Session setup failed:NT_STATUS_LOGON_FAILURE wnaLinux Slackware 3 12-21-2004 06:12 PM
FC2: smbmount->ERRDOS; smbclient->works fine! WHY? danielson Linux - Networking 3 06-23-2004 10:02 AM
tree connect failed: ERRDOS -ERRnosuchshare Randall Linux - Networking 2 02-09-2002 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration