Adding a negative increment to a process's nice value requires that the process have an effective uid of root. Is this program running suid to root? When bash starts up in that state, it will abandon the root power unless -p has been specified. Other modern shells will also have features to resist running scripts while suid'ed. My guess is that this happened to you.
Does /usr/local/bin/vmod4dSOUND need root power? If it can run as an ordinary user, pick one, let's say it's uid 4. Now write a program like:
And call this, perhaps, runvmod4dSOUND. It must be owned by root and have the setuid bit on:
chown root runvmod4SOUND
chmod 4755 runvmod4SOUND
Now you have a program that can run your sound and it is already setuid to root. So now the invoking program can be an ordinary user.
And when you invoke it, just do...
system("/usr/local/bin/runvmod4dSOUND");
You don't need to copy the string into an array the way you are doing.
Hi! Experts,
Is there anyway to incerase the priority of a process which is already started and running??.. I think nice can used for increase priority when we start the process..
But donno how to do when its already running..
Any help would be apreciated..
Jyoti (2 Replies)
Hi folks,
Hope you can help me. I have a process that is currently running at nice 20 and need it to run faster (-10?). How do I change the process using nice? I have the process number and thought it would be along the lines of;
nice -10 process_id
but it doesn't seem to like that. (1 Reply)
Hi,
I am a nw bie to Schell Scripting, i have a same king of requirement as posted above.
my input file is also a log file as below.....
28.05.2008 07:02:56,105 INFO Validation request recieved
28.05.2008 07:03:57,856 INFO 0:01:13.998 Response sent with: <?xml version="1.0"... (0 Replies)
Hi,
I want to increase IRQ4 priority to maximum in Fedora core 9 (kernel version 2.6.25.11-97).If anybody knows plz help me....
I will be very thankful ..
regards,
Raj (0 Replies)
hello everybody!
i would like to post a question. If i embed in my C code the command kill(9,pid) inside an if command. Is this command(kill) executed in any way. Both if the if is true and false. Does kill have greater priority than the if command.
thanx in advance! (5 Replies)
hi how to change the priority of a process for eg.if a,b,c these there process are running and if i have to give the b process as high priority and high severe level what should i do (3 Replies)
Hi All,
Is this correct on DNS searching?
(1st priority) /etc/hosts
(2nd p.) /etc/resolv.conf
Are there more things that I didn't know?
Thank you for any comments you may add. (5 Replies)
I have the following piece of code. Currently the command line arguments are passed as shown below using the "= "sign. I capture the name of the argument, for example vmod and it's corresponding user parameter which is jcdint-z30.cmd.
./raytrac vmod=jcdint-z30.cmd srFile=jcdint.sr
Now I want... (12 Replies)
Hi,
I can't find the priority in my logs, which under the catalogue of /var/log/lmessages.
For example, if the log below occur on my machine, there is no <30>. What should I do if I want to see <30> .
<30>Oct 9 22:33:20 hlfedora auditd: The audit daemon is exiting. (0 Replies)
Hi all,
I am using following command:
perl program.pl input.txt output.txt CUTOFF 3 > groups_3.txt
containing program.pl, two files (input.txt, output.txt) and getting output in groups_3.txt:
But, I wish to have 30 files corresponding to each CUTOFF ranging from 0 to 30 using the same... (1 Reply)
Discussion started by: bioinfo
1 Replies
LEARN ABOUT FREEBSD
krb5_appdefault_time
KRB5_APPDEFAULT(3) BSD Library Functions Manual KRB5_APPDEFAULT(3)NAME
krb5_appdefault_boolean, krb5_appdefault_string, krb5_appdefault_time -- get application configuration value
LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
SYNOPSIS
#include <krb5.h>
void
krb5_appdefault_boolean(krb5_context context, const char *appname, krb5_realm realm, const char *option, krb5_boolean def_val,
krb5_boolean *ret_val);
void
krb5_appdefault_string(krb5_context context, const char *appname, krb5_realm realm, const char *option, const char *def_val, char **ret_val);
void
krb5_appdefault_time(krb5_context context, const char *appname, krb5_realm realm, const char *option, time_t def_val, time_t *ret_val);
DESCRIPTION
These functions get application defaults from the appdefaults section of the krb5.conf(5) configuration file. These defaults can be specified
per application, and/or per realm.
These values will be looked for in krb5.conf(5), in order of descending importance.
[appdefaults]
appname = {
realm = {
option = value
}
}
appname = {
option = value
}
realm = {
option = value
}
option = value
appname is the name of the application, and realm is the realm name. If the realm is omitted it will not be used for resolving values.
def_val is the value to return if no value is found in krb5.conf(5).
SEE ALSO krb5_config(3), krb5.conf(5)HEIMDAL July 25, 2000 HEIMDAL