Search Results

Search: Posts Made By: steadyonabix
2,212
Posted By stomp
Hi, for debugging purposes I suggest you add...
Hi,

for debugging purposes I suggest you add some these logging rules

# Logging rules of what packages are dropped
iptables -A INPUT -j LOG
iptables -A OUTPUT -j LOG
iptables -A FORWARD -j...
Forum: IP Networking 12-06-2015
5,123
Posted By MadeInGermany
The standard host resolution is determined by...
The standard host resolution is determined by /etc/nsswitch.conf
Add dns to the hosts line!
Example
hosts: files dns
1,265
Posted By Just Ice
format for /etc/sudoers file ... who where =...
format for /etc/sudoers file ...
who where = (as_whom) what
the sample below will allow jack to only run /dir/command only on host17 only as user jill ... see man sudoers for more info ...
jack...
1,790
Posted By Yoda
Here is a bash approach: #!/bin/bash while...
Here is a bash approach:
#!/bin/bash

while read line
do
for num in ${line//,/ }
do
if [[ "$num" =~ \- ]]
then
if [[...
1,210
Posted By elixir_sinari
Single-quote the trap command so that the...
Single-quote the trap command so that the variable is evaluated only when the trap signal occurs and not when the trap is being set.
trap 'rm -f $PIPE;exit' EXIT
1,309
Posted By Corona688
./myscript | ssh username@host ./otherscript ...
./myscript | ssh username@host ./otherscript

Also possible is things like netcat (nc).
2,891
Posted By elixir_sinari
Use a pipe to supply input to the code block: ...
Use a pipe to supply input to the code block:
awk '{print $2}' FS=":" "${FILE}" | {
read M_GRP_ID || m_fail 1 "Error: Read failed 1 (${FUNCNAME})"
read M_GRP_WAIT || m_fail 1...
2,193
Posted By RudiC
Try setting the setgid bit on the directory's...
Try setting the setgid bit on the directory's entry to the desired group; $ chmod g+s tdir
$ chown :groupx tdir
$ ls -lad tdir
drwxr-srwx 2 nobody groupx 4096 Aug 26 12:54 tdir/
$ touch tdir/xy...
16,831
Posted By jim mcnamara
Suppose you want a group, say gid=10 which is...
Suppose you want a group, say gid=10 which is staff, using POSIX compliant id:


[ `id -g` -eq 10 ] && M_ROOT=/usr/local/bin/m_prog
[ "`id -gn`" = "staff" ] && M_ROOT=/usr/local/bin/m_prog


...
16,831
Posted By Don Cragun
When a user with ksh as their login shell logs...
When a user with ksh as their login shell logs in, ksh executes /etc/profile and then $HOME/.profile. Your system administrator could use id -gn or id -Gn to determine if the user is a member of...
16,831
Posted By bakunin
On most systems you have some sort of system-wide...
On most systems you have some sort of system-wide profile, which is called before individual profiles are called. Use the id command to get the group set of the user logging on there and implement a...
2,650
Posted By neutronscott
it's very likely shell code was placed directly...
it's very likely shell code was placed directly in the command="" then. it replaces the clients requested command in that the client no longer has any choice of what is ran. it sounds like exactly...
Forum: Programming 05-05-2011
2,197
Posted By Perderabo
Every shell has a cd command. They all invoke...
Every shell has a cd command. They all invoke chdir() to accomplish it.
6,319
Posted By jim mcnamara
dead process == zombie? What is your definition...
dead process == zombie? What is your definition of a dead process?

The OS cycles the pid of new processes from 1 -> signed short max for most systems.

You should be checking the user/owner...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy