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
3 votes
0 answers
371 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 ...
agatt's user avatar
  • 31
0 votes
1 answer
286 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 ...
Genie's user avatar
  • 13
0 votes
1 answer
34 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 ...
Black's user avatar
  • 491
2 votes
1 answer
567 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, "...
Am3Y's user avatar
  • 77
1 vote
2 answers
701 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 ...
randmin's user avatar
  • 69
0 votes
0 answers
278 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 ...
Poyoman's user avatar
  • 141
0 votes
0 answers
135 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 /...
help 's user avatar
  • 101
0 votes
0 answers
354 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", &...
newbee's user avatar
  • 1
0 votes
1 answer
347 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....
Subramanian's user avatar
0 votes
1 answer
255 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 ...
willowen100's user avatar
1 vote
1 answer
444 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 ...
Orun's user avatar
  • 157
0 votes
1 answer
418 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 ...
Digumurthy's user avatar
0 votes
0 answers
157 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 ...
celcoprab's user avatar
2 votes
1 answer
617 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.
Oleksiy Svintsitskiy's user avatar
1 vote
1 answer
405 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 ...
Daniel Gray's user avatar
2 votes
2 answers
4k 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, ...
Andrew Schulman's user avatar
-1 votes
1 answer
270 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 ...
Nakul's user avatar
  • 1
0 votes
0 answers
205 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 ...
dbf's user avatar
  • 73
0 votes
1 answer
776 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 ...
kordhaldrum's user avatar
0 votes
0 answers
77 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 ...
mister mcdoogle's user avatar
2 votes
2 answers
4k 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 ...
Abdullah Manzoor's user avatar
0 votes
1 answer
749 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 ...
Dmytro Pastovenskyi's user avatar
1 vote
0 answers
139 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/...
borjagvo's user avatar
  • 111
1 vote
1 answer
76 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 ...
Repox's user avatar
  • 265
0 votes
1 answer
814 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?
T A's user avatar
  • 1
2 votes
1 answer
159 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 ...
Emmanuel Sifakis's user avatar
1 vote
0 answers
98 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 ...
David542's user avatar
  • 969
0 votes
1 answer
30 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?
Ric L.'s user avatar
  • 1
0 votes
1 answer
945 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:...
user3313834's user avatar
0 votes
1 answer
617 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/...
TechChain's user avatar
-1 votes
1 answer
768 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 / ...
d3m0n's user avatar
  • 83
0 votes
1 answer
384 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 ...
sumit vedi's user avatar
1 vote
1 answer
6k 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 ...
Pablo's user avatar
  • 265
0 votes
0 answers
883 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 ...
Mark S's user avatar
  • 1
0 votes
1 answer
58 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 ...
collimarco's user avatar
-2 votes
1 answer
4k 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 ...
iwantcaketoo's user avatar
0 votes
1 answer
139 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 ...
Arnab Das's user avatar
0 votes
1 answer
1k 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 ...
Harsha Lakshminarayan's user avatar
0 votes
1 answer
40 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 ...
sedapon's user avatar
0 votes
1 answer
2k 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 ...
Mike Frank's user avatar
0 votes
2 answers
2k 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 ...
user avatar
3 votes
2 answers
19k 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 ...
Marcel Stör's user avatar
0 votes
1 answer
50 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?
Dan's user avatar
  • 195
0 votes
1 answer
214 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 ...
Manikandan Ram's user avatar
0 votes
2 answers
970 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....
Kirill Frolov's user avatar
1 vote
1 answer
1k views

IPv6 ULA ( Unique Local Address ) Generation

RFC4193 contains pseudo code for generation of IPv6 ULA (Unique Local Address). Do I have to follow this algorithm or is an arbitrary ULA valid? 3.2.2. Sample Code for Pseudo-Random Global ID ...
Mike Seeds's user avatar
2 votes
0 answers
101 views

SmartOS "/ filesystem full"

Last week I had issue where SmartOS wouldn't boot suddenly(off USB), it just hanged there after "mDNSPlatformRawTime went backwards by 3684530 ticks..." warning. I think this one used to appear at ...
lidagon's user avatar
  • 31
0 votes
1 answer
3k views

vsftpd: ftp: setsockopt (ignored): Permission denied

I'm trying to upload things to my server however I'm unable to ls inside a directory or upload a file to it. I'm using CentOS 8, SELinux set on permisssive. The directory I want to operate on has 777 ...
user540468's user avatar
0 votes
0 answers
118 views

unable to start libvirtd daemon as root user and normal user

I am trying to start libvirtd daemon with following command. systemctl enable --now libvirtd As normal user, I am asked for authentication to manage system service or unit files. So, I tried after ...
Mano's user avatar
  • 101
-7 votes
1 answer
76 views

What happens when I perform this as root [closed]

(don't try this!) lsof -i | head 100 | xargs rm-r After executing this I'm not able to login as it removed /bin/bash. Reboot also don't work. Shows kernel error and server crashed.
Chand's user avatar
  • 1

1
2
3 4 5
40