OpenQNX :: The QNX Community Portal

Sep 07, 2008 - 07:36 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 38 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
David Porta
Post subject: su norights -c /usr/photon/bin/ped -> Ap: Unable to locate P  PostPosted: Feb 05, 2007 - 04:28 PM
Guest





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
 
   
Reply with quote Back to top
Rodney Dowdall
Post subject: Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca  PostPosted: Feb 05, 2007 - 06:12 PM
Guest





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:
Quote:
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

 
   
Reply with quote Back to top
David Porta
Post subject: Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca  PostPosted: Feb 06, 2007 - 08:25 AM
Guest





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...
Quote:
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
 
   
Reply with quote Back to top
Wojtek Lerch
Post subject: Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca  PostPosted: Feb 06, 2007 - 02:46 PM
Guest





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

David Porta wrote:
Quote:
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
 
   
Reply with quote Back to top
David Porta
Post subject: Re: su norights -c /usr/photon/bin/ped -> Ap: Unable to loca  PostPosted: Feb 06, 2007 - 04:17 PM
Guest





Yes! Thanks Wojtek,

This is working fine

"Wojtek Lerch" <Wojtek_L@yahoo.ca> escribió en el mensaje
news:eqa4ad$57h$1@inn.qnx.com...
Quote:
"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
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.