All of lore.kernel.org
 help / color / mirror / Atom feed
* Program maps - examples?
@ 2003-11-18 12:55 Dirk Heinrichs
  0 siblings, 0 replies; 2+ messages in thread
From: Dirk Heinrichs @ 2003-11-18 12:55 UTC (permalink / raw)
  To: autofs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm new to this list and have the following problem:

I wan't to automount home directories from a file server on a linux
machine. The problem is that the tree on the server is different from
the what it looks like when mounted:

Local: 	/level1/level2/home/username
Server: /prefix/homestore_[:a-z:]/username

This means when I want to mount my own home I have to mount
server:/prefix/homestore_d/dheinric to /level1/level2/home/dheinric. I
guess there's no other way than using a program map, but there's not
much documentation/examples about this in the package. Can someone sched
some light on this, please.

I've also looked onto our Solaris machines. They seem to cascade the
maps, which I guess is not possible on linux, right?

Thanx...

	Dirk
- --
Dirk Heinrichs          | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst & Young| Mail: dirk.heinrichs@cgey.com
Hambornerstraße 55      | Web:  http://www.cgey.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/uhbU8NVtnsLkZ7sRAqcVAJ0aLUABC1g9ibyOL5dxbLS1mGrqNQCgrDOX
ZKkbt4tCeAbd/ntsDpSIJao=
=3zV0
-----END PGP SIGNATURE-----

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

* Re: Program maps - examples?
       [not found] <B9F4645CD7B0D511BE8300508B68C327025EADB0@tnscapp02.pcacorp.net>
@ 2003-11-18 14:31 ` Dirk Heinrichs
  0 siblings, 0 replies; 2+ messages in thread
From: Dirk Heinrichs @ 2003-11-18 14:31 UTC (permalink / raw)
  To: autofs

Stuckless, Colin wrote:
>  > Hello,

>  > Local:        /level1/level2/home/username
>  > Server: /prefix/homestore_[:a-z:]/username
 >  >
>  > This means when I want to mount my own home I have to mount
>  > server:/prefix/homestore_d/dheinric to /level1/level2/home/dheinric. I
>  > guess there's no other way than using a program map, but there's not
>  > much documentation/examples about this in the package. Can
>  > someone sched
>  > some light on this, please.
> 
> You can create an auto.home map on the server which has all the
> pathnames and mount points. For example, your auto_master would
> say:
> 
> /level1/level2/home auto_home
> 
> and then your auto_home map would have entries like:
> 
> dheinric server:/prefix/homestore_d/&
Tried this, but did not quite succeed. The problem is that this would 
require entries for every single user. But the following auto.home then 
worked for me:

#!/bin/bash
FIRST_LETTER=`echo $1|cut -c 1`
echo server:/prefix/homestore_${FIRST_LETTER}/$1

This returns the correct path.

> This would result in the client automounting /level1/level2/home/dheinric
> from server:/prefix/homestore_d/dheinric when you cd'd into the directory.
> 
>  
>  > I've also looked onto our Solaris machines. They seem to cascade the
>  > maps, which I guess is not possible on linux, right?
> 
> 
> I'm not sure what you mean by cascade, but their is a syntax I've
> seen referred to as 'multimount' where you have multiple subdirectories
> undr a single mount point, each seperated by a "\" continuation character.
> These exist on HP-UX and Solaris. The newest autofs does support this,
> I'm using the autofs-4.1 beta with these type of maps and it's working
> fine.
In auto_master they have a line "/level1 auto_level1", then in 
auto_level1, there is "level2 -fstype=autofs auto_level2", this is what 
I mean with cascading. Meanwhile, I found another Linux box here which 
does the same, but the syntax is different: "level2 -fstype=autofs 
file:/full/path/to/map"

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst & Young| Mail: dirk.heinrichs@cgey.com
Hambornerstraße 55      | Web:  http://www.cgey.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

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

end of thread, other threads:[~2003-11-18 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-18 12:55 Program maps - examples? Dirk Heinrichs
     [not found] <B9F4645CD7B0D511BE8300508B68C327025EADB0@tnscapp02.pcacorp.net>
2003-11-18 14:31 ` Dirk Heinrichs

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.