Operating System - HP-UX
1833920 Members
4709 Online
110063 Solutions
New Discussion

Device assignment database

 
Angel_15
Occasional Advisor

Device assignment database

Hello
How I can add,change,delete items in device assignment database using SAM?

Thanks.
angel0
8 REPLIES 8
Ollie R
Respected Contributor

Re: Device assignment database

Hi,

What do you mean exactly by "device assignment database"?
To err is human but to not award points is unforgivable
Michael Tully
Honored Contributor

Re: Device assignment database

There is no actual database as such.
A device is generated from the major an minor number depending on it's device class and hardware address. SAM follows these rules as well.

See the man page on 'lsdev' for the major numbers.
See the man page on 'lssf' for minor numbers.

Running 'ioscan -fn' as root will list all the currently attached hardware(s) addresses.

Anyone for a Mutiny ?
Angel_15
Occasional Advisor

Re: Device assignment database

I have a trusted system ,and I want have Device-Based Acces Control; but I need modify the device assignment database using SAM.
Anybody knows how I can do it?

Thanks.
angel0
Ollie R
Respected Contributor

Re: Device assignment database

Hi,

Are you talking about controlling who can login where? Or are you talking about printing?

I'm still confused as to exactly where we're going with this.

Ollie.
To err is human but to not award points is unforgivable
Angel_15
Occasional Advisor

Re: Device assignment database

I'm talking about who can login for a device.
In a trusted system this is possible with device assignment database. I need know how modify it with SAM.
Thanks.
angel0
Ollie R
Respected Contributor

Re: Device assignment database

Hi,

OK, that's a bit clearer - you're talking about the "/tcb/files/ttys" file I think.

I don't know of any way to manipulate this is SAM - sorry!

Refer to "man ttys" for details of how to do it manually.

Ollie.
To err is human but to not award points is unforgivable
Darren Prior
Honored Contributor

Re: Device assignment database

Hi,

The file you are discussing is /tcb/files/devassign. I'm not aware of a way of editing it from within SAM. You'll need to edit the file manually. The man page for devassign explains the format of the file.

Ollie - just a quick fyi: the ttys file is really the counterpoint of the devassign file. Devassign sets who can login at a given tty, whereas ttys shows who logged in there last and when. :)

regards,

Darren.
Calm down. It's only ones and zeros...
Ollie R
Respected Contributor

Re: Device assignment database

Hi,

Thanks Darren!

I was just spouting what I'd learned in the last 10 minutes by digging around.

Ollie.
To err is human but to not award points is unforgivable