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
1answer
21 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 ...
-1
votes
0answers
17 views

Delete specific pattern Unix [migrated]

I have a string that look like this: Root;rootrank;Bacteria;domain;"Actinobacteria";phylum;Actinobacteria;class;Acidimicrobidae;subclass;Acidimicrobiales;order;"Acidimicrobineae";...
0
votes
0answers
12 views

NFS super simple user mapping between Windows (NFS “share”) and Unix (mount_nfs)

I have a Windows 2012 server system all firewalled off to do one particular task only converting files using a program that only runs on Windows. That Windows server exports a directory (a so called &...
0
votes
1answer
9 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 ...
2
votes
1answer
189 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, "...
1
vote
2answers
115 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
82 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 /...
0
votes
0answers
66 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", &...
0
votes
0answers
17 views

copying latest version of a file to another location

a directory /tar/opts/sw/log contains several versions of the same file..eg.log_aaa_0001,log_aaa_0002 ,log_bbb_0001,log_bbb_0002,log_bbb_0003 etc where log_aaa_0002 and log_bbb_0003 are the latest ...
0
votes
1answer
50 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....
0
votes
1answer
29 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 ...
0
votes
1answer
71 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 ...
0
votes
1answer
45 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 ...
1
vote
0answers
25 views

How to check HP UX rx2660 shutdown log

I have beginner experience in Unix servers and I want to know how to check HP UX rx2660 shutdown log in case of abnormal shutdown. Another question: Is there the shutdown command send anyway when UPS ...
0
votes
0answers
40 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 ...
0
votes
0answers
19 views

Connecting to Windows server 2012 R2 NFS share

We currently have an HP-UX V. 11.11 that was connected to a windows server 2008 R2 NFS share utlizing Services for Unix on a Windows server 2003 to map the unix users to our Windows domain users. We ...
2
votes
1answer
43 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.
1
vote
1answer
151 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 ...
1
vote
2answers
265 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, ...
-1
votes
1answer
56 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 ...
0
votes
0answers
30 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 ...
0
votes
1answer
27 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 ...
0
votes
0answers
8 views

Removing empty directories from tree with mutli threaded?

I've been looking around, and have found this command: find . -depth -type d -empty -delete This will go through a folder and find the empty folders, and delete. Thats all good. The issue I have, is ...
0
votes
0answers
24 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 ...
2
votes
2answers
455 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 ...
0
votes
1answer
148 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 ...
1
vote
0answers
33 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/...
1
vote
0answers
59 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 ...
0
votes
0answers
16 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?
2
votes
1answer
57 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 ...
0
votes
0answers
54 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 ...
0
votes
1answer
21 views

How can I find all files with access rights only for current user and no access for anyone else

How can I find all files with access rights only for me on my home directory and no access for anyone else?
0
votes
1answer
46 views

passwordless change user with `sudo su -`

I want that on my server fox user can be/change user and be user42 in a passwordless way (fox user have no password they loging with SSH keys):: srv6:/etc# grep user42 /etc/sudoers fox ALL=(ALL:...
0
votes
1answer
105 views

How to set seprate current directory for sftp in macos?

On my macos i am able to login to sftp as sftp localhost. When i run !pwd it shows me default directory is /Users/username but i want to change it /Users/username/Sites/wordpress. I edited /etc/ssh/...
0
votes
1answer
196 views

how to run multiple instances of asterisk on one server

hope everybody is safe during challenging time i have a task to automate our demo installation process. Our software is mainly a GUI that operates with asterisk via AGI and stores all data to MySQL / ...
0
votes
1answer
108 views

My Server is sending malicious SSH requests [duplicate]

I am facing weird issue on my server (Unix). There are couple vendors reported me that my server is sending malicious requests to their server by using SSH Protocol. I have already checked the system ...
1
vote
1answer
491 views

MYSQL Start unit not found

Im using AWS Linux 2 AMI Currently I have AWS EC2 Recently the mysql doesn't work anymore but it worked before. when I tried to do this sudo service mysql start or sudo service mysqld start It ...
0
votes
0answers
206 views

Trying to get SSH output from within a for loop in a script

I'm trying to SSH into a bunch of hosts in order, and run a command to get a list of users on each one. Outside of a for loop, the output shows up just fine one-by-one. Inside a for loop, it ...
0
votes
1answer
25 views

Does tar create point-in-time snapshots?

I know that tar can be used to create a backup. However I wonder if the operation creates point-in-time backups or not. Basically I wonder if it grants consistency if the directory and files are ...
-3
votes
1answer
1k views

Bad Mask /29 for address 172.24.59.0 255.255.255.248 cisco packet tracer [closed]

I received this error Bad Mask /29 for address 172.24.59.0 255.255.255.248 Why was this error produced? and what is the valid host range for the 255.255.255.248 subnet? would the correct answer ...
0
votes
1answer
48 views

How do I list long running shell script?

Currently we are running lot of UNIX shell scripts in HP-UX. We want to track which scripts are running long time (more than 1 day), how can we track that? Furthermore I want to list long running UNIX ...
0
votes
1answer
407 views

Which the Lowest Possible Solaris Version which supports TLS 1.2?

I am currently using Solaris 5.8,with TLS 1.0, but now i would like to upgrade to TLS 1.2. Since Solaris 5.8 doesnt support TLS 1.2. What is the minimal upgrade i need to do( solaris Version) to use ...
0
votes
1answer
25 views

Guaranteed rename logfile AFTER logfile is no longer being written to

I have the following set up. In a remote machine I have a process continuously running which subscribes to some data and writes it to stdout (lets call the process the subscriber). I call the ...
0
votes
1answer
456 views

Using su with service account for management

We're going through the arduous process of configuring sudoers for least privilege. We were going over what was needed in a meeting and our manager recommended that rather than use our own account ...
0
votes
2answers
289 views

how do i extend pv when extending vmware disk?

I extend the disk in vmware after doing so I get the configuration but how to extend the pv /dev/sda1 at 30G to later extend the vg? I don't want to extend the partition with fdisk I just want to ...
1
vote
1answer
4k views

NTP time sync failures on Debian

This is on HypriotOS (Debian GNU/Linux 10) running on RaPi. $ timedatectl show-timesync Failed to parse bus message: Connection timed out Then do this with sudo: $ sudo timedatectl timesync-status ...
0
votes
1answer
24 views

can logstash package individual log types into packages an scp them over to a central node?

I am curious whether logstash only processes logs and streams them at the event/line level or can it package all apache access logs for example and send them over zipped up to a central node?
0
votes
1answer
72 views

FEDORA IPTABLES Block specific IP Address

The below is the rule that i had added to my iptables.. Still the result of the below rules for me is ssh is blocked from everywhere.. Chain INPUT (policy ACCEPT) target prot opt source ...
0
votes
2answers
87 views

Copy binary file from other system with builtin shell commands only

I accidentally just have removed critical shared library and no one dynamically linked executable can't be run now. For example, even /bin/ls shows error while loading shared libraries: libunwind.so....

1
2 3 4 5
39