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
1answer
629 views

can I delete the files in the proc folder without consequence?

I see my proc folder getting bigger and bigger and I have limitation in terms of number of files. Can I delete those files or will it have consequences? thanks
-1
votes
1answer
69 views

running script containing sudo in cron [duplicate]

#!/bin/bash value=$(<man.txt) echo "$value" if [ "$value" == "true" ]; then echo "startedif_manthan" ps -ef|grep sym |awk '{ print $2 }'|sudo xargs kill -9; sleep 30; sudo sh ...
-1
votes
3answers
70 views

Cannot start a script

#!/bin/bash value=$(<man.txt) echo "$value" if [ "$value" == "true" ]; then echo "startedif_manthan" ps -ef|grep sym |awk '{ print $2 }'|sudo xargs kill -9; sleep 30; sudo sh ...
-1
votes
1answer
175 views

UnknownHostException in Unix while using InetAddress.getByName() [closed]

I use this snippet of Java code to lookup an IP Address from the domain name InetAddress address = InetAddress.getByName("google.com"); It works fine in Windows & Linux but throws ...
0
votes
2answers
169 views

unix: overwriting a file written by another user in same group

OS: Ubuntu 12.04 I have a directory what has given write permission to group foo. Two users bar and baz are part of the group. Both can successfully write files to the directory. However, baz cannot ...
0
votes
3answers
904 views

How to simulate a source IP to test which iptables rules are/aren't firing? [closed]

We have a fairly complicated iptables/ipchains configuration, which is generated by APF. Traffic to port 80 should be blocked, but our Apache logs show that someone was able to probe for web pages: ...
6
votes
1answer
224 views

Is it possible to use perl, python, php, ruby or whatever to write init.d scripts?

I'm new to this SysOp stuff, so I'm wondering if it's possible to use other interpreted languages to write init.d scripts? The upfront diff for me is /bin vs. /usr/bin #!/bin/sh versus ...
0
votes
1answer
103 views

how to tar or zip two sibling folders and avoid an extra top level folder when extracting

I have a need to create a tar of two sibling folders and send it to a client for extraction on their Mac OS desktop by double-clicking it. yes, that's a requirement of theirs. so I go: cd ~/Desktop ...
-1
votes
1answer
464 views

Block an IP range with FreeBSD's 'route add'

To block a single IP address I'm using the following: /sbin/route add -host 192.168.0.0 127.0.0.1 Is it possible to block an range of the IP addresses using the route? I have tried the tips found ...
0
votes
2answers
173 views

Sync files between two computers connected to same network using rsync command [duplicate]

Possible Duplicate: Need help w/ rsync I have two computers connected to the same network, say Computer A and Computer B. Computer A has some backup files in a directory that needs to be ...
1
vote
4answers
71 views

Howto: command/tool ability check

When developing a shell script that should run on various unix/linux derivates, i sometimes have the problem that some tools have to be called in a different way compared to other systems. For example ...
0
votes
1answer
960 views

SFTP without password prompt (from linux to windows)

I'm using freeFTPd as a sftp server on windows machine. From my linux machine(ubuntu) I want to do a SFTP from to windows and i want to bypass entering password as i'm trying to do this with scripts. ...
-7
votes
2answers
102 views

History of the /etc directory [closed]

It seems like the /etc directory was added for anything that falls into the "et cetera" category of system files. To me that seems along the lines of "extra" or "unnecessary". Why is it that (in my ...
3
votes
1answer
276 views

How can I quickly install FreeBSD ports?

I am a Linux system administrator, so my knowledge of the specifics of FreeBSD are very literal, and not very thorough; I've been configuring packages and what not a for a few days now and every one ...
2
votes
1answer
458 views

How can the root password on FreeBSD 9.1 be changed for the system for the purposes of root logins?

I've never encountered this before when using FreeBSD, but I recently got a new BSD VPS, and when I logged in as a wheel user and su to root, I used "passwd" to change the root password, but this only ...
0
votes
1answer
46 views

Staying up to date with Bugs/Patches [duplicate]

Possible Duplicate: How to stay up to date with the latest information about UNIX software patches and upgrades? I am learning system admin stuff on the side at home for some near future ...
0
votes
1answer
101 views

make backup of file when user run rm -f [closed]

Here is the scenario; I need to authorize a user to do activity in /opt/dev-folder/. Developer makes frequent changes in file, some time they replaced or remove original file. I have assigned ...
1
vote
0answers
250 views

Error sh: line 9: 19705: Memory fault (coredump) in case of OpenSSH installation

I downloaded openssh-6.1.p1/tar.gz with http://mirror.corbina.net/pub/OpenBSD/OpenSSH/portable/. I made at first ./configure, then make which, it seems, fulfilled without errors (Nexenta Illumos ...
0
votes
1answer
475 views

GIT issue in AIX 6.1

I recently installed GIT 1.8.1 on my AIX 6.1 machine and am facing a few issues with it. Now if I login as root and issue git commands like git --version I get the response as shown : Code: git ...
0
votes
1answer
259 views

Cannot get exclusive lock on rpm database in Unix

I was trying to install a python rpm on AIX 6.1 and it was taking too long and so I had to close ther terminal. Later when I tried to install the same rpm as root I am getting the problem as : ...
1
vote
0answers
107 views

The steps to install service-network-ssh [closed]

My original goal was setup service-network-ssh on Nexenta Illumos. As a result of the command apt-get install service-network-ssh I got the following message Reading package lists... Building ...
2
votes
2answers
1k views

Cannot ping over LAN until a ping is received

I have two OSX machines on a local subnet. Pings from Machine A to Machine B consistently timeout until Machine B pings Machine A. After B pings A, A can successfully ping B, but this success is ...
0
votes
1answer
55 views

removing the 'www' in bind9 dns

I want to create a record in my zone file which, by default goes to my webserver when I type in "mydomain.com" as opposed to "www.mydomain.com" <-- working. can someone give me some pointers, I ...
0
votes
1answer
342 views

Securing PHP's exec and others

I'm currently setting up an hosting service and, for now, i'm very concern about security. Here is my situation : I've set up multiple apache's vhost and for obvious securoty reason, i don't want to ...
0
votes
1answer
99 views

Why is sar output not matching?

I am using sar utility for collecting and saving system activity information. After saving the information, I am seeing/reporting the information but the output is not matching. Can some one please ...
0
votes
1answer
99 views

unix malicious scripts/ksh execution

I'm wondering whether my architecture poses a security risk. Details: The whole website is not ROOT owned but still, the APACHE user used instead has some pretty advanced permissions. I have a ...
3
votes
3answers
227 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
1answer
132 views

View multiple remote desktops at the same time in Debian [closed]

I would like to be able to view multiple remote desktops at the same time. All the machines are running Debian. Ideally, if I could get the view on a windows machine that would be perfect. However, ...
2
votes
2answers
97 views

Effective toy benchmark for a computer? [closed]

I wanted to do some (very rough) comparisons between different computers, seeing the relative compute performance of laptops and cloud machines (AWS EC2, rackspace, etc.). I wanted something ...
0
votes
1answer
214 views

Upload database backup from mysql to Amazon S3 or Glacier without creating local file

Is there a tool that makes possible to backup a Mysql database to Amazon S3 or Amazon Glacier without having o create a local file with the database contents? Something like that: mysqldump -u ...
0
votes
1answer
89 views

ssh remote execution always exits 127

quick question: I have a program that is spawning a process which executes a basic remote command over SSH such as: ssh aiden@host /bin/ps Running this manually from my shell is successful (as you ...
0
votes
0answers
286 views

Compile php 5.3 ldap extension

So trying to follow the very un-descriptive guide at my webhost for compiling a new php extension: **Compiling PHP 5.3 extensions You can also compile and load your own extensions. Here's how:** ...
0
votes
2answers
208 views

Unix VPS server going down at almost the same time every day

My server load seems to be really spiking and many times the server goes down at the same time each night (Around midnight). I have about 20 cPanel accounts hosted on it and have tried everything I ...
1
vote
1answer
462 views

readlink: illegal option — f

Recently the script was working fine, but from some days I'm receiving such message, while running the readlink -f "$0" command: readlink: illegal option -- f usage: readlink [-n] [file ...] I was ...
1
vote
1answer
272 views

NIS: which mechanism hides shadow.byname for unpriviledged users?

On some Linux box (SLES 11.1) which is a NIS client I can do as root: ypcat shadow.byname and get output, i.e. some lines with the encrypted passwords, amongst other information. On the same Linux ...
2
votes
3answers
3k views

pam_ldap.so before pam_unix.so? Is it ever possible?

we have a couple of servers with PAM+LDAP. The configuration is standard (see http://arthurdejong.org/nss-pam-ldapd/setup or http://wiki.debian.org/LDAP/PAM). For example, /etc/pam.d/common-auth ...
0
votes
1answer
58 views

SCO Unix 3.2.2: sysadmsh issues

When I type sysadmsh from the console prompt, it looks like this: The way it used to work is that the prompt would be in color and the lines would wrap correctly. I've had a couple of issues with ...
1
vote
1answer
106 views

Error when using mv

I am receiving an error when trying to mv some files that really doesn't make sense. I receive this error: mv: cannot move `thatDir' to a subdirectory of itself, ...
0
votes
1answer
35 views

Deleting a user in unix

Does deleting/removing a user automatically remove the user from all groups the user was a member in?
1
vote
2answers
489 views

Is it possible to export Windows event logs from multiple servers to a non-windows host, without running event manager on each of the Windows servers?

I want to export event logs from Windows to a non-Windows host. I was considering using Logstash, but that would seem to require that I install and run Logstash on each server. Is it possible to do ...
0
votes
1answer
71 views

Linux released memory

If My process allocates some big memory and then deallocates, would top or gnome-system-monitor show that my memory usage of that process decreased ? or kernel will still reserve that memory for that ...
0
votes
1answer
168 views

How to have supervisord follows the new unicorn process after USR2 rolling restart?

I have configured supervisord to track my unicorn server process. When I send USR2 process, this performs a rolling restart. After this operation the old unicorn master have restarted and then changed ...
1
vote
1answer
187 views

Client side certificates in client browsers with unix server for management

We are currently running Unix dedicated servers for everything (Web cluster, database, FTP, batch, ...) except for a Microsoft Active Directory Certificate Services. The sole purpose of this Windows ...
1
vote
1answer
119 views

Logging commands executed by remote shell scripts

I've noticed that when running a script that connects to a number of our servers (to essentially run batch commands) that the commands aren't logged in the user's .sh_history or .bash_history files. ...
1
vote
2answers
1k views

Understanding ulimit -u

I'd like to understand what's going on here. linvx$ ( ulimit -u 123; /bin/echo nst ) nst linvx$ ( ulimit -u 122; /bin/echo nst ) -bash: fork: Resource temporarily unavailable Terminated linvx$ ( ...
23
votes
3answers
2k views

Why is Linux reporting “free” memory strangely?

This is a canonical question about how Unix operating systems report memory usage. Similar Questions: Server refuses to use swap partition Memory Usage in LINUX I have production ...
1
vote
0answers
119 views

Limiting memory usage and mimimizing swap thrashing on Unix / Linux

I have a few machines that I machine that I use for running large numbers of jobs where I try to limit the number of jobs so as not to exceed the available RAM of the machine. Occasionally I ...
0
votes
1answer
232 views

Disk size and space detection

i'm running a server with debian stable : Linux myhostname 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux It is running a nginx, mail server,ftp server and a mysql database. ...
0
votes
1answer
4k views

SFTP: Move (rename) many files from one folder to another (not one by one)

I need to move all the files from current_path to current_path/DestinationFolder. The version of SFTP I'm using is: SFTP protocol version 2 The available commands are: sftp> help Available ...
10
votes
3answers
202 views

*nix convention for storing user logs?

What’s a conventional log location for processes that run on behalf of users? ~/.foo/logs/ — my top choice but not super awesome /var/log/foo.uid/ — Non-system users can’t create directories here, ...