Skip to content

How to use a sql DB for ssh?

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…

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…