Stack Exchange Network

Stack Exchange network consists of 174 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.

-2
votes
0answers
20 views

ulimit not working with -f

I am trying to use ulimit to prevent my shell from writing to any files. The result is that I am still able to write the file. What I am doing wrong? $ ulimit -f unlimited $ ulimit -f 0 $ ulimit -f ...
0
votes
0answers
17 views

Exim & Postgrey with UNIX socket on FreeBSD

I'm configuring Exim to cooperate with Postgrey on FreeBSD 12.0-RC1 and everything work's very well when MTA connecting via inet, but when I change to UNIX socket there is no reaction even if I run ...
0
votes
1answer
22 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
37 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
13 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
0answers
25 views

create a samba share for AD group access

we have a samba share environment from rhel7 -> windows AD domain configured and creating users on the Linux box that match domain accounts works great but we want to move away from creating the Unix ...
0
votes
1answer
29 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
35 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 ...
0
votes
0answers
11 views

Sudo No Password Not Working Correctly - Still Prompts for Password [duplicate]

I'm having some trouble with sudo, getting a user the ability to switch to root without typing a password. I have this entry in sudoers: companyadmin ALL=(ALL) NOPASSWD: ALL But for some ...
0
votes
0answers
99 views

Apache unable to create worker thread

I have Apache running on a Synology DiskStation NAS. Since the DSM update to version 6.2.1-23824, Apache won't start anymore, giving the following error: [Mon Oct 15 10:29:22 2018] [info] mod_ssl/2.2....
1
vote
0answers
43 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
35 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
49 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
70 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
136 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
29 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
36 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
34 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
70 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
78 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
35 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
84 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
27 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
42 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
29 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
392 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
56 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 ...
1
vote
0answers
60 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
50 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
153 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
2k 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
1k 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
159 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
35 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
75 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 ...
1
vote
0answers
254 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 /...
0
votes
0answers
18 views

VFX Mixed Environment Permissions Oddity, NFS Share.

We have an NFS share hosted on a freebsd machine that servers files to mac and windows machines. Macs saves files to it with 777 permissions(umask 0000). Windows saves files with 755 permissions. Both ...
3
votes
0answers
116 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
67 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
197 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 ...
0
votes
0answers
22 views

Command history but only for one directory

Is it possible to get the history of all commands that were entered but just from one folder? like the history command, but only output should only show commands that the user entered while in a ...
0
votes
1answer
219 views

Issues using PHP Trader Functions: Call to undefined function trader_ma()

I'm attempting to install the Trader extension on my mac, currently using MAMP. I believe the install was done correctly but can't seem to use them. Here is my feedback from terminal sudo pecl ...
-2
votes
1answer
736 views

How to SFTP files from Linuxto a Windows attached network drive

I need to send files from my Linux to a network drive that is attached to a Windows system via SFTP. I want to know if I get the SFTP server running on Windows, how do I transfer a file from my linux ...
15
votes
3answers
3k views

Program file exists in /usr/bin, but cannot be used

Clearly my file exists in /usr/bin $ ls /usr/bin/ngrok /usr/bin/ngrok However, when I attempt to chown it I receive an error $ sudo chown my_user:users /usr/bin/ngrok chown: cannot dereference '/...
1
vote
2answers
227 views

Is there a way to find what processes are in nice CPU top list? [closed]

I have a top output that shows a high amount in nic CPU percentage. Is there a way to see what those processes are? And is it possible to do it from top?
1
vote
1answer
127 views

How to process core-dumps with Splunk?

We are managing an application, which some times crashes and dumps core. We have a script, which outputs the application's stack from the core -- and some other details useful for debugging. Can ...
0
votes
0answers
25 views

issue with binding ip address to user

I just tried setting up my own proxy server using 3 proxies and I am not able to get it running since I am seeing the following error logs. What is wrong ? bind():_Cannot_assign_requested_address ...