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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
2answers
54 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 ...
-1
votes
0answers
26 views

Regarding Network Latency accessing Two Devices via IP Collision/DHCPD.sh/Netmgr

ie- NAS 1 (all NICs bonded to 1 via TLB) set bond0 -> 0.0.0.0 or flush bond 0 vlan 50 140.100.100.1 subnet 255.255.0.0 NAS 2 (all NICs bonded to 1 via TLB) set bond0 -> 0.0.0.0 or flush bond 0 vlan ...
0
votes
0answers
34 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
18 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
20 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
17 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
18 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
22 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
190 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
40 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
36 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
57 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
23 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
66 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
278 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
264 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
62 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
25 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
70 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 ...
0
votes
0answers
163 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
15 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
51 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
41 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
61 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
170 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
453 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
125 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
81 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
100 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
123 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
84 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
75 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
41 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
222 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 ...
1
vote
1answer
104 views

Testing Linux HTB fall short of expectation

I am trying to test Linux HTB, doing the simplest example just to see it actually works. I am creating a root and giving it 200kbps, then I create 3 classes which each one gets assigned a portion of ...
0
votes
1answer
84 views

Unsure why unreliable WiFi

So I'm a little at my wits' end here. I have a device with WiFi capabilities connected to my WiFi router. It is quite literally 5 meters away from the router, and it works fine and fast when it's ...
1
vote
0answers
47 views

ISC DHCP (Infoblox) takes 30+ seconds to respond to DISCOVERS

Client's DISCOVER packets reach the Infoblox DHCP server through DHCP relays, but Infoblox doesn't seem to be responding. I checked the pcap taken from the DHCP server, I can see there is 3 DISCOVERS ...
0
votes
0answers
18 views

`id -a` shows different groups if I run as `ssh “id -a”`

If I run id -a on my remote host it shows a different set of groups if I run ssh [remote_host] "id -a". I would expect both to return the same set of groups as I am the same user in both cases. I am ...
5
votes
2answers
131 views

Unable to list new files on a cifs share with ls *

I have an old HP-UX system running version 11.11, it has a cifs mount configured to a netapp filer. In the past several days we've been seeing some odd behaviour for the share where files can be ...
0
votes
0answers
291 views

Cannot mount an existing EBS with xfs file system on AWS

I try mounting an existing EBS Storage (which has data) to an instance, but it keeps throwing this error. mount: /dev/xvdf1 is write-protected, mounting read-only mount: unknown filesystem type '(...
0
votes
0answers
21 views

How to validate NFS Snapshot image

I am writing a small shell script which will validate the NFS backup by looking into the snapshot and checking the contents of one directory to make sure the correct contents are being backed up. ...
0
votes
0answers
42 views

Ping Lan through hostpot nated behind VPN

i'm facing a problem while trying to access to my lan (192.168.1.0/24) through my hotspot which provide a DHCP connexion nated behind a VPN. Currently my hotspot is working well, DHCP connexion is ...
0
votes
1answer
245 views

ssh command to add a public key to the local `authorized_keys`?

Is there a single line command to tell SSH to add a provided public key to the local machine's authorized_keys file? A local version of ssh-copy-id? I am writing a chef recipe and want to ensure a ...
0
votes
1answer
110 views

Ubuntu Mount Binding FTP user. Both directoy changes ownership to same owner

I am mount binding two directories so with ftp user I upload on ftp directory and the web directory gets updated. Web directory need to have ownership of webserver www-data and ftp directory should be ...