1 |
Am Freitag, 1. Juni 2007 schrieb ext Dirk Heinrichs: |
2 |
> Am Freitag, 1. Juni 2007 schrieb ext Alexander Skwar: |
3 |
> > I'd like to get something like this for Samba hosts as well. As a |
4 |
> > (dysfunctional :() start, I've hacked up a "auto.smb" script, which |
5 |
> > you can find at <http://askwar.pastebin.ca/527240>. If invoked on the |
6 |
> > command line, it returns: |
7 |
> > |
8 |
> > askwar@winnb000488 /dev/shm $ /etc/autofs/auto.smb winfs001 |
9 |
> > -fstype=smbfs,credentials=/home/askwar/winfs001.cred \ |
10 |
> > R$ ://winfs001/R$ \ |
11 |
> > HOME ://winfs001/HOME \ |
12 |
> > C$ ://winfs001/C$ \ |
13 |
> > DAITMeeting ://winfs001/DAITMeeting \ |
14 |
> > DEPT ://winfs001/DEPT \ |
15 |
> > APPL ://winfs001/APPL \ |
16 |
> > F$ ://winfs001/F$ \ |
17 |
> > ADMIN$ ://winfs001/ADMIN$ \ |
18 |
> > WORKGROUPS ://winfs001/WORKGROUPS \ |
19 |
> > D$ ://winfs001/D$ \ |
20 |
> > PUBLIC ://winfs001/PUBLIC \ |
21 |
> > E$ ://winfs001/E$ |
22 |
> > |
23 |
> > Those are all the shares on the winfs001 host. In auto.master, I've got |
24 |
> > the following: |
25 |
> > |
26 |
> > /smb /etc/autofs/auto.smb |
27 |
> > |
28 |
> > But it does not work :( When I do a "ls /smb/winfs001/DEPT", I get: |
29 |
> > |
30 |
> > ls: cannot access /smb/winfs001/DEPT: No such file or directory |
31 |
> |
32 |
> Hmm, I guess the output of your script is wrong. Put this line into the |
33 |
> awk part instead: |
34 |
> |
35 |
> { if (first) { print opts; first=0 }; print " \\\n\t/"$1"\t://"host"/"$1 |
36 |
> } |
37 |
|
38 |
However, xxx$ shares don't work for me, which they do when entered in a |
39 |
static auto.windows. |
40 |
|
41 |
Bye... |
42 |
|
43 |
Dirk |
44 |
-- |
45 |
Dirk Heinrichs | Tel: +49 (0)162 234 3408 |
46 |
Configuration Manager | Fax: +49 (0)211 47068 111 |
47 |
Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com |
48 |
Wanheimerstraße 68 | Web: http://www.capgemini.com |
49 |
D-40468 Düsseldorf | ICQ#: 110037733 |
50 |
GPG Public Key C2E467BB | Keyserver: www.keyserver.net |