[H-GEN] Sharing folders on SMB - Mandrake 9.2

Tony Nugent tony at linuxworks.com.au
Sun Jun 15 06:25:37 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On Sun Jun 15 2003 at 18:47, Sandra Milne wrote:

> Rick Phillips wrote:

(in response to Alex Delaforce's original query)

> > (b)  Mount the share by trying
> >      mount -t smbfs /mnt/SharedDocs /static.address.of.xpmachine/folder
> 
> Shouldn't that be:
> mount -t smbfs //IP.of.xp.machine/sharename /mnt/SharedDocs
> 
> alternatively, use smbmount:
> smbmount //IP.of.xp.machine /mnt/SharedDocs

My suggestion here:

 mount -t smbfs //XPNetbiosName/sharename /mnt/SharedDocs
   -o ip=192.168.0.10,username=user,password=secret,rw

 (The output of "smbmount --help" will give a quick list of all the
 available options.  The "credentials=/path/to/file" option is very
 useful for use with autofs and fstab as it can hide the
 username/passwd from other users of the system).

Similar options to smbclient should also allow connection to the XP
share (as a quick'n'easy test).

The big question I have about all this is: how is the connection to
the windows box being authenticated?  Are you (ie, Alex) using XP
home edition?

Unlike w2k, xp can be very fickle with shares and permissions,
particularly the home edition which has had most (all?) of the
classical domain-level authentication and management features ripped
out of it[1].

  [1] http://www.microsoft.com/windowsxp/pro/howtobuy/choosing2.asp

Quoting the samba docs[2]: "MS Windows XP Home edition is NOT able
to join a domain and does not permit the use of domain logons... XP
Home client is never a true member of a domain because it does not
possess a machine trust account, and thus has no shared secret with
the domain controller."

  [2] http://de.samba.org/samba/devel/docs/html/Samba-HOWTO-Collection.html

I have never tried connecting to a share on a box running xp home
edition, so I assume that in this case the local permissions on the
share (on the xp box) needs to be authenticated "internally" against
a local user account and its own local security settings, and not
via a domain logon server.  Or the permissions on the share need to
be set on XP so that they are open for r/w by anyone (ie, "guest"
access).

I'm suprised that there are no error messages... Alex, did you check
/var/log/messages and your samba logs?

> Sandra.

Cheers
Tony

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list