All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: Matthew Jurgens <autofs@edcint.co.nz>
Cc: autofs@linux.kernel.org
Subject: Re: unable to automount windows C$
Date: Fri, 15 May 2009 15:13:52 +0800	[thread overview]
Message-ID: <4A0D1630.3040407@themaw.net> (raw)
In-Reply-To: <4A0CC262.7020105@edcint.co.nz>

Matthew Jurgens wrote:
> 
>> Of course, it then doesn't escape $ in the offsets.
>> But, it looks like your script isn't up to date.
>> I'm fairly sure the current script should output:
>>  -fstype=cifs,username=USER,password=PASS \
>>          "/C" "://xp0/C" \
>>          "/ADMIN$" "://xp0/ADMIN$" \
>>          "/C$" "://xp0/C$"
>>
>> which is why I thought we shouldn't need the "\" escapes.
>> Can you check your auto.smb against the one attached please, in
>> particular the last line at the bottom of the "/Disk/" block should be:
>>
>> print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
>>
>> Ian
>>   
> Script updated and gsub commented out (like a message earlier in the
> thread):
> -fstype=cifs,username=USER,password=PASS \
>         "/C" "://xp0/C" \
>         "/ADMIN$" "://xp0/ADMIN$" \
>         "/C$" "://xp0/C$"
> 
> cd /smb/xp0/C$  gives
> cd: no such file or directory: /smb/xp0/C$
> 
> something is really busted now since I can't even cd /smb/xp0/C either.
> I don't understand why the debug log contains what looks like parts of
> the script as the output since running the script manually seems to have
> perfectly clean output

Because the script file is not executable now it is treating it as a
file map not a program map.

> 
> debug output is:
> May 15 11:09:01 gw automount[20964]: st_expire: state 1 path /smb
> May 15 11:09:01 gw automount[20964]: expire_proc: exp_proc = 3082091408
> path /smb
> May 15 11:09:01 gw automount[20964]: expire_cleanup: got thid 3082091408
> path /smb stat 0
> May 15 11:09:01 gw automount[20964]: expire_cleanup: sigchld: exp
> 3082091408 finished, switching from 2 to 1
> May 15 11:09:01 gw automount[20964]: st_ready: st_ready(): state = 2
> path /smb
> May 15 11:09:01 gw automount[20964]: handle_packet: type = 3
> May 15 11:09:01 gw automount[20964]: handle_packet_missing_indirect:
> token 101, name xp0, request pid 17443
> May 15 11:09:01 gw automount[20964]: attempting to mount entry /smb/xp0
> May 15 11:09:01 gw automount[20964]: lookup_mount: lookup(file): looking
> up xp0
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup_nss_mount: key "xp0" not
> found in map.
> May 15 11:09:01 gw automount[20964]: send_fail: token = 101
> May 15 11:09:01 gw automount[20964]: failed to mount /smb/xp0
> May 15 11:09:01 gw automount[20964]: handle_packet: type = 3
> May 15 11:09:01 gw automount[20964]: handle_packet_missing_indirect:
> token 102, name xp0, request pid 17443
> May 15 11:09:01 gw automount[20964]: attempting to mount entry /smb/xp0
> May 15 11:09:01 gw automount[20964]: lookup_mount: lookup(file): looking
> up xp0
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup_nss_mount: key "xp0" not
> found in map.
> May 15 11:09:01 gw automount[20964]: send_fail: token = 102
> May 15 11:09:01 gw automount[20964]: failed to mount /smb/xp0
> May 15 11:09:01 gw automount[20964]: handle_packet: type = 3
> May 15 11:09:01 gw automount[20964]: handle_packet_missing_indirect:
> token 103, name xp0, request pid 17443
> May 15 11:09:01 gw automount[20964]: attempting to mount entry /smb/xp0
> May 15 11:09:01 gw automount[20964]: lookup_mount: lookup(file): looking
> up xp0
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup_nss_mount: key "xp0" not
> found in map.
> May 15 11:09:01 gw automount[20964]: send_fail: token = 103
> May 15 11:09:01 gw automount[20964]: failed to mount /smb/xp0
> May 15 11:09:01 gw automount[20964]: handle_packet: type = 3
> May 15 11:09:01 gw automount[20964]: handle_packet_missing_indirect:
> token 104, name xp0, request pid 17443
> May 15 11:09:01 gw automount[20964]: attempting to mount entry /smb/xp0
> May 15 11:09:01 gw automount[20964]: lookup_mount: lookup(file): looking
> up xp0
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "[ -x
> $P/smbclient ]..." for key "if"
> May 15 11:09:01 gw automount[20964]: lookup(file): bad map entry "-A
> $smbauthfile -gL $key 2>/dev/null| awk -v key="$key" -v opts="$opts"
> -F'|' -- '..." for key "$SMBCLIENT"
> May 15 11:09:01 gw automount[20964]: lookup_nss_mount: key "xp0" not
> found in map.
> May 15 11:09:01 gw automount[20964]: send_fail: token = 104
> May 15 11:09:01 gw automount[20964]: failed to mount /smb/xp0
> 
> 
> 
> 

  parent reply	other threads:[~2009-05-15  7:13 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 19:49 unable to automount windows C$ Scott Belnap
2008-12-23  6:13 ` Ian Kent
2009-05-11  0:43   ` Matthew Jurgens
2009-05-12  4:45     ` Ian Kent
2009-05-13  4:57       ` Matthew Jurgens
2009-05-13  5:05         ` Ian Kent
2009-05-13  5:30           ` Ian Kent
2009-05-13 11:54             ` Jeff Layton
2009-05-13 14:08               ` Ian Kent
     [not found]           ` <4A0A59F5.1090308@edcint.co.nz>
2009-05-13  5:32             ` Ian Kent
2009-05-13  5:47               ` Matthew Jurgens
2009-05-13  5:58                 ` Matthew Jurgens
2009-05-13  8:09                   ` Ian Kent
2009-05-13  8:16                     ` Ian Kent
2009-05-13  8:03                 ` Ian Kent
2009-05-13 23:55                   ` Matthew Jurgens
2009-05-14  2:23                     ` Ian Kent
     [not found]                       ` <4A0CC262.7020105@edcint.co.nz>
2009-05-15  7:13                         ` Ian Kent [this message]
2009-05-17  7:48                           ` Matthew Jurgens
2009-05-18  1:39                             ` Ian Kent
2009-06-02  5:45                               ` Matthew Jurgens
2009-06-02 11:17                                 ` Ian Kent
2009-06-04  0:15                                   ` Matthew Jurgens
2009-06-04  4:24                                     ` Ian Kent
     [not found]                                       ` <4A2DADEA.3010406@edcint.co.nz>
2009-06-09  3:05                                         ` Ian Kent
2009-06-09  3:21                                         ` Ian Kent
2009-06-09  8:03                                           ` Matthew Jurgens
2009-06-09  9:35                       ` Matthew Jurgens
2009-06-11  6:23                         ` Ian Kent
2009-06-11 12:13                           ` Matthew Jurgens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A0D1630.3040407@themaw.net \
    --to=raven@themaw.net \
    --cc=autofs@edcint.co.nz \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.