[Samba] Preexec on Profiles

Mac mac at nibsc.ac.uk
Fri Aug 20 14:47:46 GMT 2004


Hi there,

>#!/bin/sh
>#
>#
># Logon script
>
>echo "$*" > /tmp/log
>/usr/local/samba/KEELE/mozilla-profile-setup >> /tmp/log 2>&1
>

This looks odd to me.

The file /tmp/log is almost certainyl owned by someone, and doesn'thave
world writeable on it, so both lines in that script will fail before
they can exec get executed.

Unless, of course, you've already thought of that!


If this _is_ your porblem, try using  /tmp/log.$$  to generate a unique
file name each time.



                               Mac
          Assistant Systems Adminstrator @nibsc.ac.uk
                        dmccann at nibsc.ac.uk
   Work: +44 1707 641565          Everything else: +44 7956 237670 (anytime)


More information about the samba mailing list