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

Huh!?  This is man page is really not very helpful.  Does the command
run before or after the disconnect?  What exactly is the shell
environment? Why does it run as root if there is a separate setting just
for this, i.e. "root postexec"?  I ran with "echo $USER > /tmp/err.txt"
as the command and it spat out "root". I've tried everything I can think
of to get the script to run as the user. That was mostly one or another
use of "su" but none of it works.

<CHEWBACCA>Dis do not make sense.</CHEWBACCA>

Oh, and another thing.  What about those escapes below, i.e. postexec =
echo \"%u disconnected from %S ...? Where does it say what needs to be
escaped and when? Is it just quotes or is there more?  Would it be
better for me to use single quotes?

Jim C.
|        postexec (S)
|               This option specifies a command to be run whenever  the
 service
|               is  disconnected.  It takes the usual substitutions. The
command
|               may be run as the root on some systems.
|
|               An interesting example may be to unmount server resources:
|
|               postexec = /etc/umount /cdrom
|
|               Default: .nf postexec =
|
|               Example: .nf postexec = echo \"%u disconnected from %S
from  %m
|               (%I)\" >> /tmp/log
|
|               Related are: .TP 3 � preexec .LP
|
|        exec   This parameter is a synonym for preexec.
|



- --

- -----------------------------------------------------------------
| I can be reached on the following Instant Messenger services: |
|---------------------------------------------------------------|
| MSN: [EMAIL PROTECTED]  AIM: WyteLi0n  ICQ: 123291844         |
|---------------------------------------------------------------|
| Y!: j_c_llings               Jabber: [EMAIL PROTECTED]        |
- -----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFA7g8957L0B7uXm9oRAnLWAJ9D+CsR+idrxoW2wQgo9Sbox7lxSQCfeGuR
3Rgit/YfDjXrsm4tUxlxRQs=
=3YIZ
-----END PGP SIGNATURE-----

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

Reply via email to