Re: [Samba] Failed to find real path for mount point

2002-11-07 Thread Urban Widmark
On Thu, 7 Nov 2002, Michael Wisse wrote:

> In the meantime I played with the realpath() function, which is used in 
> smbmnt.c and  which the error comes from. The path "~/filer" is o.k. and 
> realpath() can extract the real path.
> I suppose, that the problem is in smbmount.c in the way how smbmount delivers 
> the path to smbmnt(). Perhaps a bug?

smbmount doesn't do anything to the path, it's just a string it copies
over and it's been like that for ages. FWIW, the following works just fine
for me (from the commandline) using some cvs version:

smbmount //localhost/$USER ~/apa -o rw

The same won't work from fstab. It's the shell that expands ~ into
whatever $HOME is. I doubt realpath does any such translation.

I also don't think it's the version of smbmount that matters here.


> Is there a way, to insert a line in /etc/fstab for convenient mounting of user 
> specific smb shares? How should the syntax be?

Not unless you change mount to understand ~ and environment variables in
the fstab. But I think you could just as well make a perl/bash/ksh/...
script that translates the arguments for you.


Also worth mentioning, autofs has wildcards that allow you to specify 
things like

*  -fstype=smbfs  ://filer/&

If that was mounted on, say, /import/filer it would make 
/import/filer/user1 try to mount //filer/user1. But I'm not really sure 
that is what you wanted.

/Urban

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Failed to find real path for mount point

2002-11-07 Thread Michael Wisse
In the meantime I played with the realpath() function, which is used in 
smbmnt.c and  which the error comes from. The path "~/filer" is o.k. and 
realpath() can extract the real path.
I suppose, that the problem is in smbmount.c in the way how smbmount delivers 
the path to smbmnt(). Perhaps a bug?
However.

Is there a way, to insert a line in /etc/fstab for convenient mounting of user 
specific smb shares? How should the syntax be?

Regards
Michael


On Monday 28 October 2002 12:24, Michael Wisse wrote:
> Yes, I tried it with the same result.
>
> Michael
>
> > > I try to mount an smb share with:
> > >   smbmount //filer/$USER ~/filer -o username=$USER
> > >
> > > and I get following error message:
> > >   "Failed to find real path for mount point"
> > >
> > > What does it mean? The mount point is accessible and the owner of the
> > > mount point is USER.
> > >
> > > Whith an earlier version of samba I can mount the share with this
> > > command.
> > >
> > > Regards and thank for advice.
> > > Please cc an  answer directly to my adress, I am not a member of the
> > > list.
> > >
> > > Michael Wisse
> >
> > Have you tried it with an explicit path name for the mount location
> > instead of the tilde?
> >
> > Just a guess.
> > mark

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Failed to find real path for mount point

2002-10-28 Thread Christopher Barry
On Mon, 2002-10-28 at 06:24, Michael Wisse wrote:
> Yes, I tried it with the same result.
> 
> Michael
> > >
> > > I try to mount an smb share with:
> > >   smbmount //filer/$USER ~/filer -o username=$USER
> > >
> > > and I get following error message:
> > >   "Failed to find real path for mount point"
> > >
> > > What does it mean? The mount point is accessible and the owner of the
> > > mount point is USER.
> > >
> > > Whith an earlier version of samba I can mount the share with this
> > > command.
> > >
> > > Regards and thank for advice.
> > > Please cc an  answer directly to my adress, I am not a member of the
> > > list.
> > >
> > > Michael Wisse
> >
> > Have you tried it with an explicit path name for the mount location instead
> > of the tilde?
> >
> > Just a guess.
> > mark
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

did you try
smbmount //filer/homes -o username=$USER

I know that typing \\server\homes in the run box produces my home dir,
but have not tried mounting it.

Good luck.

C

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Failed to find real path for mount point

2002-10-28 Thread Michael Wisse
Yes, I tried it with the same result.

Michael
> >
> > I try to mount an smb share with:
> > smbmount //filer/$USER ~/filer -o username=$USER
> >
> > and I get following error message:
> > "Failed to find real path for mount point"
> >
> > What does it mean? The mount point is accessible and the owner of the
> > mount point is USER.
> >
> > Whith an earlier version of samba I can mount the share with this
> > command.
> >
> > Regards and thank for advice.
> > Please cc an  answer directly to my adress, I am not a member of the
> > list.
> >
> > Michael Wisse
>
> Have you tried it with an explicit path name for the mount location instead
> of the tilde?
>
> Just a guess.
> mark

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Failed to find real path for mount point

2002-10-28 Thread mark
On Monday 28 October 2002 9:59 am, Michael Wisse wrote:
> Hello!
>
> I try to mount an smb share with:
>   smbmount //filer/$USER ~/filer -o username=$USER
>
> and I get following error message:
>   "Failed to find real path for mount point"
>
> What does it mean? The mount point is accessible and the owner of the mount
> point is USER.
>
> Whith an earlier version of samba I can mount the share with this command.
>
> Regards and thank for advice.
> Please cc an  answer directly to my adress, I am not a member of the list.
>
> Michael Wisse
Have you tried it with an explicit path name for the mount location instead of 
the tilde?

Just a guess.
mark

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Failed to find real path for mount point

2002-10-28 Thread Michael Wisse
Hello!

I try to mount an smb share with:
smbmount //filer/$USER ~/filer -o username=$USER

and I get following error message:
"Failed to find real path for mount point"

What does it mean? The mount point is accessible and the owner of the mount 
point is USER.

Whith an earlier version of samba I can mount the share with this command.

Regards and thank for advice.
Please cc an  answer directly to my adress, I am not a member of the list.

Michael Wisse  
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba