Skip navigation.
Home
The QNX Community Portal

View topic - su norights -c /usr/photon/bin/ped -> Ap: Unable to locate P

su norights -c /usr/photon/bin/ped -> Ap: Unable to locate P

Read-only archive of qnx.gui (Creating graphical applications within a GUI environment, such as Photon or PhAB) at inn.qnx.com

su norights -c /usr/photon/bin/ped -> Ap: Unable to locate P

Postby David Porta » Mon Feb 05, 2007 4:28 pm

Hello,

I want to exec "ped" with a norights user. I don't want to allow the user to
save files, print into files,etc

If I try to exec ped with "su" command I've got the system message:
su norights -c /usr/photon/bin/ped
--->Ap:Unable to locate Photon

Is there a way to do something similar?

PD: This is a Test example, in fact I want to do not allow a user to print
with voyager into system files. Voyager is executed from a system command
from my gui application in a workspace blocked system....

Thanks,
David
David Porta
 

Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca

Postby Rodney Dowdall » Mon Feb 05, 2007 6:12 pm

Hello David

Is photon being started at startup or by typing in ph from command line
after logging in? I would appear that ped can't talk to /dev/photon.
The app needs to talk to the Photon server in order to work.

Rodney


David Porta wrote:
Hello,

I want to exec "ped" with a norights user. I don't want to allow the user to
save files, print into files,etc

If I try to exec ped with "su" command I've got the system message:
su norights -c /usr/photon/bin/ped
--->Ap:Unable to locate Photon

Is there a way to do something similar?

PD: This is a Test example, in fact I want to do not allow a user to print
with voyager into system files. Voyager is executed from a system command
from my gui application in a workspace blocked system....

Thanks,
David

Rodney Dowdall
 

Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca

Postby David Porta » Tue Feb 06, 2007 8:25 am

Hello Rodney,

I start photon and autologgin from the rc.local:
LOGNAME=root
ph

Yes, it seems like ped can't talk to /dev/photon. Maybe only root can do it?
It works with root...
In fact, I only need to start Voyager from my root session with no rights to
print into system and database files...
Is there another way to do it?

David

"Rodney Dowdall" <rdowdall@qnx.com> escribió en el mensaje
news:eq7s0h$j4g$1@inn.qnx.com...
Hello David

Is photon being started at startup or by typing in ph from command line
after logging in? I would appear that ped can't talk to /dev/photon. The
app needs to talk to the Photon server in order to work.

Rodney


David Porta wrote:
Hello,

I want to exec "ped" with a norights user. I don't want to allow the user
to save files, print into files,etc

If I try to exec ped with "su" command I've got the system message:
su norights -c /usr/photon/bin/ped
--->Ap:Unable to locate Photon

Is there a way to do something similar?

PD: This is a Test example, in fact I want to do not allow a user to
print with voyager into system files. Voyager is executed from a system
command from my gui application in a workspace blocked system....

Thanks,
David
David Porta
 

Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca

Postby Wojtek Lerch » Tue Feb 06, 2007 2:46 pm

"chmod" should work with /dev/photon...

David Porta wrote:
Hello Rodney,

I start photon and autologgin from the rc.local:
LOGNAME=root
ph

Yes, it seems like ped can't talk to /dev/photon. Maybe only root can do it?
It works with root...
In fact, I only need to start Voyager from my root session with no rights to
print into system and database files...
Is there another way to do it?

David

"Rodney Dowdall" <rdowdall@qnx.com> escribió en el mensaje
news:eq7s0h$j4g$1@inn.qnx.com...

Hello David

Is photon being started at startup or by typing in ph from command line
after logging in? I would appear that ped can't talk to /dev/photon. The
app needs to talk to the Photon server in order to work.

Rodney


David Porta wrote:

Hello,

I want to exec "ped" with a norights user. I don't want to allow the user
to save files, print into files,etc

If I try to exec ped with "su" command I've got the system message:
su norights -c /usr/photon/bin/ped
--->Ap:Unable to locate Photon

Is there a way to do something similar?

PD: This is a Test example, in fact I want to do not allow a user to
print with voyager into system files. Voyager is executed from a system
command from my gui application in a workspace blocked system....

Thanks,
David





--
Wojtek Lerch
QNX Software Systems
Wojtek Lerch
 

Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca

Postby David Porta » Tue Feb 06, 2007 4:17 pm

Yes! Thanks Wojtek,

This is working fine

"Wojtek Lerch" <Wojtek_L@yahoo.ca> escribió en el mensaje
news:eqa4ad$57h$1@inn.qnx.com...
"chmod" should work with /dev/photon...

David Porta wrote:
Hello Rodney,

I start photon and autologgin from the rc.local:
LOGNAME=root
ph

Yes, it seems like ped can't talk to /dev/photon. Maybe only root can do
it? It works with root...
In fact, I only need to start Voyager from my root session with no rights
to print into system and database files...
Is there another way to do it?

David

"Rodney Dowdall" <rdowdall@qnx.com> escribió en el mensaje
news:eq7s0h$j4g$1@inn.qnx.com...

Hello David

Is photon being started at startup or by typing in ph from command line
after logging in? I would appear that ped can't talk to /dev/photon. The
app needs to talk to the Photon server in order to work.

Rodney


David Porta wrote:

Hello,

I want to exec "ped" with a norights user. I don't want to allow the
user to save files, print into files,etc

If I try to exec ped with "su" command I've got the system message:
su norights -c /usr/photon/bin/ped
--->Ap:Unable to locate Photon

Is there a way to do something similar?

PD: This is a Test example, in fact I want to do not allow a user to
print with voyager into system files. Voyager is executed from a system
command from my gui application in a workspace blocked system....

Thanks,
David





--
Wojtek Lerch
QNX Software Systems
David Porta
 


Return to qnx.gui

Who is online

Users browsing this forum: No registered users and 1 guest