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

1
vote
2answers
814 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
307 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
51 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?
0
votes
1answer
148 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
2answers
285 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
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?
13
votes
3answers
808 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 ...
-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
92 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.
0
votes
2answers
83 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 ...
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 ...
0
votes
0answers
126 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
65 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 ...
2
votes
0answers
96 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 ...
1
vote
0answers
67 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
136 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 ...
1
vote
0answers
44 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 ...
1
vote
0answers
219 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 ...
0
votes
2answers
663 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 ...
1
vote
2answers
158 views

How do I iterate bash arrays and make an SCP command efficiently?

I need to scp the files from machineB and machineC to machineA. I am running my below shell script from machineA. I have setup the ssh keys properly. If the files are not there in machineB, then it ...
9
votes
4answers
420 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 ...
0
votes
2answers
731 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: ...
3
votes
1answer
128 views

ISC DHCPD memory leak solutions and or workarounds

Background: I have recently been put in charge of finding the root of and/or fixing a memory leak with an ISC DHCPD (4.2.5-P1) installation on a Debian (Lenny) Unix server. I have been researching ...
-1
votes
1answer
194 views

Https not working JBoss AS 7.0.2

I am trying to load SSL certificate to one of our site. We are using JBoss AS 7.0.2 for our application on Ubuntu Server 12.04, it's running successfully on http while on https it's not responding. ...
-1
votes
2answers
122 views

How to transfer file(s) from a Unix system to a DOS system? [closed]

What is the simplest way to transfer files from a Unix system to a DOS system? Preferably without any "extra" tools on the DOS side.
0
votes
0answers
39 views

Balancing server bandwith

I am working on a file uploading website. It will be run on dedicated server with 1GBPS connection. I wanna offer visitors max download speed possible at the current moment. So lets say server can ...
1
vote
1answer
61 views

cp/rsync command with destination as symlink to a directory

I am working on a cPanel backup solution at the moment. We are now informed about this exploit. Exploit : Full ROOT ACCESS to server 1.) create malicious file from, normal user account: mkdir root ...
0
votes
1answer
52 views

Multiple VirtualHost Configuration files in Apache2.

I have servers with RHEL-5, Apache-2.2.22, PHP-5.3.25 I know I can configure multiple virtualhost configurations in mutliple file by including these files in httpd.conf. Can Apache support this ...
0
votes
1answer
58 views

Optmize server access for LAN and WAN (Internet Access)

I am trying to optimize my server so that accessing the local network as well as the internet. The OS is Solaris 9 running on a SUN V210 Connecting outside takes a long time, with sometimes there is ...
2
votes
2answers
407 views

RHEL 5 list missing critical patches/packages

Im trying to figure out if there is an easy way to identify the missing critical patches/packages on my RHEL5 boxes. This is for audit purposes and was trying to figure out if there was an RPM command ...
5
votes
2answers
210 views

Trying to delete a directory stored on a Windows server, from on a Mac, containing files created on the Mac, getting “Directory not empty”

I am trying to delete a directory stored on a Windows 2008 R2 server, mounted on a Mac as network home (10.8.5). The directory was created by Safari and stores temporary internet files. I need to be ...
2
votes
1answer
720 views

What are main differences between Linux and FreeBSD system from sysadmin point of view? [closed]

What are main differences between Linux and FreeBSD system from sysadmin point of view ? What specifically and significantly differs Linux from BSD (memory/resources/users management, other ...
0
votes
1answer
112 views

Unix 'find' command to include/exclude subdirectories

Say the folder structure looks like this: . |--folder1 |--subfolder1 |--subfolder2 |--subfolder2 |--folder2 |--subfolder1 |--subfolder2 |--subfolder2 |--folder3 ...
1
vote
1answer
577 views

kernel warning disk error for command write - solaris svm

Recently this warning came up on my message logs, scsi: [ID 107833 kern.warning] WARNING: /pci@1c,600000/scsi@2/sd@0,0 (sd0): Oct 27 00:14:44 Error for Command: write(10) Error Level:Retryable ...
-1
votes
1answer
57 views

Differences between UNIX and Linux Drivers [closed]

I've been trying to find an answer to this, been on a wild goose chase. Since UNIX and Linux have different system architectures. My question is on the differences between the drivers for the SPARC ...
1
vote
2answers
83 views

Long string insertion with sed

I am trying to use this expression to insert the contents of one text file into another after a give string. This is a simple bash script: TEXT=`cat file1.txt` sed -i "/teststring/a \ ...
0
votes
1answer
125 views

IP routing Solaris 9 access the internet from local network

I am trying to configure the NICS on the Solaris Sparc server. My problem lies in getting out to the "Internet" from the local network. I have requested the NIC to receive a DHCP server address ...
1
vote
1answer
142 views

Timestamp Updating Constantly on /dev/null

I've been working on a problem with a /dev/null file on an AIX system (just for background it looks as though it was inadvertently deleted and recreated as a normal file by somebody), but in trying ...
-1
votes
2answers
975 views

how I can get the value of JAVA_HOME from my client

I have nagios client and server, how I can get the value of JAVA_HOME from my client? I have use to set shell command in script that is running from remote host: echo $JAVA_HOME and printenv | grep ...
0
votes
1answer
256 views

pbs check how much cpu a job is using / job % cpu usage

On a cluster a job is submitted to run on N CPUs. qstat -f doesn't show how much CPU resources the job is using other than the time. How does one check whether 100% of each CPU power is used? It is ...
2
votes
1answer
535 views

vsftpd default permissions for website directory and ftp

I'm trying to setup vsftpd and my users correctly. I can connect to the ftp with my user but I can't create any directory or file. My websites folder will be there: /srv/www/domain vsftpd.conf ...
1
vote
1answer
360 views

Sftp download directory while excluding files with certain extension

So I know I can download a whole directory like this: sftp> get -R * How can I exclude all files with .ipa extension though? I want to download everything except .ipa or .ipa.* files from a ...
4
votes
2answers
454 views

DFS and Access Based Enumeration - Unix devices cannot access it

I'm currently experiencing issues with DFS shares and ABE, enabled on a Windows Server 2008 R2 File Server. Everything works fine with Windows, the problem is with Linux/Unix machines. They aren't ...
1
vote
1answer
136 views

How to prevent users from renaming files while providing write permissions on Linux [closed]

For some special purpose, I want to prevent non-root users of the Linux Server from changing/renaming the filenames. However, they can modify and write to the contents of the file. How to do this from ...
1
vote
0answers
41 views

Apache, php, maven and me—pemissions…

I have setup a local Apache2, with PHP and mysql. I wrote a maven build script to deploy my page on that local server. All that is working fine except for one thing: When I instruct maven to clean up ...
-2
votes
1answer
162 views

Need help finding (linux compatible) source code for 'pathchar' program

Am unable to locate the source for pathchar (Van Jacobson's wonderful hack - http://www.caida.org/tools/utilities/others/pathchar/) inspite of searching over many places. What happened to it and is it ...
1
vote
2answers
42 views

How to exclude requests from unwanted sources

Scenario: Client buys our analytics services and includes our analytics SDK in his mobile app. Users who download the app will start sending us lots of data. When the client stops paying for our ...
0
votes
1answer
35 views

Is there a tool for indexing a directory in order to perform cheap content search? (hashing by word, for example)

I am often using grep -R on an entire directory tree to find all files that contains a specified word. I wonder if there is a tool that makes the whole operation much faster, maybe via hashing? (Unix ...
2
votes
3answers
123 views

Why use /home instead of /var?

I have seen many tutorials and real life configurations using /home to keep logs or even websites instead of leaving things in /var/logs or /var/www. Why?
0
votes
1answer
116 views

Debian mysql-proxy reserved connections

I was looking in too the mysql-proxy configuration, and decied to install it in order to make an access point to my servers whenever they reach high peak, however i want to have 5-10 reserved ...