I have a webapplication and I would like to provide the users with a feature to be able to ssh to the linux server without having to add all the users’ credentials from the Psql DB to the linux server. Instead I would like to use the credentials directly for ssh. I think that this is possible using linu…
linux read sys call doesnt get EOF
First of all sorry if my English won’t be fluent and clear. I’m working on understanding pipes and communication between processes. I have tried to implement two c programs, the one writes into a certain pipe from what he reads from the standard input and the other one waits until the pipe opens a…
Issue finding the process id from shell scipt
mySample.sh The above command is printing and killing the temporary process that was created for grep Even though i do not have any process running with Abcd, This is printing pid Any ways to ignore it, iam actually ignoring it using grep -v, still… Any Issue in fetching the process id.? Basic command l…
Reshuffling of specific structure file with bash script [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question I would appreciate your advice on how to deal with the following problem u…
bash does not get root permissions with setuid program
I have the following home-grown implementation of su: To allow for proper execution, the permissions and ownership information are set accordingly: When I invoke a shell, such as /bin/sh, I am able to modify root-owned files and directories: However, /bin/bash doesn’t seem to get root permissions: Answe…
Attempting to send TCP SYN packet with data and RST with data, but raw data field disappears in transit. Why?
I’m attempting to craft a raw TCP packet to send over Ether in a raw socket on a linux client and server. The special part of the TCP packet is that I’m attempting to use the raw data field of the TCP SYN packet and RST packet to send data back and forth (for a proof of concept about an
How to write a swap function in assembly?
I’ve been trying to figure out how to write a x86 GAS swap function for my program. I know its easier to do xchg or just write it C, but I want to be able to write it out anyways. On my 1st midterm we were given this as as swap function: but I receive a segmentation fault when running
My own program who work as “which” command in linux – dont work great
I would like to make my own program who will be work as which command in linux. Original which command works that (example for pwd): $ which pwd /bin/pwd but my program works that: $ ./prog1 pwd /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games pwd Can You correct my pro…
rdesktop request without gui linux
Can I make rdesktop request without installed x-server? Just send RDP request from linux (Centos 6) server to windows server? When I run: the error appears: Solve the problem with install xserver, and freerdp may be it helps someone (centos 6): Answer Yes, you have several options: Use a client that render ov…
Is libpcap implemented by socket API?
libpcap is used for package capturing. As I understand, it can capture the network packages from all ports. And it can capture the package data in link layer (such as ethernet frame). This looks a little confusing to me, because it seems impossible to intercept all network traffic (from all ports) by just usi…