Article View: ch.comp.os.linux
Article #19920Re: autofs
From: Michael Geyer
Date: Mon, 15 Nov 1999 00:00
Date: Mon, 15 Nov 1999 00:00
47 lines
1780 bytes
1780 bytes
Dominik Fretz <roboto@linuxfreak.com> schrieb: >soviel ich mich erinnern kann kann man samba sagen das es bei cd-roms >und so erst was mounten soll bovor man darauf zugreifft. >schnapp dr doch mal die samba doku. Im hintersten Winkel der Doku hab ich's endlich gefunden: ------------------------------------------------------------------ preexec (S) This option specifies a command to be run whenever the service is connected to. It takes the usual substitutions. An interesting example is to send the users a welcome message every time they log in. Maybe a message of the day? Here is an example: preexec = csh -c 'echo \"Welcome to %S!\" | /usr/local/samba/bin/smbclient -M %m -I %I' & Of course, this could get annoying after a while :-) See also postexec. Default: none (no command executed) Example: preexec = echo \"%u connected to %S from %m (%I)\" >> /tmp/log ------------------------------------------------------------------ Analog dazu gibt es nat�rlich noch postexec. Danke f�r den Tip Bye, Michael ~.~ (Jetzt so richtig happy) -- Shin: Device for finding furniture in the dark.
Technical Details
Message-ID:
<2D8wOHiLzWC4+DWTG+wXW3V+J+lx@4ax.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<vdIuONPpeTuKt6oee+3rvBh+lIH5@4ax.com> <382EF581.15F05280@linuxfreak.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f4b73,29df65a74e33d230 X-Google-Attributes: gidf4b73,public From: Michael Geyer <mgeyer@gmx.ch> Subject: Re: autofs Date: 1999/11/15 Message-ID: <2D8wOHiLzWC4+DWTG+wXW3V+J+lx@4ax.com> X-Deja-AN: 549058763 Content-Transfer-Encoding: 8bit References: <vdIuONPpeTuKt6oee+3rvBh+lIH5@4ax.com> <382EF581.15F05280@linuxfreak.com> Content-Type: text/plain; charset=ISO-8859-1 X-Trace: 15 Nov 1999 19:09:43 +0100, ssda087.dialup-stud.ethz.ch Organization: Aus dem Norden der Schweiz (690 930 / 290 045) MIME-Version: 1.0 Newsgroups: ch.comp.os.linux