Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [unix]

Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

-1
votes
0answers
21 views

Parse json with python & shell script [closed]

I have a scenario where I am getting a JSON response from URL below ${CURL_CMDC} -X GET ${URI} | python -c 'import sys, json; print json.load(sys.stdin)[sys.argv[1]]' results[0].['version'] Here I ...
0
votes
1answer
16 views

Setting source ip address of exporter in rsyslog.conf

An appliance has 2 interfaces. Would like to export syslog information using a particular interface ip address. How to configure this in /etc/rsyslog.conf?
0
votes
0answers
34 views

Unknown RR type in bind zone file [CENTOS 7]

I am experimenting with Bind at the moment and setting up an pimary dns on Centos 7. The settings have been configured accordingly and adjusted to what i want. But i am recieving error upon start ...
0
votes
1answer
59 views

kickstart file /run/install/ks.cfg is missing centos

I am in a bit of trouble in regards to an kickstart installation and this is done via net install and is running on VMWARE sphere. All systems have as well been updated and upgraded to the latest ...
3
votes
2answers
44 views

Random empty files called “file*” are created on /tmp

I have two RHEL 6.10 servers where /tmp is constantly being filled up with thousands of files with the following names -rw-rw-r--. 1 root root 0 Feb 22 17:30 fileoQ1gE0 -rw-rw-r--. 1 root ...
1
vote
2answers
44 views

Prevent CRON jobs from running on Standby AIX server

We have an Active/Standby pair of AIX 5.3 Unix servers. Business requirement dictates keeping a list of components synchronized between them e.g. Oracle RDBMS using Data Guard and certain OS file &...
1
vote
0answers
2k views

Slower response to AIX Virtual IP

Server_A is an AIX 5.3 server assigned 192.168.1.8. TNS Ping to it's Oracle 9i DB instance was 120 msec. A month later, Server_B with identical specs was built assigned 192.168.1.9. Virtual IP 192....
0
votes
2answers
52 views

Elastic Search using a lot of memory despite low heap size

We have configured Elastic Search JVM options /etc/elasticsearch/jvm.options to use a fixed heap size of -Xms512m -Xmx512m This can be confirmed as working when checking the Elastic Search process: ...
0
votes
1answer
47 views

Why does switching to secure folder (httpsdocs) break the PHP file upload function

Server version: Apache/2.4.34 (Unix) I'm trying to utilize an existing SSL certificate for several sub-directories of a domain, but the architecture for the domain separates out two directories for ...
1
vote
1answer
58 views

How do I change permissions on a ssh forwarded unix domain socket

consider the ssh command: sudo ssh -L /my/local/sock:/var/remote_socket me@remote This runs as root, so the created local unix domain socket has ownership root and 0600 permissions. How do I tell ...
9
votes
4answers
1k views

Execute command when a file changes

I have a scenario where I am uploading .csv files to a specific folder, /tmp/data_upload, every day, and the old files are replaced by the new one. I need to run a Python script once the data is ...
0
votes
0answers
19 views

locate output: are directories always before files?

Assuming use of a single locate database, is the order of results in locate(1)'s output guaranteed to list a directory before all files contained in that directory? I'd like to write a program that ...
0
votes
0answers
23 views

Editing /boot/grub/grub.conf not recommended - yet how do you then change entries?

For example, our /boot/grub/grub.conf looks like this: ## ## End Default Options ## title Debian GNU/Linux, kernel 3.2.0-4-amd64 root (hd0,0) kernel /boot/vmlinuz-3.2.0-...
0
votes
1answer
29 views

Ensuring SSH Idle Connection TimeOut

In response to ClientAliveInterval and ClientAliveCountMax restrictions server side, a client can choose to send null packets by setting ServerAliveInterval and ServerAliveCountMax values ...
3
votes
1answer
110 views

Why is eval not working with command substitution?

I have this command $("${DIR}/test.py" "$1") the output of which is export SOME_VAR="hello world" export ANOTHER_VAR="hello" But eval $("${DIR}/test.py" "$1") seems to do nothing. What am I ...
0
votes
0answers
30 views

How does nginx track least_conn for load balancing?

When using least_conn and nginx load balancing, does the load balancer keep a running list of connections or does it poll the upstream servers every time it needs to load balance something and get the ...
0
votes
1answer
32 views

Copying files between servers

Here is the situation there are 2 servers: SRV1 (IP:1.2.3.4) & SRV2 (IP:9.8.7.6) you can connect to SRV1 from your local computerwith the private-key : test-user-private.pem with the username ...
1
vote
1answer
38 views

Audit file modifications over ssh in linux

I wanted to monitor all the modifications made to a file in a Linux server (Redhat). I made some research and found this auditing tool which I have already installed and configured using following ...
1
vote
0answers
48 views

What if AIX dynamic library imports one of symbols from wrong place

I have a legacy AIX ppc64 library mylib.so. Inspecting dump -Tv output, I noticed it expects that Foo symbol would be present in even older library oldfoo.so. However, it seems after new foo release, ...
0
votes
1answer
73 views

Adding a persistant static route to a hardened embedded QNX Unix device

I'll start by saying forgive my ignorance if this is a simple task. I have enough knowledge of *nix to set it up and get around but this embedded version is a little different (missing 90%+ of ...
-4
votes
3answers
62 views

I need to run SCP, SFTP and SSH in three different ports

I need to run SCP, SFTP, and SSH in the same host but via three different ports; is there a way where we can configure SSHD in that manner? Thanks in advance.
0
votes
0answers
150 views

Nginx as Reverse Proxy for multiple servers binded to proxy using UNIX sockets - how to reached in LAN

I am trying to configure nginx as a reverse proxy for multiple servers on my LAN. They should go out on my WAN with different subdomains. Unlike the approach described in Use Nginx as Reverse Proxy ...
0
votes
1answer
215 views

How do I add a persistent static ARP entry to an AIX server?

How do I add a persistent static ARP entry to an AIX server? /> uname -a AIX CBDIS 3 5 000B8886D700 /> uname -v 5 /> uname -r 3 />
-1
votes
1answer
36 views

How to remove some character from a string in Unix?

I have two string like this a=[2018:09:11-18:37:06:376476] b=[2018:09:11-18:37:06:376446] I want two string like a= 20180911183706376476 b= 20180911183706376446 Can Anyone please help me out?
0
votes
1answer
38 views

How to replace some character from a string in UNIX? [closed]

I have two string like this... a=[2018:08:22-15:26:18:26182619] b=[2018:08:22-15:26:18:26182619] And I want to convert a= 20180911183706376476 b= 2018082215261826182619 Can anyone please help me ...
0
votes
2answers
36 views

How to print true if condition in shell script

I'm writing a script to change few setting according to location and to do this i selected hostname as a benchmark. My aim is, if my hostname condition comes true then do this. For this i'm writing a ...
0
votes
1answer
802 views

nginx 12 FastCGI sent in stderr Primary script unknown

I am struggling for two days with my nginx configuration. I read a lot but could not find the right question. I got this from the error log: 2018/08/30 09:36:29 [error] 1525#1525: *12 FastCGI sent ...
0
votes
2answers
96 views

Any way to avoid using `grep -v`

When performing a grep filtering across pipes, as in the following example, $ ps -ef | grep 24604 username 18660 24604 0 16:38 pts/3 00:00:00 ps -ef username 18661 24604 0 16:38 pts/3 ...
0
votes
0answers
37 views

Cannot connect to EC2 instance in one line of command

I am trying one line setup command. ssh -i "$(cat kushal.pub)" kushal@ec2-18-216-221-164.us-east-2.compute.amazonaws.com "mkdir -p ~/.ssh && chmod 700 && touch ~/.ssh/authorized_keys &...
0
votes
0answers
117 views

Printing from Ubuntu to Windows print server for printer that has no Unix drivers

Is it possible to use a printer attached to Windows Print Server, to print documents from Ubuntu, if Ubuntu does not have drivers for that kind of printer (but the Windows Print Server has)? I have a ...
1
vote
1answer
37 views

systemd unit processes are ignoring sticky bits (sgid) on dirrectories

I have a user vopi under which a systemd service is started (user-mode). The service is a python script that should write a file to a shared directory under path /usr/local/myfolder The group set to ...
0
votes
1answer
59 views

NFS “-mapall” doesn't include anonymous clients?

I am accessing Unix-like NFS servers using Client for NFS in Windows Server 2008 R2. Since the server is not part of AD, and there is no "User Mapping server" active, the documentation states that ...
0
votes
0answers
35 views

Snoopy Logging unneccessary commands

I have been using snoopy in my testing environment , i am facing issues with snoopy logging unnecessary logs are also logged in snoopy.log i have tried multiple filtering patterns but nothing worked ...
0
votes
0answers
23 views

Want to see all the changes happned to aws environment during last one month

I Want to find a way to see all the changes happened to My AWS environment in past one month (changes to all resources), need it in report or dashboard kind, Ex:- AWS IAM(change in role, added ...
0
votes
1answer
560 views

Supervisord - Supervisor exit status 255 not expected on A [duplicate]

I have no clue why this always happened. I tried to reload the supervisord process but still doesnt the same error appears The error show this.. FATAL Exited too quickly (process log may have ...
1
vote
2answers
41 views

Suggested practice for adding/removing user accounts in Amazon EC2

I have an AWS ubuntu server. Let's call the Key File "root-key.pem". Let's suppose (for this example) that I have ten employees and we add a new employee every month and we let go of an existing ...
0
votes
2answers
103 views

Linux SSH audit for failed root login

Let's assume there are two servers ( Server A and Server B ). I am seeing root ssh failed login attempted from Server A to Server B. ssh for root login has been disabled for both of the severs. I ...
2
votes
1answer
74 views

Is load average affected by lack of memory?

I've read several articles about load average and all explained that the load average is the amount of processes in running/waiting to run state on CPU , so it's actually the CPU's run queue + the ...
1
vote
0answers
72 views

sshd subsystem specific configuration

Is there a way to specify below values specific to a ssh-subsystem in sshd_config? ClientAliveInterval and ClientAliveCountMax For example, I have a subsystem abc then I want to define client alive ...
1
vote
1answer
214 views

iostat showing wait queue when device is not 100% busy

I am on Solaris 11 and I am seeing the following %w=32 %b=62 extended device statistics r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device 47.5 2564.6 1460.1 33481....
0
votes
0answers
3k views

How to list active directory groups in linux for a given user, one per line, knowing that some group name contain a space character

When using "groups" or "id -Gn", I end up with the typical space-delimited list of all groups for the current user. These commands run on the assumption that group names cannot contain a space ...
1
vote
2answers
3k views

How SSH proxy works?

I'm trying to map local ports in order to redirect traffic to proxy server. I got instruction containing this command: ssh -A -t -l root 106.120.124.39 -L :8888:106.120.102.53:8888 From SSH manual: ...
-3
votes
1answer
303 views

tar -z is very slow [closed]

I know this question has been asked before and I saw the recommendations on using pigz. Good recommendations, but I wanted to see if I really have a "problem". I have an esxi host. It's the free ...
-3
votes
1answer
45 views

Solaris - How to tell whether machine is running SPARC or Intel Chip [closed]

What command can I run to tell whether SunOS 5.10 is running a SPARC or Intel chip?
0
votes
0answers
78 views

BIND9 reverse lookup failing for just one zone all other are working fine

BIND9 reverse lookup failing for just one zone all other are working fine. I am setting up an internal DNS server with below config. I have added reverse files for /8 networks. zone "test.com" { ...
0
votes
0answers
7 views

Connection refused when I try to route from one port to another in ip tables [duplicate]

I have an application running on port 8443. I want to route 443 to 8443 to use this application. So I added the following entries in the ip tables Chain INPUT (policy ACCEPT) target prot opt ...
2
votes
1answer
576 views

Error when SSH forwarding TCP to unix socket

I am trying to use ssh to forward a TCP connection on a local port to a Unix socket on a remote server, but I keep getting errors. I started by having nc listen on the remote server: remote$ nc -lU /...
3
votes
0answers
210 views

Postfix pipe always runs as nobody

The problem I would like postfix to pipe emails to a script that operates on files owned by the www-data group located under /var/www/. However, I receive error messages that indicate insufficient ...
0
votes
1answer
99 views

Specify rrd files for Docker install of Graphite

I originally asked this over in the default Stack Overflow and was suggested I ask the question here instead: This is my first foray in to both Docker & Graphite so I'm not entirely sure if this ...
0
votes
1answer
342 views

timestamp in shell code script

I'm new in shell coding and hopefully I'm in the right place to ask this question. I'm working with a shell script which collect daily file and send them via ftp. In the filename there are both date ...