//flex table opened by JP

Click to See Complete Forum and Search --> : How do you execute Unix priocntl command in real-time mode as a non-priviledged user


rickyj
02-03-2000, 09:57 AM
I want to use the Solaris Unix "priocntl" command to specify the real-time class option to execute a Java program that needs to execute in real-time, from a single non-priviledged known user.

MAN pages state that this can only be done with super-user priviledges. However, in the past on other super-user commands I have been able to set the access control list priviledges to rwx for a known user to successfully execute the command.

Using Solaris Unix on a Sun workstation, I tried this for the "priocntl" command by using the "setfacl" command to allow access and execution from the non-priviledged user. So far, I have not had any success.

Do you have any suggestions? Can this be done at all? I understand there are potential security risk, but the Solaris system I'm working on does not allow user logins. It is basically a single user (known) environment executing specialized taaks.

The non-priviledged user is the only account thats allowed to execute the priocntl ommand as follows:

priocntl -e -c RT -p 59 -t999 -r 1000 java -native -classpath $CLASSPATH
“program_name”

I get the following error:
RTpriocntl: Can’t reset real time parameters.
priocntl system call failed with errno 1


Platform: Sun Ultra2, Solaris 2.6

R. Jones
ricky.l.jones@lmco.com