Changing permissions on /dev/pt devices? (224 Views)
Reply
Occasional Contributor
heymanj
Posts: 7
Registered: ‎11-14-2013
Message 1 of 3 (224 Views)

Changing permissions on /dev/pt devices?

By default, devices in /dev/pt appear to have the following permissions:

 

crw-r----- bin sys  12   0x000141 Nov 25 14:30 pt2

...

 

Associated hpux documentation says that the Persistent DSFs will retain their name even if the LUN or HBA that it is tied to changes.

 

My question is if we modify the permissions (640 to 664), would those permissions also be persistent?

 

Thanks!

 

jerry

Honored Contributor
Bill Hassell
Posts: 14,225
Registered: ‎05-29-2000
Message 2 of 3 (211 Views)

Re: Changing permissions on /dev/pt devices?

>> Persistent DSFs will retain their name even if the LUN or HBA that it is tied to changes...

 

LUNs and HBAs have no connection to PTY devices. Persistent DSF only applies to the path to the device. Permissions for LUNs and HBAs may be changed by the owner at anytime.

 

>> My question is if we modify the permissions (640 to 664), would those permissions also be persistent?

 

No. Permission and ownership for PTY devices will change all the time. This is a function of the programs that use the device files. These are temporary device files, lasting only during usage.

Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 3 of 3 (200 Views)

Re: Changing permissions on /dev/pt devices?

Bill, not PTYs but /dev/pt/* devices, i.e. new-style SCSI Pass-Through devices on 11.31:

 

# ioscan -fnNkCctl
Class     I  H/W Path  Driver S/W State   H/W Type     Description
==================================================================
ctl      14  64000/0xfa00/0x32  esctl   CLAIMED     DEVICE       EMC     SYMMETRIX
                      /dev/pt/pt14
ctl      15  64000/0xfa00/0x43  esctl   CLAIMED     DEVICE       EMC     SYMMETRIX
                      /dev/pt/pt15

 

And yes, if you set custom permissions to the device node, they will stay persistently.

MK
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.