I a have a problem resulting from a neat tool I developed through the use of the
"root preexec" option:
This is done in the [homes] section of smb.conf.
I launch a shell script with the user name (%u) and machine name (%m). The shell
calls a C program to check the users quota and returns a code as the percentage
of quota used.
Meanwhile, all output of the C program has been captured to a temp file to be
displayed to the user via "smbclient" WinPopup message indicating they
are
approaching their limit if they meet or exceed 85%.
My problem is this: It works wonderfully, except it seems to be exibiting a
"root postexec" because I get a beep at logoff, and the next user sees
the
buffered WinPopup message from the previous user.
I have *no* "root postexec" clause at all.
Any help would be wonderful - I can't see it!
Bill
--
/------------------------------------------------------\
| |
| William E. Jojo, Jr. |
| |
| Senior Systems and Network Specialist |
| |
| Hudson Valley Community College |
| |
| (518) 629 7540 |
| |
| jojowil@hvcc.edu |
| |
\------------------------------------------------------/
So I held my up high
Hiding hate that burns inside
Which only fuels their selfish pride
We're all held captive out from the sun
A sun that shines on only some
We the meek are all in one
I finally found the answer to my question I asked a while back about having root
preexec run twice for a user - once at loging and again at logout.
Here's the log:
[2000/06/01 16:35:55, 1] smbd/service.c:close_cnum(583)
ntdev1 (151.103.17.21) closed connection to service billtest
[2000/06/01 16:35:55, 1] smbd/service.c:close_cnum(583)
ntdev1 (151.103.17.21) closed connection to service common
[2000/06/01 16:35:55, 1] smbd/service.c:close_cnum(583)
ntdev1 (151.103.17.21) closed connection to service share
[2000/06/01 16:35:59, 1] printing/printing.c:print_file(120)
Running the command `lpr -r -Pbtc307l2 STAATGRA.Qp6KMo' gave 0
[2000/06/01 16:36:05, 1] smbd/service.c:make_connection(550)
ntdev1 (151.103.17.21) connect to service billtest as user billtest (uid=3476,
gid=206) (pid 51414)
Now obviously, I didn't log right back in. NT must be reopening the
connection.
For now I'll set my root preexec to a different share other than [homes]
although it seems silly.
Can anyone explain why this happen - is this normal NT behavior? Does it need
that warm fuzzy feeling of being wanted?
Bill
--
/------------------------------------------------------\
| |
| William E. Jojo, Jr. |
| |
| Senior Systems and Network Specialist |
| |
| Hudson Valley Community College |
| |
| (518) 629 7540 |
| |
| jojowil@hvcc.edu |
| |
\------------------------------------------------------/
So I held my up high
Hiding hate that burns inside
Which only fuels their selfish pride
We're all held captive out from the sun
A sun that shines on only some
We the meek are all in one