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

-4
votes
1answer
112 views

How do I extend unix “ps -ef” command to see more info [closed]

I need to grep process by information containing in CMD column, but this column strings is cut(limited) and needed info is lost. Please suggest how can I enlarge string size allowed for CMD column. ...
1
vote
3answers
725 views

RPM ignore conflicts

is there a way to ignore rpm version conflicts by keeping the latest version installed? For example. I want to install gawk in AIX. I have all the required rpms in a folder ...
0
votes
2answers
348 views

UNIX ctime : how to keep this precious information in backups (tar)?

I have three questions related to the "ctime" information of a file. They are in bold (if you don't have time you can jump directly to them). A website on my dedicated server has been hacked. Lots ...
0
votes
1answer
190 views

Patch management on multiple systems

I'm in charge of auditing the security configuration of an important farm of Unix servers. So far, I came up with a way to assess the basic configuration but not the installed updates. The very ...
-1
votes
2answers
908 views

Shell script :: Reading a column from file & store it in array [closed]

I am working on shell script where i want to store O/P of the command in array. I have a file containing rows & columns from where i want to extract 3rd column & store all values in a array. ...
0
votes
1answer
52 views

How do I turn on port forwarding with Ubuntu?

$ssh -f -N -D 0.0.0.0:80 localhost Permission denied (publickey). I don't have anything in my ~/.ssh directory. I'm logged in as root.
0
votes
3answers
156 views

Website filtering for OpenVPN clients

I am currently trying to block some websites by their domain names for all the clients of my OpenVPN server. My first idea was to use the /etc/hosts file. But, its effects seem to be limited to the ...
0
votes
2answers
50 views

What signal is sent to running process after network fail?

I am trying to reproduce a situation where a process fails due to a network outage. I was hoping to reproduce this signal with a kill command. A normal kill command is not working. I have taken a look ...
1
vote
1answer
227 views

is there any advantage mounting an LV by UUID instead of by path?

I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...). I see a clear ...
1
vote
0answers
85 views

In linux and solaris, what is the UUID based off of?

If you run dmidecode|grep UUID you are given a "globally unique string of characters" which can be used for licensing purposes. In linux, the format is usually something like this: ...
0
votes
1answer
177 views

automatically start and and selectively stop multiple instances of couchdb on osx

I have successfully installed couchdb via homebrew: % brew install couchdb ...and invoked mutiple instances as directed here: % OLD=/usr/local % NEW=/tmp/couchdb % mkdir -p $NEW/etc/couchdb/ % ...
1
vote
2answers
83 views

Password Change With Command Line On NetBSD

How can I change root password with one line command on NetBSD? On FreeBSD, it's something like this echo "password" | pw mod user root -h 0 ;
-4
votes
3answers
279 views

How to query specific DHCP server

is there a way how to query a specific DHCP server for an IP address? Something similar to dig @_IP_ADDRESS_ _server_name dig @8.8.8.8 apple.com Thanks
2
votes
2answers
116 views

How to get a kernel panic count [closed]

Is there any way to check the number of kernel panic that happened on a system ? If not, any idea on how to do make this new functionality ? I would like to hear about an answer for most Unix-like ...
0
votes
1answer
332 views

Puppet agent not starting?

I've attached the full output with debug to see if anyone can make sense of what is going wrong. I've tried removing /etc/puppet/ssl/ and the two nodes (agent and master) are able to ping each other ...
4
votes
1answer
541 views

sudo: How to allow only one argument to a command?

I want to add an entry to my suoders to allow one user to run a command with exactly one non-option argument. # tail -1 /etc/sudoers ALL ALL = (:tool) NOPASSWD: /bin/echo [a-z]* $ sudo -g tool ...
12
votes
10answers
5k views

Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?

Long story short: Big old corporation, lots of UNIX/Linux servers. I inherited responsibility for a bunch of scripts that that left a few years ago. One of them was a script that would be run every ...
0
votes
1answer
40 views

Unix box blocking an IP?

I have inherited a Unix box that is now running in AWS in an EC2 instance. Everything has been working fine until the other day we were doing some performance testing on the web application that is ...
2
votes
1answer
976 views

Linux- Permission denied?

I'm installing Neo4j server as a linux service, but when I install it, I get the following message: /sbin/insserv: Permission denied What is this? What should I do? I'm running everything with ...
-3
votes
1answer
35 views

find maximum of My list [closed]

I have List like this Apple 1.09 Orange 20.01 Banana 2.34 Use cut, sort, head, and tail to determine the maximum and minimum particle momenta. Which particles are they?... this is my code: cat fn ...
-1
votes
1answer
72 views

Is there a standard place to install software that doesn't follow the Filesystem Hierarchy Standard?

Let's say I'm building and installing some third-party software called foo. I want headers in /usr/local/include/foo, shareable read-only data in /usr/local/share/foo, and so on. But let's say foo ...
2
votes
2answers
3k views

Move files to another directory which are older than a date

I am looking for a solution to move files that are year older from today. My log partition is getting full, but I can not remove them. They are needed for a long long time. Anyway one solution I came ...
2
votes
1answer
163 views

Using pv with a Python script: monitoring progress when uploading to AWS Glacier using the boto glacier utility

I am looking to use boto's glacier command line tool to upload data to AWS Glacier. I'd like to monitor the progress of my upload. Normally I use pv to monitor progress. I've perused the code of the ...
2
votes
1answer
61 views

schedule a job to run only “once” after 50 seconds

I have a process which is designed to do a specific task in case of events. Requirement is to run a specific command 50 seconds after an event occurs. Cannot modify the code to put sleep there as it ...
0
votes
1answer
147 views

What do these kernel errors in my logwatch mean?

I was reading my logwatch this morning and I've noticed that there are a lot of kernel errors. I'm on CentOS 6 and the machine acts as a web server. Can anyone help me understand what these mean and ...
3
votes
3answers
5k views

How to recover free space on deleted files without restarting the referencing processes?

When big files are deleted on a server, the files might still be referenced by processes, so the file system doesn't have more free space. I tried to use lsof, but it seems it didn't list the deleted ...
1
vote
2answers
73 views

What is this specific shell script statement validating?

I'm not a good Shell Script expert. Can somebody help me to understand and explain the statement [ ! -z ${TRUE:-} ] && [ ${TRUE:-} == 'true' ] &&from the following snippet. What is ...
1
vote
1answer
169 views

SSH on FreeBSD 8.1 sshd is not running

After reading many pages of documentation and articles on how to telnet or SSH into FreeBSD as root, none have given me a solution that actually works. I am looking for a how-to-remote-into this ...
1
vote
1answer
634 views

How can I use the home, end, page-up, page-down keys on Solaris via PuTTY?

I love the shortcuts home, end, page-up, page-down, but I am unable to use them via PuTTY on Solaris servers. Windows PuTTY => Linux desktop via SSH, works fine. Windows PuTTY => Solaris ...
-1
votes
1answer
497 views

Automate git-pull, stuck with keychain

I'd like to create a cronjob to automatically run a git-pull every minute. The problem is that my repo is private, I had to create keys on my system (Ubuntu Server 12.04). I installed keychain and ...
0
votes
1answer
45 views

How I can Monitor other application and resources from IBM WebSphere Application Server 7.0

I have IBM WebSphere Application Server+ 7.0 , and I deploy many java application on this server , from other hand I have stand alone java application ( this application is financial application and ...
1
vote
1answer
63 views

bash_history file and history command showing different entries

I am using the Terminal app on OS X to try and clear my command history. The entries within my $HOME/.bash_history file do not match what is returned by the history command. The echo $0 command tells ...
-4
votes
1answer
36 views

Two servers mails [closed]

is that it is possible to have two mail servers in parallel, ie a primary through which mails are routed to the outside and a secondary for the exchange of mails locally. and the two servers are ...
1
vote
2answers
204 views

Why need to use exec in upstart script?

I often see some upstart script has the to use exec, what is the point? Seems removing the exec the script also work? e.g. start on runlevel [2345] stop on runlevel [06] exec /path/to/program
1
vote
1answer
225 views

List environment variables of a running process on AIX without character limit

Today I was trying to debug an issue where a process was not picking up the correct environmental variable. It took us hours before we realized that it wasn't picking up the correct variable. I tried ...
0
votes
1answer
200 views

OSX terminal bash permission denied after GIT changed file permissions while cloning repo

I am a beginner at OSX/Unix command line. I have a GIT repository that was created on my OSX computer. Recently I cloned the repo and went to run a bash script within the repo via ./BashFile.sh. This ...
0
votes
1answer
330 views

Count how many rsync process are running on unix machine

I am using Unix machine $ uname -a SunOS machine-name 5.10 Generic_127112-11 i86pc i386 i86pc How would I get the number of rsync process running on my unix box. I tried $ ps -ef | grep rsync ...
12
votes
1answer
355 views

Can you help me with my software dependency issue?

This is a Canonical Question about Compile Dependencies and Package Management. I have a question regarding compiling ports/software or installing RPMs on my *nix server. When I try to do this ...
0
votes
1answer
66 views

Table Locking - Large number of inserts - How do I identify the source of the inserts?

I usually post on Stack Overflow, but I think this may be the more appropriate forum for this question.... I have a dedicated server that servers several million pages monthly. We use LAMP. We're ...
0
votes
1answer
53 views

Changing symlink when a program is running, any side effect?

We have a custom program (test) to use the following structure, e.g. myapp myapp\version1\ myapp\version1\test myapp\version1\logs\.. myapp\version2\test myapp\version2\logs\.. myapp\running ...
25
votes
7answers
12k views

What is a good solution to encrypt some files in unix?

I am looking for a utility to encrypt certain directories in Linux. I am not looking for any full disk encryption services, but simply to encrypt a few directories for the purposes of storing files in ...
-1
votes
2answers
719 views

Running multiple cron jobs from single script

I have three different jobs that I want to run from the FreeBSD shell. I would like to consolidate them into a single script, if possible, but I can not find any syntax to do that. Is there someway I ...
0
votes
1answer
282 views

Apache Ant setup in Aix

I want to install Apache Ant on my AIX 6.1 Server and I'm facing some issues. When I visit the link http://ant.apache.org/manual/install.html I did not understand the installation step for the files ...
1
vote
1answer
460 views

What is the kerberos keytab file used for in UNIX/AD kerberos authentication?

I have proved that UNIX/AD Kerberos authentication works without the presence of a keytab file so I'd like to know whether I should worry about it (given I'll need an individual keytab for each server ...
0
votes
1answer
254 views

Cron permissions?

I have a bash script which if I run manually (as root) performs all of its tasks without issue. The tasks are just a few php scripts and then a "mv" to move the process file to a temporary folder. ...
4
votes
2answers
8k views

How to find all ways in which a Unix user account is locked

I occasionally find myself in a situation where an undermaintained system has an account that's been locked out. The problem is that there are a variety of ways in which an account can be locked out, ...
0
votes
1answer
96 views

How to create new logical volume by taking the space from an existing one

I am new to the world of logical volumes. I have installed a Linux (CentOS), and the installer created an 50 GB root logical volume (mounted at /), and a 475 GB home logical volume (mounted under ...
0
votes
2answers
62 views

Create a process whose ruser and user are different

Could anyone please help to find a way to create a process whose ruser and user are different? Currently, I used the line sudo su david -c ./test.pl, Then when I type the following line to get the ...
-2
votes
1answer
50 views

Read a file created by root user on unix system [closed]

I have a file created by root user on unix system and the file is assigned to a particular group.All I want to do is read that file by logging in as user which is not root and not a part that ...
1
vote
1answer
184 views

IPTables preventing remote connection to MySQL

My table rules: sudo iptables -L --line-numbers Chain INPUT (policy ACCEPT) num target prot opt source destination 1 ACCEPT tcp -- anywhere anywhere ...