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
180 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 ...
4
votes
4answers
10k 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
75 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
232 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
1k 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
667 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
55 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
70 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
37 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
265 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
449 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
455 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
574 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
370 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
81 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
56 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 ...
30
votes
7answers
17k 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 ...
0
votes
2answers
1k 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
376 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
575 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
362 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
14k 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
120 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
79 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
51 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
231 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 ...
1
vote
1answer
192 views

What's the best way to enforce a maximum size on a file directory?

I'd like to create directory with a maximum size of, let's say 500MB. The directory may contain any number and depth of subdirectories. When the maximum size limit of the directory is surpassed, I ...
1
vote
1answer
108 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 ...
0
votes
1answer
330 views

find and delete files of a certain type inside a tar.gz file

Is there a way to not only find but also delete any .gz files inside a .tar.gz file? I found this link but I wouldn't know how to modify it to make it able to delete found files.
2
votes
3answers
92 views

Detect file update from modification time

Is there a way to see how often a file is being updated? I mean I need to see if the modification time of a file is updated in a dynamic way (same as tail shows if the file is updated in a dynamic ...
0
votes
1answer
329 views

dsh (dancer's shell): is it possible to specify ports in config file?

Using dsh you can define the list of machines in ~/.dsh/machines.list in the form: <user>@<host> I'd like to have multiple hosts with different ssh ports, like this (I tried): ...
0
votes
0answers
134 views

Custom certificate/key pair does not work on OpenVPN clients

I have setup very basic OpenVPN network on Windows Server 2008. My clients are IP Cameras having Unix OS and built-in feature of openVPN connectivity. Initially I used a common client certificate/key ...
2
votes
3answers
2k views

Privileges for ifconfig

In order to do ifconfig in Linux and change the IP and VIP does it require root privileges? Or it is also possible to do this via a non-root account?
1
vote
1answer
67 views

Can I easily setup a relay on a unix server which only accepts connection on a single IP?

I have a situation where I've developed a website on Windows and come to find only a single UNIX server has been white listed for the back end server-to-server information exchange that needs to be ...
-1
votes
1answer
58 views

can someone help me pick out the particular field? [closed]

I have to generate a script that alerts me when disk space goes beyond a threshold. df -k command would fetch me the disc spaces involved in my working directory. For example,the output would be ...
-2
votes
1answer
47 views

Adding nologin ftp users [closed]

I have set up an FTP account on a linux machine with vsftpd for a single user. Now, how would I add a new user with parameters: base_folder username password
0
votes
1answer
54 views

Creating Reboot Procedure For Legacy Linux Server

I have a legacy Linux System which has some processes ( manually or automatically started ) running under different users. The server is not restarted since long time, and current staff doesn't know ...
0
votes
2answers
480 views

CentOS lost Root Access

For some reason I cannot access my root user via SSH. It displays the error on login: could not open session. However I happen to have another user account that is a normal non-sudo user. Is there ...
0
votes
1answer
841 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
124 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
73 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
281 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
319 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
1k 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
236 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
142 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
714 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
217 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
75 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
1k 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. ...