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

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

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

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

“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

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