General :: Using Route Command With A Non Root Process?

Sep 15, 2010

I use the system command route from a process (using the system() call). For security reasons the process does not have root privilege and for some reason I cannot use ioctl() either. I tried to set the capabilities of the process to NET_ADMIN and SYS_ADMIN but the route command still failed due to insufficient permissions.

What are the capabilities that I need to set for route to be successful?

View 1 Replies


ADVERTISEMENT

Networking :: Definition: "a Process That Replaces A Series Of Related, Specific Routes In A Route Table With A More Generic Route"

Oct 21, 2010

I got this definition:"a process that replaces a series of related, specific routes in a route table with a more generic route." honestly I found it not so clear.. I want to know if this definition is correct and also more details about this subject..

View 1 Replies View Related

General :: Route Command - Remove Iapddress

Jan 24, 2011

I am using this command for blocking some ipaddress. but now i want to remove iapddress. when i try # route delete 64.126.45.122 SIOCDELRT: No such process

View 1 Replies View Related

General :: Stop SMTP Hammering Via Route Command?

Mar 27, 2011

I often see hundreds of entries like this in my logwatch report:

[code]...

I am wondering if this would be correct?

[code]...

will it keep that marauder away from Dovecot?

View 8 Replies View Related

Ubuntu Servers :: Program/Process Route To Specific Network Device?

Jul 30, 2010

Is there a way to bind specific programs to specific network devices (not IPs, since I have dynamic IPs)?

For example, I wish for irssi to route through eth0 and w3m to route through eth1. Keep in mind these devices have dynamic IPs, so I cannot attached them to an IP.

The solution cannot be accomplished through route since route pivots on IPs not devices.

View 1 Replies View Related

General :: Root Process Whose Pid Is Changing All Time / Why Is So?

Mar 17, 2011

It's pid is increasing all the time...
I'm writing a program to display all the process's info, this process really bother me.
Oh..the Chinese words are sleeping..., can't use, can't use

View 2 Replies View Related

General :: Set Umask For Process Running Root User?

Nov 23, 2009

I am trying to set the umask for a process(orkaudio) which is running as the root user.This program creates dir and files and I need the umask to be 022. I have edited my /etc/bashrc -- and when i type in umask i get 0022 --- Not sure how to go about getting this resolved...

View 1 Replies View Related

Red Hat / Fedora :: Command To Stop That File/process Or Is It Just Kill The Process To Stop The Process?

Nov 11, 2010

I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process

View 2 Replies View Related

General :: Kill Process Started With Different User Without Being Root / Sudoer?

May 3, 2010

I need to kill a process which has been started by user2 if I am user1 without being sudoers or using root.Do you know if there is a way of setting that when launching the process? Such as a list of users allowed to kill the process?

View 7 Replies View Related

General :: RHEL 4 Reboot Causes Tomcat Process To Not Be Started By Non-root Account

May 25, 2010

I have a startup script placed in /etc/init.d wherein I make the following call:

nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1

This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?

View 1 Replies View Related

General :: Detailed Description Of The Login Process For Both Root And Normal User?

May 19, 2010

i am looking for a detailed description of the login process for both root and normal user , also locally and remotely.i read some sentences that the files .bashrc and bash_profile are needed for this process. But that was very concise.

View 9 Replies View Related

General :: Use Command To Display All Process?

Sep 2, 2010

How to set that if user use command to display all process, then he'll see only his own processes?

View 2 Replies View Related

Networking :: What Does Route Command Do

Mar 16, 2011

What does it do? Any examples on how I use it?

View 2 Replies View Related

General :: Get Parent PID Of A Given Process In GNU From Command Line?

Jun 8, 2010

Resolved before asked: cat /proc/1111/status | grep PPid

View 2 Replies View Related

General :: Centos - Which Command To Use To Know How Much RAM Consumed By Each Process

Jul 10, 2011

I have tried top and PS command but i am not able to find the RAM used by each process.top command says that 240MB RAM used but the Memory shows 0% for all the processes, same with ps. i want to know which process consumes all 240MB RAM.Is there any command which / script which can sort the running process in oder of increasing RAM usage so that i can see. Also i find it very hard to read bytes and KB. Is there any to way to chnage those units to MB

View 2 Replies View Related

General :: Zombie Process Via 'top' Command Is Not Visible?

Apr 7, 2010

I got indication of zombie process via top command

Code:
Tasks: 321 total, 1 running, 319 sleeping, 0 stopped, 1 zombie

I don't have 'Z' indication on 'Status' column

How could it possible to identify this process ?

View 5 Replies View Related

General :: Use The 'at' Command To Run A File That Checks ALL Process

Jun 26, 2011

I'm trying to use the 'at' command to run a file that checks ALL process running at 5:00pm and does a system load check? Any advice on where to start?

View 7 Replies View Related

General :: Command Line For Child Process

May 20, 2011

I have created three child process from one parent. And different child has different functions. Child 2 has got function to load file called "wc" to count file1 and and its required to get their files by command line arguments. I can get the files through command line but couldn't get the files when child 2 process start.

View 9 Replies View Related

General :: Command To Know Processor Number In Which A Process Is Loaded?

Sep 21, 2010

Is there any command in linux to figure out , given a process, which processor the process is running? I am interested in figuring out the CPU busy and CPU idle time of that processor.

View 2 Replies View Related

General :: Command / C Function To See Cpu Number On Which Process Running?

Feb 22, 2011

When I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?

View 3 Replies View Related

General :: Command To Find Parent And Child Process?

Apr 21, 2011

I have a script that calls other scripts/commands which may or may not spawn other process. From my understanding, when I do a ps -ef, the highest numbered process ID is supposed to be the parent ID of all the other related child processes, is this correct? In most or all circumstances, I do a ps -ef | grep <processid> of my script and anything that spawns off that process IDs I assumed are the child processes of my script. If I want to terminate my script and all other child processes, then I kill the parent ID which is the highest numbered PID and this will subsequently kill all other child process IDs, is this correct?

Now, my question is whether there is any quick way of showing what are the child processes of a parent ID instead of what am currently doing now which is visually checking which one is the parent ID and "assuming" that the highest numbered PID is the parent ID of all the other processes. Below is a sample output of running ps -ef | grep exp | grep -v grep. I assume from the output below that the parent process/ID is PID 11322, is that correct?

Code:

oracle 11154 11153 0 21:20 ? 00:00:00 /bin/sh -c (. ~oracle/.profile; /bin/ksh /usr/local/oracle/scripts/expdp_o
oracle 11155 11154 0 21:20 ? 00:00:00 /bin/sh -c (. ~oracle/.profile; /bin/ksh /usr/local/oracle/scripts/expdp_o
oracle 11190 11155 0 21:20 ? 00:00:00 /bin/ksh /usr/local/oracle/scripts/expdp_schema.ksh dev01
oracle 11322 11190 0 21:20 ? 00:00:00 expdp

View 2 Replies View Related

General :: Process The Output Of A Locate Command, Pipe It To What?

Sep 30, 2010

Is there a way to process the output of a locate command on the spot within bash. The output is 3 lines, ex:

Code:
[root@server confluence]# locate .timestamp
/opt/confluence/confluence-persistent/index/.timestamp

[code]....

View 3 Replies View Related

General :: Specify Password For Sudo Command When Running Bg Process?

Jun 23, 2010

I'd like to start a background job using the sudo command and route its output to a file. This presents a problem because the prompt for the password doesn't work properly. It looks something like this when I try it:

Code:
Mac:server user$ sudo php crossdomain_server.php > data/crosscomain_output.txt &
[3] 30303
Mac:server user$ Password:
[3]+ Stopped sudo php crossdomain_server.php > data/crosscomain_output.txt
Mac:server user$

Basically I'm not properly prompted for the password and as soon as I type anything in my background job fails because it didn't receive the password. Is there any way to execute a sudo command by supplying the password on the same line as the command?

View 9 Replies View Related

General :: Sending Remote Command To Background Process + Out Log?

Feb 1, 2010

Because of my English skills I'll try to explain this subject as best I can, thank you for understanding. Fisrt of all, I am running some program on my slackware in background (using standard method - &). I need to make a script, which allows sending command to this process on my machine from another one. Furthermore this program have to be logged out (standard output f.e. ./myprogram > log.out.txt).It might be a separate Program A which runs my Program B but it cannot be screen, because it is not working like I'd like to and it cannot be java, because it's slow and working not the best so to speak

View 6 Replies View Related

General :: How To Tell The Kill Command To Ignore Processes If That Process Is Not Alive

Jun 18, 2010

How to tell the kill command to ignore processes if that process is not alive?

For example: 3453 is an alive process but 44534 is not.

kill -9 3453 44534

View 4 Replies View Related

General :: Unix Command That Allows To Know Which Process Is Running On Processor Core?

Mar 16, 2011

Unix command that allows to know which process is running on processor core?

View 2 Replies View Related

General :: Command To Find Out For How Many Milli Seconds A Process Is Been Running

Feb 15, 2011

Is there any command to find out for how many Milli seconds a process is been running?s -a -o pid,etime | grep "process pid" gives the time in min:seconds. I wanted in milliseconds .

View 10 Replies View Related

General :: Function Having Background Process Inside Command Substitution

Oct 5, 2010

The first call to "somefunction" works as expected. The function prints "endfunction" and a process in background sleeps 30 seconds. In the second call I thought it should work in the same way, but the script sleeps 30 seconds before it prints "endfunction".Does someone know the reason of this behavior? Is there another way to do a command substitution of a function that has a background process without have to waiting for that process?

View 2 Replies View Related

General :: Shell Command Equivalent To (Ctrl+C) To Exit From A Process?

Apr 1, 2011

I write a script to read a file which is something like a pipe (or) queue , which shows the running status.In normal case, if i open this file with cat command, i have to use ctrl+c to exit this . What command shall i use to do the same inside a shell script ? I have tried ^C in my script , but it does not exit the process.

View 6 Replies View Related

Ubuntu Servers :: Route Command - How To Get Internet To Clients

Apr 24, 2010

I do not understand this command well. Yes, I have looked at man route and that whilst that gives lots of information about the switches I cannot see it in context. I have a server with two nics. One to the Internet (eth1) and one to the lan (eth0). I use pppoe and when it is running I get a virtual adapter appear in ifconfic called ppp0 which shows the public DNS and ISP session IP. I entered the command:
route add -host (gateway IP) dev eth1
and get the Internet to appear on the server. However, I do not get the Internet to the clients. I have turned off the firewall to be sure that this is not the problem.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved