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.

7
votes
0answers
118 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
1k 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
1k 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
596 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
142 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
38 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
945 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 --...
1
vote
1answer
65 views

Merging Large Files Chronologically (UNIX)

We are currently using syslog-ng to dump files to a network storage location. Each day there are 5 .log files that are written by various servers and at the end of the day I need to merge the 5 files ...
3
votes
1answer
38 views

How to signal the presence of a pattern via exit code, without altering STDOUT

I need to run cmd1. If and only if PATTERN is missing from its STDOUT, i need to run cmd2 too: cmd1 | grep "$PATTERN" || cmd2 But I'd like to see all output from cmd1, not just the lines that ...
1
vote
1answer
364 views

Solaris 10 Memory Size different from Physical Memory Size

Why is this? I am not using any zones (global only), so memory capping doesn't seem to be the answer and all the DIMM modules show as enabled with no faults when digging into this from the ILOM. root@...
1
vote
1answer
3k views

How to automatically switch to home directory when switching user?

When i ssh to my ubuntu server, i get logged in to my user's home folder. But when i do su otheruser and enter the password, i get logged in as the otheruser but the home directory stays for the ...
0
votes
1answer
32 views

Understanding / in crontab

I have found the following entry in our crontab, and wanted to make sure that I have interpreted it correctly: 0 */2 * * * [some command] I am assuming that this means run the command twice a day on ...
6
votes
1answer
3k views

delete systemd not-found services

My server shows multiple missing services. How can i delete them from Systemd? They are not-found. systemctl -a shows: multiple not found systemctl reset-failed shows: still shows These (none of ...
1
vote
1answer
45 views

Configuring denyhosts to ignore cron-jobs

So I recently setup denyhosts for my personal server, and it's working fine, except for the fact that it seems to be processing every single cron session, rather than just external accesses. End ...
1
vote
1answer
188 views

Linux equivalent of Unix who -m command, to show original user ID before su?

I'm trying to find a Linux equivalent of running who -m in Unix. In Unix, who -m gives the first user ID you used to log in, before starting any new shell sessions through su, etc. The -m switch to ...
1
vote
1answer
101 views

Should a deployment user have his shell set to /bin/false?

I deploy web applications by "sandboxing" each application under its own UNIX user account, behind a common nginx reverse proxy that also serves static files. Each account runs the application server, ...
-3
votes
2answers
545 views

Ubuntu 14 find what is consuming disk space

Have any command to see what is consuming disk space on ubuntu 14? My Ubuntu server has left only 70MB of disk space thank's
1
vote
0answers
3k views

Linux : Count Open Files for Process

How can I check how many open files are currently used? Checking on PM2 is just an example: I found the PID: ps aux | grep pm2 | awk '{ print $2 }' Checked that there is a limit of 65536 ...
1
vote
0answers
1k views

Apache - a sudden “Too many open files”

So we have an apache server running in Linux with no issue. Yesterday we made a server restart and since then we noticed that the number of open files by the apache processes is keeping increasing ...
1
vote
0answers
309 views

Unable to Access SSL-encrypted MAMP site over LAN using Squid proxy (Non-SSL sites working fine)

I've got a development site running on a host machine (mac os x) in MAMP that I want to view on a client machine (and also on mobile devices - all mac os). All are connected to the same LAN (wifi). I ...
0
votes
2answers
122 views

How to do SSH with -i option and bypassing password entry

Using ssh, I want to access Machine1 --> Machine2 Let's say Machine2 has IP address: 133.165.14.22. I have copied id_rsa.pub from Machine1 to Machine2 Then in Machine2 I have already did this: ...
0
votes
1answer
251 views

Packet Sniffer to dynamically create iptables rules

On a router running unix I wish to make monitor all outgoing packets, of these packets I want to temporarily white list IP addresses I am connecting to, to both send and receive. Basically to create ...
0
votes
2answers
55 views

How to output column with special patterns

I have a column, with some words: scatman batman superman scatman scatman batman superman scatman scatman batman superman scatman batman WWWWWWWW superman scatman batman superman scatman I should ...
-1
votes
2answers
518 views

Uniq by two columns with two conditions

i have table with columns. In first column, i have time, when the user has logged, in second column, i have a name of user. 13:15:39 fxs1cia1qulm1lk 13:15:39 fxs1cia1qulm1lk 13:15:39 ...
2
votes
1answer
1k views

How do I use stress-ng to simulate memory usage?

I found the command stress-ng -c 0 -l 60 which takes up 60% of the CPU. Is there a similar command for taking a certain percentage of the total memory available?
1
vote
1answer
443 views

Many authentication failed logins for “good” users

I have recently notice that my server was reporting at mail.log a lot of bad authentications for know users, and its not a brute force attack. And i really dont know the cause of such authentications. ...
0
votes
1answer
34 views

Unable to confirm timezone while setting crontab for different unix users

On our production server, UCT timezone has been set for server i.e. for root user but for local technical user different timezone is set in .base_profile. I want to set cron as per CET but server ...
0
votes
1answer
584 views

why /var/log/wtmp and /var/log/lastlog have read permission for other users?

In my Linux server lastlog and wtmp files have read permission set for other users (664) . Do we really need to keep the read permission for other users or can I change it to (660 or 640) . Does it ...
0
votes
1answer
465 views

Terminate watch command after run completes

I'm using watch in a screenwindow to continually execute a PHP task which processes data every two seconds. Thus, I can logout of the server with it running and can check-in on it. I don't want to ...
-1
votes
1answer
476 views

OpenVpn troubleshooting

I run a VPN with Openvpn on a Debian 8 server. It works kinda well. Sometimes (once a month or every 3 weveks) the tunnel stops running and I have to reboot the server to be able to connect to the ...
3
votes
2answers
5k views

How to crash a single process in Linux?

I want to analyse the outcome of my application process when it crashes. How can I manually crash a single process in Linux?
0
votes
1answer
452 views

What is the difference in restricting single user mode with password through /etc/sysconfig/init and /etc/inittab in a Linux system?

I was checking some sites for setting password protection in single user mode login in my Linux server (Oracle Enterprise Linux-OEL) . In some places I saw the steps to add entry into inititab file ...
0
votes
2answers
231 views

LD_LIBRARY_PATH Configuration Setup Issues

I am facing a weird but a sensible issue, I have 2 ORACLE_HOMEs, 1st one points to ORACLE Database Software and 2nd one points to ORACLE Client Software. Why I am forced to do this - reason is: In my ...
-1
votes
3answers
97 views

How to know Window user detail logged in Unix server using putty

I have one common user named meduser in unix SunOS server, many people logged into the same user meduser from Window machine using putty. Please reply me if there is any way to know the Windows user ...
0
votes
1answer
568 views

Placeholder in bash/shell for defferent linux distr

i have some problem. I need to add in autorun of linux, some scripts. But in my infrastructure, i have a different distrs. Of course, the way of adding this scripts in autorun different. In CentOS it ...
3
votes
1answer
3k views

Solaris 10 NFS client mount error “NFS compound failed for server 10.0.2.18: error 5 (RPC: Timed out)”

I have a Solaris 5.10 (I think that's considered Solaris 10) server - we'll call it "Bill" - which I own, but a vendor supports the additional software installed. They have to manually stop services ...
0
votes
1answer
745 views

Making open file descriptor limit unlimited in Debian

I am doing a perf test of one of my API. After some time I keep getting the error Too many open file. Once I increase the number of open file descriptor (ulimit -Hn, ulimit -Sn & cat /proc/sys/fs/...
2
votes
1answer
3k views

Which umask is more secure in Linux ( 022 or 027)?

Is there any security concerns if the umask is set to 027 for root (Basically I want to know if 027 is better in security than 022 ) ? As per my understanding 027 is a better one from security ...
0
votes
2answers
192 views

iptables, are all ports open? how do i remove line?

it´ been an long time i configured my firewall and now i see there might be an error, heres the INPUT part of iptables -L Chain INPUT (policy DROP) target prot opt source ...
0
votes
0answers
103 views

Postfix arguments

According to another answer, I may need to set smtp_sasl_mechanism_filter = plain in order to get postfix to work correctly for my needs. My question: Is there a way to modify this setting from the ...
0
votes
1answer
404 views

chroot root jail with where you an only su out to registed user

Can i ask for some advice about securing ssh logins. Is this a good way. I want to have only one user allowed to connect to our remote servers(AllowUser in sshd.conf)Using ssh keys and NoPasswords. ...
0
votes
1answer
75 views

cpulimit, but for load? Pause a command until load avg goes below some figure?

The programme cpulimit on Linux is great. You can tell it to limit a process so that it doesn't use more than X% of the CPU. For example, I know someone who's laptop overheats if the CPU runs too hot ...
0
votes
1answer
214 views

cfgadm hangs when attempting to attach SCSI device

I'm trying to hot plug a EXB-8900 tape drive into Solaris 10 and having issues. Here's the process I follow. Please note this has worked: cfgadm -x insert_device c4 yes at the first prompt to ...
0
votes
1answer
75 views

what are the reasons for umounting /proc filesystem? [closed]

I am trying to write an audit program for unixs systems. First I was thinking of getting all the outputs of various native commands, such as ifconfig, df, route, and so on, depending on the system the ...
0
votes
1answer
487 views

Standing Up Cisco CSR1000v .iso on Google Cloud Platform RHEL VM

I have a Cisco Cloud Service Router 1000v, CSR1000, .iso image that is advertised to run on KVM. I launched a RHEL 1 vCPU, 0.6 GB w assigned public IP and default private IP and uploaded the image. ...
0
votes
1answer
339 views

abrt-ccpp ignores MaxCrashReportsSize and creates a huge dump :(

My abrt-ccpp service suddenly stopped capping the dumps at 10M and creates huge dumps - what am I missing? (I really haven't changed anything...) my dumps folder: sudo du -sh /home/tmp/abrt/* 12K ...
2
votes
2answers
57 views

Is there a way to see free mem history on redhat? [closed]

Is there a built-in way of checking free mem history or any other performance stat on redhat 6.5--e.g., the past hour, days, weeks etc.. On other systems, I have previously used orca which creates ...