2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

Single SSH login for multilpe machines?

I have a number of physical (desktop) machines running at the office as part of a new network to handle processing & serving Open Source data; some of these machines also house VMs. At the moment, ...
user avatar
0 votes
1 answer
23 views

Geting UNIX Timestamp while logging history

I am running below bash script which is saving the history in a file, however it is logging the history with Unix epoch timestamp. I need the timestamp in human readable format. _who_am_i=$(who am i|...
user avatar
0 votes
1 answer
49 views

Why some companies like cisco follow different syslog messaging format rather than rfc 3164 (BSD syslog) and rfc 5424 (IETF syslog)?

According to my understanding the popular syslog formats are: RFC 3124 (BSD syslog): Format: < priority >timestamp hostname application: message Example: <133>Feb 25 14:09:07 webserver ...
user avatar
  • 5
0 votes
0 answers
15 views

Haproxy rate limit monitoring

I’m using rate limiting with my haproxy18 and I’d like to somehow squeeze out metrics from it based on ip addresses, who is close to the limit or how the users are hitting the limits. This is my ...
user avatar
  • 15
0 votes
0 answers
24 views

Setup of ProFTP on Solaris 11

I have a Solaris 11.3 ldom and I'm trying to setup anonymous ftp user on the server. I followed the Oracle documentation (https://docs.oracle.com/cd/E53394_01/html/E54791/wuftp-193.html) and this ...
user avatar
  • 31
-2 votes
1 answer
37 views

Why an operating system would like to be POSIX compliant? [closed]

What's the big deal around POSIX and how it interferes in the overall usage of an Operating System?
user avatar
0 votes
1 answer
67 views

Nginx reverse proxy when port is already in use?

i am trying to close port with basic authentication (for pushgateway of prometheus), so not a big specialist in nginx, so could someone please give me and advice where i am is wrong? I have 9091 port, ...
user avatar
0 votes
2 answers
50 views

Issue using dd to write 1GB file to zfs dataset on FreeBSD 13

Hey guys I am turning up a little FAMP stack on an Azure VM. 4 Xeon cores 16GB ram. Second SSD is using ZFS and the boot drive is UFS2 (Default). When I dd if=/dev/zero of=testfile bs=1024 count=...
user avatar
  • 1
0 votes
0 answers
56 views

Replace a string from the cat output

I need to replace a string with the string which is mentioned in a file abcd.txt in all files in a folder. For eg: I want to replace a string 'apple' with whatever the cat output of this file abcd.txt ...
user avatar
  • 67
0 votes
0 answers
87 views

Copying files from remote to local using lftp in unix

I'm trying to write a script to copy some files from a remote ftp server to a local directory. I have seen lots of examples using the mirror command of lftp but so far none of them seem to work. ...
user avatar
0 votes
0 answers
59 views

Where to install SSL Certificate for CURL request to external API

This is a bit of a strange situation, but I'm hoping someone here can provide some assistance. I have a legacy Java application that communicates with an external 3rd party API (UPS online tools). We ...
user avatar
0 votes
0 answers
35 views

NextCloud : Can you use encrypted drives / file level encryption?

I am evaluating NextCloud for a solution for which I have a requirement that files cannot exist on non encrypted disks or the files themselves cannot be individually read or cached. I have read a lot ...
user avatar
  • 345
0 votes
1 answer
30 views

What is the maximum value acceptable for xargs -P argument? [duplicate]

In this answer they mention 10 I did man xargs and couldn't find what's the maximum limit. Is it possible to send 10000 cURL requests per second? How about 50000 cURL requests per second? I mean all ...
user avatar
  • 103
0 votes
1 answer
44 views

What was linux/unix time standard before inventing epoch? [closed]

As in the title, I was looking for, but hadn't found. How were time stored and processed before epoch standardizing in 2000?
user avatar
  • 11
0 votes
0 answers
33 views

Logging user creation and deletion with auditd

What is the best way to log/detect user creation on linux machines by using auditd? I was thinking about logging calls to /usr/bin/ and /usr/sbin/ and filtering out useradd, adduser, deluser and ...
user avatar
  • 103
0 votes
2 answers
191 views

How to edit the middle of host name (%h) in ssh config?

In ssh config you can easily edit a hostname by appending or prepending it with something. For example, when you want to connect to server with ssh test5, but actually the server name is test5.mail, ...
user avatar
  • 266
0 votes
0 answers
71 views

change fastcgi directory in nginx configuration

i am not sure how to write the proper title i have 5 ajax requests that gonna execute postgresql query in php here is the directory /var/www/webgis.com: 1. webgis.html 2. php(directory) -query1....
user avatar
  • 1
0 votes
1 answer
40 views

finding docker images with tag and name

when I do docker images I have below docker images as list where there are images with multiple tag and also image with latest tag value. REPOSITORY TAG ...
user avatar
  • 172
0 votes
1 answer
167 views

What is igrid server - port 19000?

Recently our monitoring tools is reporting a port as down, the port number is 19000. I have never seen this port before and I don't find out good information. Doing some tests, I've seen I can telnet ...
user avatar
  • 143
0 votes
1 answer
115 views

Samba username mapping not working as desired

I have the following username mapping in Samba: master = johndoe user2 user3 regular = user5 user6 restricted = johndoe user8 user9 By default, Samba will always map johndoe to the last entry in ...
user avatar
0 votes
0 answers
143 views

lsyncd include specific files exclude rest

I am using lsyncd version 2.2.2. here is my current code. settings { logfile = "/etc/lsyncd.log", statusFile = "/etc/lsyncd.status", insist = true, } sync { default.rsyncssh, ...
user avatar
0 votes
2 answers
93 views

Is SSH remote execution more secure as local non-root?

Is there a security benefit running a command remotely via ssh as a local non-root user? In other words, is this actually more dangerous compared to executing the ssh command as non-root: root@local:~#...
user avatar
  • 11
1 vote
0 answers
26 views

How to ensure execution of time consuming task on reboot/shutdown?

I have a bash script that is supposed to execute on reboot/shutdown of a remote Ubuntu server, connected over SSH: ls /etc/rc{0,6}.d/k99* /etc/rc0.d/k99_stop_all /etc/rc6.d/k99_stop_all The script ...
user avatar
3 votes
0 answers
97 views

Configuring Solaris audit to include username into his events

Need to configure audit logging in Solaris but I have a problem. There are two SunOS servers which were configured before. When I started analysing logs I found out that in Solaris 10 I can see the ...
user avatar
  • 31
0 votes
1 answer
86 views

TC Corruption of Packets Ingress

I’m new to tc & this may be naive question but correct me if I’m wrong tc qdisc change dev eth0 root netem corrupt 5% Does above command corrupt ingress packets only ? If Yes, does outgress ...
user avatar
  • 13
0 votes
1 answer
17 views

Group of new file created by the webserver is always set to sudo

I am running a magento 2 project on Apache 2 Webserver. There is a logfile folder at var/log I have set the permission, user and group of the folder to drwsrwxr-x 2 company www-data by using chmod ...
user avatar
  • 391
2 votes
1 answer
316 views

Extract a ids from text file

I have a text file live below { "data": { "assigned-entity-id": null, "assigned-entity-type": null, "availability-domain": null, "...
user avatar
  • 67
1 vote
2 answers
415 views

Security: Linux - Postfix/dovecot - Roundcube - unix permissions for the mail user

Background: I am running a working mail server with a postfix/dovecot on debian buster as in this guide. Like in the guide, I installed roundcube on the frontend. The last chapter of the guide ...
user avatar
  • 49
0 votes
0 answers
115 views

Add IPV6 range / block on network debian configuration

I am configuring a network interface on my server, editing this file /etc/network/interfaces.d/50-cloud-init.cfg I need to have a list of IP address configured which all are in the same ip-block. For ...
user avatar
  • 141
0 votes
0 answers
90 views

When a solaris server has 2 SSHs installed, how to choose which one client is connected to

Currently my solaris server has 2 SSH installed: /usr/bin/ssh (Sun_SSH_1.1.6) /usr/local/bin/ssh (OpenSSH_5.1p) When I SSH this solaris server from another, /usr/bin/ssh is responding. I would like /...
user avatar
  • 101
0 votes
0 answers
201 views

IPtables rules in python using bash script

Here is my python script in bash, I am using subprocess.run to call iptables command , but I am getting an error subprocess.run(["/usr/sbin/iptables", "-A", "INPUT", &...
user avatar
  • 1
0 votes
1 answer
135 views

Renaming a tar file in unix script

cd /var/opt/sw/e4/data/dev/e4_dev/DEVL3/EW/EWD1/DATA/AED/INPUT for file in *;do tar -czf ../OUTPUT/"${file}".tar; done According to the above code the files in input path eg. aedlog, aaalog....
user avatar
0 votes
1 answer
66 views

Security implications of having less permission restrictions on a group than owner in Unix?

I have an Ubuntu server that's currently hosting a WordPress site using an Apache web server, MySQL and PHP etc. Additionally I have configured VSFTPD and SSH to handle FTPS (implicit FTPS) and SFTP ...
user avatar
0 votes
1 answer
211 views

Exclude subdirectory from host resolution set in /etc/hosts (with dnsmasq, or anything else)

I have a local development tool (LocalWP) that sets the path to my local environment by modifying /etc/hosts. For example, if I set my site in Local to www.foo.com, it'll append the following to the ...
user avatar
  • 127
0 votes
1 answer
111 views

Rsyslog using more memory on CentOS 7

I see rsyslog is using more memory on my EC2 instance. Is there a way we can fix it? I tried cat /proc/<pid_of_rsyslogd>/limits and tried changing the limit value but no luck. Max stack size ...
user avatar
0 votes
0 answers
79 views

AWK to read multiple files in linux without duplicates

I have a task to merge three files in linux, so i used awk to achieve this task. hostsfiles is a variable which has test.txt test1.txt and test3.txt awk 1 {{ hostsfiles | join(' ') }} I get below ...
user avatar
2 votes
1 answer
99 views

Remote command has different umask

ssh user@host "umask" gives 0174 ssh user@host and the umask from server shell gives 0002 Could you please explain how can it happen? UPD: Actually, it was /etc/passwd overriding umask.
user avatar
1 vote
1 answer
230 views

How to reliably & portably serialize binary information into POSIX shell

Problem context I am trying to implement a job orchestrator whose agent/worker programs, connect to machines via an SSH session/shell. I would like to transfer (potentially binary) files to these ...
user avatar
1 vote
2 answers
1k views

What does SetHandler "proxy:unix:..." do?

What does the Apache "proxy:unix:..." handler do, and where is it documented? I see it used here and there, like: SetHandler "proxy:unix:..." For example in this recent question, ...
user avatar
-1 votes
1 answer
123 views

Can somebody help me on how to zip these individual log files within while loop

I am able to break o/p of a big logfile (filename.log) into individual log files of 1 min each (filename.log.140108) using while loop, but I want these files to be saved as zip files due to capacity ...
user avatar
  • 1
0 votes
0 answers
61 views

apache + fastcgi - how to run processes for another user

I move legacy python website that works with Apache + FastCGI to VPS from shared hosting - so need to configure everything myself. All website scripts/static/etc are stored for user 'user1' and I've ...
user avatar
  • 73
0 votes
1 answer
99 views

Issues with "force user" on Samba 4.7 + Active Directory authentication

We have a environment with a Samba 4.7 with couple shares that uses Active Directory as authentication mode and a Oracle application drop some files so users get it through those shares. We have a ...
user avatar
0 votes
0 answers
30 views

How To Change /Lib Directory

Production server / is only 50GB and it's full. 23GB is in /lib | /snapd 11GB /flatpak 7GB I see the snap store is installing snaps to /var/lib/snapd | I have a second drive /dev/sdb that has 500GB of ...
user avatar
2 votes
2 answers
2k views

Memory Ballooning in Linux/Unix on VMware ESXi

I need help to reclaim the ballooned memory in a Linux/Unix machine. Please help me out. I found some solutions but they are not feasible for me on the production server. I just need to know how can I ...
user avatar
0 votes
1 answer
360 views

The maximum number of file handles (ulimit -n) allowed for Domino is 4096

I have a setup with many Domino servers (installed mostly on UNIX). From time to time on some servers we see such warnings [001555:000047-0000123123123123] 09/13/2020 12:18:35 PM WARNING: The ...
user avatar
1 vote
0 answers
65 views

Difference between 'sudo gem install something' and 'gem install something'

In this case I'm using gem as an example, but I think it can be extended to any other program. I use a Mac and I installed rails using command gem install rails from directory /Users/myusername/...
user avatar
  • 111
1 vote
1 answer
72 views

How do permissions work?

I stumbled upon something odd (for me at least) when using CloudLinux for the first time. I'm a long time Ubuntu user, I would still consider myself novice, though. I've installed Nginx with PHP-FPM ...
user avatar
  • 235
0 votes
1 answer
150 views

wtmp contains IP and not hostnames UNIX

while viewing list of last logins in Unix remote server able to see only IP adresses and not hostnames. how to define wtmp to show host names and not IP adresses?
user avatar
  • 1
2 votes
1 answer
90 views

specifying complex permissions on files and folder in unix

At work I manage a group responsible for data management and security. We have a need to specify complex permissions on files and folders beyond just the standard user/group/world rwx. Research shows ...
user avatar
1 vote
0 answers
63 views

Difference between machine/processor/hardware-platform

In using the uname command the following three options gives me the same output: ubuntu@ip-172:~/asm/asm$ uname -p # x86_64 ubuntu@ip-172:~/asm/asm$ uname -i # x86_64 ubuntu@ip-172:~/asm/asm$ uname -m ...
user avatar
  • 899

1
2 3 4 5
39