all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problem: tramp and CIFS share. cannot get it.
@ 2010-09-13  9:49 Pawel K
  2010-09-13 14:21 ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Pawel K @ 2010-09-13  9:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hallo Group Members.

I am trying to get smb share:
/smb:some.cifs.machine:/path/to/share/

connection fails with:

Enter john's password:
Domain=[MyDomain] OS=[Windows Server 2003 3790 Service Pack 2]
Server=[Windows Server 2003 5.2]
Connection to HOST-CITY-D002 failed (Error NT_STATUS_BAD_NETWORK_NAME)

Process *tramp/smb john%MyDomain@some.cifs.machine* exited abnormally
with code 1


so far I debugged following:
from buffer *debug tramp/smb john%MyDomain@some.cifs.machine*:

  smbclient //some.cifs.machine/path -U john -W MyDomain -s /dev/null

(Note that `/to/share' part is truncated.)

Thus in shell:
prompt$ smbclient //some.cifs.machine/path -U john -W MyDomain

gives identical error as encountered in *debug tramp/smb
john%MyDomain@some.cifs.machine* buffer.

but, with complete path:
prompt$ smbclient //some.cifs.machine/path/to/share -U john -W MyDomain

connection succeeds.

Truncation is done by `tramp-smb-get-share' in very beginning of
`tramp-smb-maybe-open-connection'.

I am using:
tramp-version is a variable defined in `trampver.el'.
Its value is "2.1.18-23.2"

emacs-version is a variable defined in `version.el'.
Its value is "23.2.1"

do You have any idea of how to make it work ok.

best regards and thank You very much for tramp module,
Pawel



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem: tramp and CIFS share. cannot get it.
  2010-09-13  9:49 problem: tramp and CIFS share. cannot get it Pawel K
@ 2010-09-13 14:21 ` Michael Albinus
  2010-09-15 20:38   ` mafeusek
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2010-09-13 14:21 UTC (permalink / raw)
  To: Pawel K; +Cc: help-gnu-emacs

Pawel K <mafeusek@gmail.com> writes:

> Hallo Group Members.

Hi,

> I am trying to get smb share:
> /smb:some.cifs.machine:/path/to/share/
>
> so far I debugged following:
> from buffer *debug tramp/smb john%MyDomain@some.cifs.machine*:
>
>   smbclient //some.cifs.machine/path -U john -W MyDomain -s /dev/null
>
> (Note that `/to/share' part is truncated.)
>
> Thus in shell:
> prompt$ smbclient //some.cifs.machine/path -U john -W MyDomain
>
> gives identical error as encountered in *debug tramp/smb
> john%MyDomain@some.cifs.machine* buffer.
>
> but, with complete path:
> prompt$ smbclient //some.cifs.machine/path/to/share -U john -W MyDomain
>
> connection succeeds.

I'm confused. What does "/path/to/share" means? A share is always a
name, without slash or backslash. In your example above, "path" is the
share name.

So you must use "/smb:some.cifs.machine:/share/path/to/file".

> best regards and thank You very much for tramp module,
> Pawel

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem: tramp and CIFS share. cannot get it.
  2010-09-13 14:21 ` Michael Albinus
@ 2010-09-15 20:38   ` mafeusek
  2010-09-16 14:27     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: mafeusek @ 2010-09-15 20:38 UTC (permalink / raw)
  To: Michael Albinus; +Cc: help-gnu-emacs

Michael Albinus <michael.albinus@gmx.de> writes:

> I'm confused. What does "/path/to/share" means? A share is always a
> name, without slash or backslash. In your example above, "path" is the
> share name.
>
> So you must use "/smb:some.cifs.machine:/share/path/to/file".
>

by 'share' I mean a resource that is being shared, like directory or
file. Probably this is not correct. Share by means of samba protocol is
reflected by first segment of path (`share/' in my example).

Let's assume then, that there is some directory I want to enter:
like:
some.cifs.machine:/share/path/to/directory

while this one works:
bash-prompt$ smbclient //some.cifs.machine/share/path/to/directory -U john -W MyDomain

but putting tramp path in emacs:
/smb:some.cifs.machine:/share/path/to/directory

fails

Of course in both the cases I put correct password at password prompt

best regards,
Pawel



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem: tramp and CIFS share. cannot get it.
  2010-09-15 20:38   ` mafeusek
@ 2010-09-16 14:27     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2010-09-16 14:27 UTC (permalink / raw)
  To: mafeusek@gmail.com; +Cc: help-gnu-emacs@gnu.org

"mafeusek@gmail.com" <mafeusek@gmail.com> writes:

> Let's assume then, that there is some directory I want to enter:
> like:
> some.cifs.machine:/share/path/to/directory
>
> while this one works:
> bash-prompt$ smbclient //some.cifs.machine/share/path/to/directory -U john -W MyDomain
>
> but putting tramp path in emacs:
> /smb:some.cifs.machine:/share/path/to/directory
>
> fails

What's about

/smb:john%MYDOMAIN@some.cifs.machine:/share/path/to/directory
/smb:john%SOME@some.cifs.machine:/share/path/to/directory

"SOME" is the host name of the remote machine. And what happens with

/smb:john%MYDOMAIN@some.cifs.machine:
/smb:john%SOME@some.cifs.machine:

> best regards,
> Pawel

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-16 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-13  9:49 problem: tramp and CIFS share. cannot get it Pawel K
2010-09-13 14:21 ` Michael Albinus
2010-09-15 20:38   ` mafeusek
2010-09-16 14:27     ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.