set account for accounting log purposes

set account for accounting log purposes

Post by Chris Sharma » Sat, 03 Nov 2001 18:07:15



I've had a piece of kernel mode code that I've used for some years to set
account name (to "Dialup") for the accounting log.

This is the core of it:
        movzbl  (r7)+, r6

; jib$t_account         ascii

        movc5   r6, (r7), #^a" ", #jib$s_account, jib$t_account(r5)

; ctl$t_account         ascii

        movc5   r6, (r7), #^a" ", #ctl_acclen, g^ctl$t_account

1$:     movl    #1, r0
        ret

It's worked fine on both VAX & Alpha for many years.
Now (new machine, VMS 7.3) it fills in the JIB, but ctl$t_account is
unchanged at image exit !!
And no, it doesn't crash either - I'd have noticed.
I tried relinking it, to no avail.
Any suggestions ?? Is it something to do with $persona services ?
Is there another field I need to fill in, or should I use the persona stuff
for a permanent (until logout) change ?

Thanks,
Chris

 
 
 

set account for accounting log purposes

Post by Larry Kilgall » Sat, 03 Nov 2001 21:45:05



Quote:> I've had a piece of kernel mode code that I've used for some years to set
> account name (to "Dialup") for the accounting log.
> Now (new machine, VMS 7.3) it fills in the JIB, but ctl$t_account is
> unchanged at image exit !!
> Any suggestions ?? Is it something to do with $persona services ?

Absolutely.  You really need to read the full description (start with
the V7.2 release notes) of Alpha kernel changes to implement per-thread
security.

When you think you have read it all, try HELP INSTALL ADD/ARB_SUPPORT .

 
 
 

set account for accounting log purposes

Post by Chris Sharma » Sun, 04 Nov 2001 00:13:16


Thanks for that.
Documentation not all that clear, but it appears that all I need to do is
$persona_modify(0, ...);
No more kernel code - great !

Thanks, Chris Sharman




> > I've had a piece of kernel mode code that I've used for some years to
set
> > account name (to "Dialup") for the accounting log.

> > Now (new machine, VMS 7.3) it fills in the JIB, but ctl$t_account is
> > unchanged at image exit !!

> > Any suggestions ?? Is it something to do with $persona services ?

> Absolutely.  You really need to read the full description (start with
> the V7.2 release notes) of Alpha kernel changes to implement per-thread
> security.

> When you think you have read it all, try HELP INSTALL ADD/ARB_SUPPORT .

 
 
 

set account for accounting log purposes

Post by Larry Kilgall » Sun, 04 Nov 2001 00:19:49



Quote:> Thanks for that.
> Documentation not all that clear, but it appears that all I need to do is
> $persona_modify(0, ...);

Of course that requires privilege (IMPERSONATE ?).

Quote:> No more kernel code - great !

But you formerly were using CMKRNL :-)
 
 
 

1. FREE E-MAIL ACCOUNT, FREE DISK SPACE, FREE UNIX ACCOUNT.

Sounds unbelievable right?? Well it's true.? What's the catch?
There is no.? Why free accounts?? Well as a Computer Science
major planning on gaining some administrative experience, I
felt it would be the best way of attracting users.? Any risks
involved?? One, the system is going to
be run by me, <Hehehe> an amateur system administrator.? I
have no professional experience with UNIX-based systems.? But I
know what I am doing to an extent.? I'm a 2nd year Computer
Science major at Ramapo College of New Jersey and I've worked on a
UNIX-based system for 2 years and now my new Linux system for a few
months.? Obviously I don't know the
in's and out's of it and so that's the risk you have to deal with.
So how much harm could I do?? Well I could unintentionally delete
your account with about 10 key strokes.? So what do I plan to do
about that?? Well daily/weekly backups will need to be performed.
Anything else I need to know?? Well you need an internet connection
to reach my system.

Well I have much more to tell you, but let me head into one area
which I need to mention.? A free account is great, but if it leads
to abuse there will be problems.? I'll tell you know that I reserve
the right to remove your account at any time if I sense abuse.? That
means all of Megabytes of your important e-mail will be lost.? I'm telling
you this now because I'm sure there will be people on here that know
more about computers than I.? But if I sense anything, I have have to
take action in order to prevent everyone else from being screwed.? Well
that's about it.? If you are still interested and want to know more give me

2. Looking for an implementation of the following pattern with CORBA

3. FREE E-MAIL ACCOUNT, FREE DISK SPACE, FREE UNIX ACCOUNT

4. JFS0508 released

5. Log in to somebody's account w/o password

6. SIMMS update

7. Programmatically access the accounting log

8. How secure is publishing?

9. log into somebody's account w/o password

10. Looking for utility to log out idle accounts

11. Setting Up An FTP Account

12. expired account passwords set to 'temp'

13. Setting up automatic mail forward account on VMS how??