Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

0
votes
2answers
488 views

CPU usage command for monitor script

Is there a command for FreeBSD (except the top -P) I could use to monitor my dedicated server CPU usage? I am in progress of writting my bash script which will notify me as soon as any of the CPU core ...
1
vote
2answers
60 views

How do I show listening open ports from the shell?

I always have to google this and ServerFault is never the first result. Typically I want to do this on a unix box, but I'd also like to know how to do it on a Windows machine from CMD.exe.
1
vote
1answer
44 views

Viewing the packet-size of an incoming IP

I have been looking for a sulution to this for a few hours. after no avail im asking for help here. I need to watch my incoming packets by Size. in a format similar to: IP SIZE I have tried ...
0
votes
1answer
3k views

Hosting Folder in the home directory using nginx

I would like to add a condition in an adduser script to update nginx.conf for it to load ~/www as http://ipaddress/~user whenever I create a new user. And when a user is named www.domainname it will ...
0
votes
2answers
532 views

Logging ssh info using syslog-ng daemon in Cygwin

I have setup the syslog-ng daemon using Cygwin in Windows 7. What I want to do is to log all of the ssh failed passwords, etc to /var/log/sshd.log. I tried to do this by adding the following line: ...
1
vote
1answer
142 views

Can sftp check for existing data?

I have 700 binary files (pdf) to download and right now only 400 are available on a sftp server. Can sftp, from the cli, determine what files exist in the local directory so it doesn't need to ...
1
vote
2answers
5k views

Fixing Shared PCRE Library on CentOS

This is less a question about PCRE, and more a question about updating shared libraries. The distribution of CentOS I'm running only allows for yum upgrades to version 6.6, or somewhere similar. I'm ...
3
votes
6answers
426 views

Server monitoring for medium scale UNIX network [duplicate]

I'm looking for suggestions for a good monitoring tools, or tools, to handle a mixed Linux (RedHat 4-5) and HPUX environment. Currently we are using Hobbit which is working reasonably well but it is ...
3
votes
1answer
2k views

Can't log in to FTP on Debian with vsftpd

Linux noob here so please bear with me :) I'm trying to setup FTP access to my Apache server but I'm receiving a 530 Login Incorrect error. I installed the vsftp package via sudo apt-get install ...
0
votes
2answers
101 views

How to block rejected messages I did not send?

In exim mainlog I see a lot of rejected messages I did not actually sent (they were send from spammers). 2014-02-20 23:42:47 H=a94-132-158-40.cpe.xxxxxxx.pt (zonhub) [94.132.xxx.xxx] ...
1
vote
2answers
406 views

How do you tell if a user is “allowed to log in” on Linux?

The question is simple, I want to list all the user accounts which can log in to my system, but I'm not sure if that all the users in /etc/passwd are "could login" users? Details: I can see users ...
0
votes
2answers
169 views

Portforwarding with IPTABLES and Remote IP detection

I was able to forward 80 port from my primary server 192.168.90.1 to the second one 192.168.90.2 with IPTABLES The primary server has a public address X.X.X.X so I forwarded X.X.X.X:80 -> ...
1
vote
1answer
201 views

dmesg time vs system time time isn't correct

I hope that here is somebody that can help me with this strange problem. I think that i know why it is happening but i don't know how to solve it. Maybe it is because the BIOS time isn't set correct ...
0
votes
1answer
107 views

Fix Solaris 11 GNU tools location for RVM

I am trying to install RVM on a Solaris 11 system, the curl -sSL https://get.rvm.io | bash -s stable went through, but when I actually try to use rvm, it simply stats "ERROR: Missing GNU tools: grep ...
1
vote
1answer
190 views

chcore command not taking effect

I am trying to change the behaviour of where core dump files get written to, as described here: ...
1
vote
1answer
50 views

How to delete special character in linux

By mistake I made a file with the name \. How do you delete something like that? I've tried rm --\ rm "\" rm -- -\and nothing seems to work. I bet it's so simple but I'm stumbled - any suggestions?
1
vote
2answers
191 views

SSH Tunnel or Reverse Tunnel

I'm trying to establish a SSH tunnel to allow VNC/ARD connections (ports 5900 and 3389). However I'm uncertain about a certain thing: Let's say machine A has IP 192.168.103.1 and has services running ...
1
vote
1answer
710 views

pam_exec.so PAM module does not export variable PAM_USER as stated in the documentation

I'm trying to use the pam_exec.so PAM module to execute a script which needs to know the username/password coming from the application (OpenVPN in this case). I have a script that executes printenv ...
1
vote
1answer
98 views

RDP forwarding on HP/UX machine

I have a setup that consists of a HPUX machine that acts as a router and has a set of windows machines sitting behind it. I have given the HPUX box 3 external IP address on our main network so we can ...
1
vote
2answers
522 views

Setting request-user on IPP printer in CUPS

I need to send a request to CUPS server with the specific request-user parameter - remote_user instead of local_user. How should I set the local CUPS server?
13
votes
3answers
637 views

Is there a mechanism in Unix (or Linux) to stop an in-progress core dump?

Let's say a (very) large process is crashing and dumping core, and we know the cause from other information (possibly an assert message, maybe something else). Is there a way to stop the core dump ...
53
votes
8answers
30k views

Environment variables of a running process on Unix?

This is to troubleshoot some problems related to environment variables .. On Windows, I could do this by using tool such as ProcessExplorer to select particular process and view values of each ...
1
vote
1answer
40 views

Windows process management tools

Unix has tools like upstart, angel, god, etc to keep processes running constantly on system start and can restart processes that have failed. Does windows have the ability to do this natively?
1
vote
2answers
248 views

Accidentally overwrote file instead of appending. Is there hope?

I accidentally did this: command > ~/.bash_profile Instead of command >> ~/.bash_profile I know, I'm an idiot. Is there a way to recover the old .bash_profile file? Thanks a lot for ...
23
votes
5answers
3k views

Can a program tell it is being run under sudo?

I have a program that should behave differently if it is being run under "sudo". Is there a way it can find out if it was run under sudo? Update: Someone asked why would I want to do this. In this ...
-1
votes
1answer
1k views

KVM-Host OS recommendation [closed]

I am about to migrate a server installation (one OS) to a newer hardware and wish to enable/use KVM. So the hardware is fixed (https://www.hetzner.de/hosting/produkte_rootserver/ex40) , now I got the ...
-2
votes
2answers
75 views

How to block access to a local user to a local port?

How to block access to a local user to a local port? Example: user Elvis should not have access to the port 25600 on the same server.
4
votes
6answers
6k views

How to download with wget without following links with parameters

I'm trying to download two sites for inclusion on a CD: http://boinc.berkeley.edu/trac/wiki http://www.boinc-wiki.info The problem I'm having is that these are both wikis. So when downloading with ...
4
votes
5answers
2k views

Inventory or Audit Installed Linux Software

I am working on a project where we need to be able to tell and report periodically on what software is installed on our various Linux/Unix servers. I have looked at this, How to inventory what ...
2
votes
1answer
1k views

sendmail - DSN: Name Server host not found

I've recently setup a new backup server and have configured sendmail with a smart_relay_host Except every email from the command line doesn't go anywhere. From mail.log: Oct 3 14:32:52 **back01 ...
0
votes
2answers
80 views

Control IP to access a server , which use iptables

I would like to use linux command iptables to control to only allow the same subnet IP to access a server , what I would like to do is to allow any services from 10.168.1.0 to this server , could ...
1
vote
2answers
127 views

Issues while untaring in Linux- tarball created from Solaris

I am getting an error- Unknown file type 'A', extracted as normal file while un-tarring a set of files which has acl permissions set. I had created the tar file in solaris as tar -cpfv ...
3
votes
3answers
239 views

Why do I have more users logged on than there are?

On an old GNU/Linux Ubuntu box I see something like lorenzo@metropolis:~ $ w 09:58:18 up 651 days, 19:30, 5 users, load average: 0.28, 0.30, 0.24 The problem is, I am logged on other three ...
0
votes
0answers
115 views

Samba suddenly not working- The specified network name is no longer available

I have a Samba server and a windows server that access a share on the linux samba server. For some reason, this single server has stopped being able to access the samba server. When you access the ...
2
votes
2answers
63 views

redundancy in a single SCSI target

following-on from my earlier question about resurrecting an ancient Intergraph 6800 machine (licence file for extra logins on ancient Unix (CLIX) system), the original problem was a failed hard disk ...
0
votes
3answers
176 views

SCO Unix - finding and pulling data

We recently acquired a company that was running a legacy application on a SCO Unix box. I can tell that the app is running off of http, but its reporting and data export functions are limited and ...
2
votes
0answers
95 views

licence file for extra logins on ancient Unix (CLIX) system

I'm helping to sort out an ancient Intergraph 6800 machine at work, running CLIX, a proprietary Unix. Binning the system is not an option. It is a certified safety-critical system that would cost ...
3
votes
8answers
3k views

Linux - use “su -” but keep the current directory

When I do su - to get to root, my current directory is set to root's home. Is there anyway to keep the current directory that I was in, much like sudo -s. Or is the answer to use sudo?
1
vote
0answers
58 views

Mac OS 10.6.8 Firewall Blocking Wiki for ONE User

This is a very bizarre issue that I hope someone can help with. We're running 10.6.8 server to host our internal wiki. We had the firewall enabled on that machine without any issues. Last week one ...
0
votes
0answers
126 views

Write failed: Broken pipe even if I use ServerAliveInterval?

This is my ~/.ssh/config file - Host 10.2.1.1 ServerAliveInterval 120 ProxyCommand ssh 10.1.1.1 nc -w1 10.2.1.1 22 I've configured it so that I can bypass the jump server each time I need to ssh ...
30
votes
5answers
28k views

When does /tmp get cleared?

I'm taking to putting various files in /tmp, and I wondered what the rules on deleting them are? I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu ...
1
vote
0answers
39 views

Is there a way for a user to temporarily remove its own group membership within a script?

I'm writing a script which will be used to "detect" whether a generic, no-frills, user account has access to certain files. Basically a user which only has membership in the "staff" group or ...
0
votes
3answers
1k views

imuxsock messages in syslog and system becomes unresponsive

I am getting such messages in syslog. rsyslogd-2177: imuxsock lost 21869 messages from pid 3418 due to rate-limiting rsyslogd-2177: imuxsock begins to drop messages from pid 3427 due to rate-limiting ...
11
votes
5answers
3k views

What are the practical differences between Interix and Cygwin?

Both Interix and Cygwin appear to provide a Unix-like user environment in Windows. What are the practical differences between the two, in terms of, for example: Unix-like "feel" Performance Package ...
1
vote
2answers
348 views

Unix quota per user script

Is there any way to automate user's home folder qouta by script. I have auto useradd script, and I want to add code in script about quota for home folder of size 2 GB. For example: edquota sally ...
1
vote
0answers
170 views

rsyslog logging same data to multiple files

I'm new to configuring rsyslog for centralized logging and was wondering if one of you experts could help me with the following problem. I am trying to store logs for each remote host to a per host ...
9
votes
4answers
417 views

Linux cd .. command

Say if I need to do this a lot: cd ../../../../foo/sub1/bar/dest/ cd ../../../../foo2/sub1/bar/dest/ cd ../../../../foo3/sub1/bar/dest/ cd ../../../../foo/sub1/bar/dest/ Is there any faster way to ...
2
votes
5answers
5k views

What is MonkeyCom on port 9898?

In /etc/services on a few machines I've checked, port 9898 is associated with a service called MonkeyCom: monkeycom 9898/udp # MonkeyCom monkeycom 9898/tcp # MonkeyCom The first ...
0
votes
2answers
478 views

How to kill the process using the name of the program instead of PID?

I started my Python program in the background using nohup as mentioned below - nohup zook.py & Now I am trying to kill this process so I did the ps command as mentioned below ...
10
votes
8answers
17k views

Why can't I ssh into my new EC2 Instance?

I created a new instance (tiny, 64 bit AMI linux from Amazon) Created a new key pair called "mir". I downloaded mir.pem and put it in my ~/.ssh folder. I even did ssh-add mir.pem. Then I tried to ...