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.

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
256 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
897 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
4k 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
331 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
169 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 ...
4
votes
0answers
130 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
21 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
146 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
82 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
3answers
156 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
331 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
122 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
93 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 ...
2
votes
0answers
57 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
19 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
158 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
721 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
23 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
1answer
451 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
156 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 ...
0
votes
1answer
151 views

Centos 6 Server Hacked - File being generated [duplicate]

I have 3 servers working as a proxy load balance. Someone has gained access to them and is somehow creating an index.html in my webroot containing advertisement and an iframe on my main index.php file....
-1
votes
1answer
69 views

Automatically turn off VPN for select website/IP [closed]

Using a VPN for privacy and security on a Unix machine. There are a few sites that I can only access through my whitelisted IP for work. Is there a way to automatically turn off my VPN (or route ...
3
votes
1answer
8k views

Generate a json with variable value from a file using bash

I have a fleet of raspberry pi's running as access points. I set the default SSID and PASSWORD using a simple bash script that runs at boot. I get unique values for this: SSID = cat /sys/class/net/...
0
votes
1answer
200 views

not getting last Password change time on AIX by default lsuser command

I need all attributes for all users from AIX system for this I am using "lsuser -f ALL command" this gives me all attributes but not giving lastupdate attribute which used to indicate last password ...
-1
votes
0answers
161 views

SSH fails after offering 2 public keys without prompting for password

Here is my issue, a bit long but will try to limit it. I have ssh server and multiple ssh clients (say 3 for ex). oracle user on all the clients logs into the server using "sshuser" which is setup ...
1
vote
1answer
54 views

Email server configuration still complaining the connection isn't secure

This is a follow up to another question I had, but its quite different so I thought I'd start a new post. Emails bouncing - 454 TLS not available due to temporary reason I'm trying to work out why I ...
1
vote
1answer
641 views

Pass parameter from Local to Sudo user [closed]

Ok if subject is not clear i will explain my doubt.I have a shell script kept at my local user called (executeAdM.sh), and when i execute this script i am connecting to SUDO user by taking commands ...
1
vote
1answer
843 views

During OpenBSD installation, what is “DNS domain name” for?

During the installation of OpenBSD 6.1, right after setting up network interfaces, the installer prompts me: DNS domain name? (e.g. 'bar.com') [my.domain] I am not sure what this setting is for, I ...
3
votes
5answers
237 views

Zipping a folder to create tgz file

I have a folder which i want to create tgz file and compute its sha256: The folder is converted to tgz using following command "tar -c -C #{Shellwords.escape dir} #{Shellwords.escape basename} " \ ...
0
votes
1answer
166 views

Is it possible to pass environment variables to a newly created user?

In my GitLab CI script, I am creating a new user which then executes a command. I'm noticing that when the command is executed as this user, the CI environment variables aren't available. Below is ...
0
votes
0answers
49 views

Expect is prompting password twice while spawn

spawn ssh -q user@xx.xx.xx.xx Password: Password: Expect is expecting null before I sent the password. Debug info expect: does "" (spawn_id exp6) match glob pattern "yes/no"? no "Password: "? no ...
-1
votes
1answer
71 views

Is it safe to give ownership of files to “daemon”?

I was having trouble uploading files using my CMS (Drupal). When I put more restrictive file permissions on, I could not upload anything. Then I changed the owner of the upload directory and all sub-...
0
votes
2answers
193 views

how to use awk or sed command (OS level commands) in Sybase level

I have one text file in host level Ex: /tmp/file.txt. So I have one script and I need to read the line by line from file.txt, so I used sed command. So I am using while loop in the script and I have ...
0
votes
1answer
369 views

SED not working with complicated string

I have a file that starts like this: [global] pid = /var/run/php-fpm/php-fpm.pid error_log = /var/log/php5-fpm.log and want to replace error_log = /var/log/php5-fpm.log with error_log = /var/...
0
votes
3answers
2k views

Remake catalina.out without restart of server

Is it possible to remake a deleted catalina.out on a tomcat server without restarting the server? The catalina.out got accidentally deleted but it's needed due to a funky cluster configuration (4 ...
1
vote
2answers
679 views

New user added but having error in AIX 7.1

I newly add a user name perfmgr in AIX 7.1 using smitty, however when I try to change the password it output and error as below: # passwd perfmgr Changing password for "perfmgr" 3004-616 User "...
0
votes
1answer
508 views

supervisord - automatically kills its spwaned processes

I am a new bee with Supervisord. And I am on Ubuntu. My problem is, I have a script to spawn java process using "exec java -cp ....." as the only line in the script. This particular java process is ...
0
votes
1answer
96 views

How to do REORG command on DB2

I want to reorganize(offline) some db2 tables. Also I want to executing runstats command after reorg command. I have a question. Do I need to stop db2 database or deactivate or both of them before ...
-2
votes
2answers
72 views

Which protocol to use for a barebones LAN file upload with mixed Unix and Windows clients

I have a set of about 20 embedded Unix clients who physically move from time to time. When they move into the range of a specific wireless AP, they will push a certain set of files to a Windows file ...
7
votes
0answers
110 views

Sunsetting Microsoft Identity Management for Unix the right way

I'd like to make sure that we don't have any connections to our AD controllers before sunsetting, but some run Microsoft Identity Management for Unix / Server for NIS. I'm having a dog of a time ...
0
votes
0answers
906 views

Postfix+saslauthd: pam_unix(smtp:auth): authentication failure

I'm run postfix 2.10 + Cyrus sasl 2.1 + Dovecot 2.2 on Oracle Linux 7. Dovecot works with saslauthd normally, but Postfix always failed on authentication, wish someone can help to check what problem ...
0
votes
1answer
87 views

How to add dynamic code/ruby code inside .conf file

I'm using Sphinx search engine for my application, and I would like to add ruby code inside the sphinx.conf file to update some values dynamically based on my application server hostname? Is it ...
0
votes
3answers
920 views

Pointing 2 urls to the same site on nginx server

We have this website that works well already, but I was put to the task of pointing another url to that very same site. The idea is that two urls will show in the address bar, but just one site will ...
-1
votes
2answers
90 views

Not able to reach azure url

I am trying to reach azure url through my Unix server but not able to reach it. It is sending connection time out and not able to find server from server list every time. Plus I have tried to ping ...
0
votes
3answers
510 views

Filesystem full with 'df' but seems actually not

On my AIX 6.1 server, i have a problem on a VIO LPAR. A filesystem seams to be full with the 'df' command, but not with 'du' or 'ls' for example. I searched but I don't understand where the problem ...
-1
votes
2answers
132 views

How to monitor user reports through shell scripting

I want to monitor I have 3 user in my linux machine let's say a,b,c .By Using last command I am able to identify list of last logged in user and by w command who is logged in and what they are doing ...
3
votes
0answers
37 views

Any equivalent of Entitled Capacity in x86 systems

I've been reading a lot about IBM POWER systems lately and I've been wondering if there is any equivalent to their Entitled capacity concept in x86 architecture. Basically allowing virtual partitions ...
14
votes
1answer
3k views

Potential hijacked SSH session & SSH best practices

I'm freaking out a little bit at the moment. I am SSHing into a remote server that I have recently commissioned. I'm doing this as root. I have installed fail2ban and had a massive amount of banned ...
1
vote
1answer
863 views

Block Postgres port 5432 running on Docker container with iptables

I am using Ubuntu 14.04 desktop (Xubuntu to be exact), and trying to block outside access to a locally running Postgres port 5432 with iptables. This is my iptables -S -A INPUT -i lo -p tcp -m tcp --...