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.

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
30 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
32 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
14 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
46 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
25 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
45 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
27 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
34 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
33 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
19 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
67 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
47 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
23 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
26 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
23 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
281 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
45 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
59 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
39 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
117 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
994 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
443 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
116 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
30 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
72 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
221 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
16 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
77 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
54 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
117 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
202 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
615 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
160 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
102 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 ...
4
votes
0answers
106 views

Not sure I really get 10 Gbit between our servers on the 10 Gbit network

We have a 3 Unix (1 Ubuntu 2 Redhat) servers connected via their 10 Gbit network cards to a 10 Gbit switch (our IT person made sure we got the correct cables). We experience some odd behaviour when ...
0
votes
0answers
134 views

rsync hangs from freebsd zfs to freebsd mounted windows share over ssh

I can't get rsync to work between 2 FreeBSD server. It always hangs during transfer or dry-run. Setup: rsync version 3.1.2 protocol version 31 1 FreeBSD 10.3-RELEASE-p24 server which mounts a ...
0
votes
0answers
20 views

How to enable users to manage certain groups on file server

Let's assume we are in a business environment and we want to configure a *nix/*BSD file server. The business does work for several customers, thus the folder structure has the clients' names on the ...
1
vote
1answer
98 views

Is it possible to restrict download by MIME type/content type in nginx?

I have the following stanza in my nginx virtual host config. The goal is to only allow direct (deep link) downloads of only video content types, and return a 404 or some other error for anything else: ...
1
vote
1answer
76 views

how to stop for loop on another tty

We are connecting to the same host via the same user. So, only our sessions/tty are different. If one of us starts a for loop such as:for i in *; do command $i; done, I don't know how to stop it. All ...
0
votes
0answers
43 views

SCO Unix keeps rebooting on startup

A sco unix server box in my company kept rebooting on startup. The syslog is as following: it seems like there is some problem with the cd-rom drive,but no actual fatal error messages. Any advices ...
0
votes
3answers
148 views

What is the best way to give root access to an account without using sudo? [closed]

I have an HP-UX server where I need to create a special user account for an application to interact with, and this account must have full root privileges. Sudo is not an option in this. The only thing ...
0
votes
1answer
253 views

HTB Traffic shaping in Linux - change quantum of a class

I am using Linux HTB to shape traffic, I am able to achieve the bellow diagram. The problem arise when I want to change the allocation for the excess bandwidth, instead of giving each class its ...