Operating System - HP-UX
1850098 Members
2263 Online
104050 Solutions
New Discussion

Re: Port permissions problem?

 
SOLVED
Go to solution
Stacey Akerstrom
Frequent Advisor

Port permissions problem?

When trying to run the following, this is what we're seeing:
HPISP> echo '0 2 I-O RB' | ../c-object/ttyscale /dev/tty2a5 01
Cannot open device /dev/tty2a5

If I run it as root, I get the correct response. Why would the port care who's running it, and is there a way around it?

Thanks-
Stace
5 REPLIES 5
G. Vrijhoeven
Honored Contributor
Solution

Re: Port permissions problem?

Hi,

Take a look at the rights of the /dev/tty2a5 device file.

Gideon
Jeff Schussele
Honored Contributor

Re: Port permissions problem?

Hi Stace,

Also look at the perms on that device.
Normally they're 666 or crw-rw-rw-
May be that the write perms are not there.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Stacey Akerstrom
Frequent Advisor

Re: Port permissions problem?

Permissions are 622, which was the default when I created the port.
G. Vrijhoeven
Honored Contributor

Re: Port permissions problem?

Stace,

if it is 622 a user does not have the permissions as a user to write to the device file.

Gideon
Stacey Akerstrom
Frequent Advisor

Re: Port permissions problem?

Thanks guys.
I changed perms to 666 and got a much different response.