2,511 reputation
719
bio website saic.com
location Charleston, SC
age 44
visits member for 1 year, 11 months
seen Oct 15 at 18:14

Unix and Linux systems engineering and administration, virtualization and cloud engineering and support, scripting and programming for systems and websites.


Oct
14
reviewed Approve suggested edit on “which” with a little “grep”-like solution?
Oct
13
comment Disable postfix HELO checks completely
Are you sure you cannot give the voice mail system a host name to send to complete the EHLO command? Too, too bad if not. I would try for that first. Disabling EHLO will remove starttls, auth, pipelining, chunking, 8-bit transfers, etc. But you can disable some EHLO commands while still supporting EHLO in general. smtpd_discard_ehlo_keywords = silent-discard VRFY ETRN DSN (See man 8 postfix.)
Oct
13
comment How to install a specific debian package
Probably due to lack of research. backports.debian.org/Instructions
Oct
13
comment What is (and how to perform) action listing?
Accept Gilles answer?
Oct
13
comment Setting up 3rd party sftp server to run on port 22
You might have some work to do with SELinux as well, if it is being used (sestatus).
Oct
10
answered Why can't I install the midnight commander on Debian?
Oct
10
reviewed Approve suggested edit on How to know if I'm booting using UEFI
Oct
6
comment php - running shell command using shell_exec
CentOS 6.x user should be apache not nobody.
Oct
6
comment php - running shell command using shell_exec
So... what process is "supposed to activate"? Perhaps the problem is within the script, as in no permission for the user, nobody, to do what root can do.
Oct
6
comment php - running shell command using shell_exec
Well, it's not safe_mode, because it's deprecated in your PHP version. How about using just echo shell_exec("/websockets/timedactions.php");?
Oct
6
comment php - running shell command using shell_exec
Which user runs the Apache Web server on CentOS? ps aux | grep httpd | awk '{print $1}' (ignore "root"). Is SELinux on? sestatus|grep enforcing. What are the file system permissions? ls -l /websockets/timedactions.php What is the SELinux context? ls -lZ /websockets/timedactions.php Knowing those things helps to sort it out.
Oct
6
comment php - running shell command using shell_exec
Are you using SELinux (sestatus | grep enforcing)? If so, does ls -lZR /websockets/ show the right SELinux contexts (system_u:object_r:httpd_sys_script_exec_t:s0, most likely)?
Oct
4
comment linux + g++: command not found
Then run yum update
Oct
3
comment Ran php file contents in bash, could some commands be executed?
Yes, I know. BASH sees syntax errors.
Oct
3
comment Ran php file contents in bash, could some commands be executed?
It does nothing. It only defines some variables and loads another file which also contains variables. Plus it would have had to have been run with PHP to do even that.
Oct
3
comment I get an error whenever I try to add myself to sudoers
Expounding on the answer from @Cypher, what is the output of id gabe? Does the output show gabe in the sudo group? And, is this line in your sudoers file? "%sudo ALL=(ALL:ALL) ALL" Also, to add an existing user to a group: usermod -a -G $GROUP $USER
Oct
3
comment A tiny and simple script fail and this is the output “No such file or directory”
wiki.bash-hackers.org/scripting/obsolete
Oct
3
comment A tiny and simple script fail and this is the output “No such file or directory”
command=$(ls /tmp)... for file in $command
Oct
2
answered Test connectivity of a Interface
Oct
1
comment Does the NICs have any kind of log?
Martian/spoofed/suspicious packets can be logged: add to /etc/sysctl.conf: "net.ipv4.conf.all.log_martians=1" and "net.ipv4.conf.default.log_martians=1". Then load with 'sysctl -p'.