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
0answers
3 views

WUFTP: sleeping: fcntl lock of pid file failed: Permission denied

Our main and largest FTP server, which uses wuftpd as FTP server software is facing constant drops of connection. It has been running for years now, all of suddenly, is presenting this problem. ...
-3
votes
0answers
26 views

Networking Aix and LINUX [on hold]

I can't able to ping servers on different network . But for only one servers it happens. I can able to ping all other servers except one . Could you please tell me why it happens ? What are the thing ...
2
votes
2answers
29 views

Can idle NFS mounts on several clients impact performance

We had a NFS server at work which was working with slight lag. However as more mount points were getting created at several clients(serviced by the same server) we noticed the performance coming to a ...
0
votes
1answer
24 views

Postgres /root": Permission denied

why on ubuntu 14.10 every time that i try to start the postgres on: sudo -p 'sudo password: ' -u postgres /usr/lib/postgresql/9.4/bin/initdb -D /mnt/postgresql/9.4/data show this: could not ...
20
votes
2answers
16k views

SSL Certificate Location on UNIX/Linux

Is there any standard or convention for where SSL certificates and associated private keys should go on the UNIX/Linux filesystem? Thanks.
0
votes
2answers
35 views

Linux's /etc/init.d - symlink, hard link, or actual file?

I have a Debian and an RPM package that requires a start/stop script to be added to the /etc/init.d directory. Recently, I was informed by a remote developer that "those in the know" know that "best ...
0
votes
0answers
14 views

NAT with IPFW in FreeBSD without divert

I'm using IPFW and trying to do NAT on my LAN (FreeBSD 11). I'm following https://forums.freebsd.org/threads/ipfw-nat-setting.46929/ but I can't get it working. The FreeBSD manual uses divert which is ...
6
votes
8answers
5k 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?
3
votes
1answer
2k 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 ...
2
votes
3answers
1k 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 ...
2
votes
1answer
7k views

How do you configure X11 forwarding over SSH on AIX?

Here is what I've tried. I've edited /etc/ssh/sshd_config on the remote AIX system X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes as well as set $DISPLAY DISPLAY=localhost:10.0 export ...
62
votes
1answer
32k views

How do I change my private key passphrase?

I have an existing public/private key pair, the private key is password protected, the encryption may be either RSA or DSA. These keys are the kind you generate with ssh-keygen and generally store ...
0
votes
0answers
7 views

disable simple paged results control support

Trying to make my client, originally developed for OpenLDAP, also compatible with Oracle DSEE. Oracle DSEE is missing support for simple paged results, which the client code uses. Yet, ODSEE supports ...
0
votes
0answers
10 views

PJSUA playing wave file on state “EARLY”

I'm trying to create a system, where a wave file is generated and then some of our employees are called by pjsua and the wave file is played to them. Everything seems fine, I am running the following ...
150
votes
4answers
55k views

What is the difference between double and single square brackets in bash?

I just wondered what exactly the difference between [[ $STRING != foo ]] and [ $STRING != foo ] is, apart from that the latter is posix-compliant, found in sh and the former is an extension ...
3
votes
2answers
726 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 ...
73
votes
7answers
102k views

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in ...
4
votes
3answers
28 views

Extracting the date of the latest message from an mbox file

How would I go about extracting the "Date:" header for the latest received message in an mbox file? Note that it's not simply an issue of grep'ing for the latest occurrence of "^Date:", since it ...
1
vote
2answers
34 views

Dangers of closing file descriptors

In the Stack Overflow question Check if a program exists from a bash script the accepted answer notes that closing stderr is dangerous: (minor side-note: some will suggest 2>&- is the same ...
0
votes
1answer
137 views

How to lock a user into a directory (not SSH)

I have regular users who are not SSH'd into a machine but are accessing the machine directly. How can I lock them into their home directory or any directory? At the moment they can successfully run rm ...
1
vote
1answer
163 views

Setting Samba passwords using Chef without storing plain text passwords in data bags

We have a server that is configured using Chef. Currently, the way that chef manages the passwords is by simply copying down the samba tdb databases and updating the shadow hashes of each user. ...
3
votes
1answer
19 views

Should I rather explicitly run programs in foreground (instead as a daemon), or `expect fork` when configuring upstart daemons?

Many programs allow to be run either in daemon mode (which is usually the default), or explicitly run it in foreground with a flag such as -f. Now when configuring upstart to run programs like this, ...
7
votes
4answers
10k views

What's a proper way of checking if a PID is running?

I have a .pid file, and I need to check if the process is running. So far I found two options kill -0 `cat something.pid` which prints out an error if the pid isn't running. I know this can be ...
0
votes
0answers
3 views

How to free a port on OS X when lsof(1) reports that it is not in use [migrated]

I am a developer working in OS X on Eclipse. A bug I have been working to fix in a web application results in some very strange behavior when resetting an instance of Tomcat, resulting in the ...
8
votes
8answers
13k views

Unix shell: easy way to get IP from hostname

What is the easiest way to get the IP from a hostname? I was thinking about trying a ping and parse it from the output. However, that doesn't seem very nice and will probably not work the same way on ...
1
vote
1answer
26 views

How can I automate the retrieval and usage of passwords from within a script?

We have automated scripts that access certain devices and are getting the passwords for the devices from a root-read-only plain-text file. Is there some kind of architecture we can use so that we can ...
0
votes
1answer
23 views

CPIO ulimit reached error

I have been googling this without much luck. I hope someone can help here. We have a customer running SCO Unixware 7 machine. This machine does a daily backup to tape. These have stopped running. ...
1
vote
2answers
22 views

How to prevent rsync from chown'ing remote users files

I'm doing rsync /local/path/to/src user1@remote:/path/to/dest. dest belongs to user2@remote. How do I keep rsync from chown'ing dest to user1 after syncing? Please note that I have already tried ...
19
votes
5answers
21k views

How to find other end of unix socket connection?

I have a process (dbus-daemon) which has many open connection over UNIX sockets. One of these connections is fd #36: =$ ps uw -p 23284 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
0
votes
1answer
30 views

Hostname changes history in unix systems

I've been trying to find a command or file that contains all the previous hostnames a Linux/Solaris machine has had, but I can't seem to find any way to do this. The question is really about the ...
0
votes
1answer
38 views

Using PowerCLI Versus using asp.net WMI to scan and retrive informaion about ESX hosts

I want to scan and view information about ESX hosts which have "ESXi 5.0 Update 1" as their OS inside my asp.net web application. mainly to be able to retrieve the ESX specification and all the vms ...
93
votes
14answers
80k views

In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?

I need to test sub-domains on my localhost. How can I effectively have this result of adding *.localhost.com to my /etc/hosts/ file? If it's not possible, how do I work around this problem? I need ...
2
votes
1answer
61 views

logrotate compression parameters

I've been using cstream for a while for many things, for example to reduce the impact that mysqldump has on drives. However, I have always done so by calling the binary directly from a script or ...
3
votes
2answers
65 views

Postfix virtual domain mapping for a Linux username containing @

I could not make Postfix work with Linux usernames containing @ Postfix has virtual domain map, in /etc/postfix/virtual It looks something like this: domain.ru domain.ru ...
23
votes
6answers
45k views

How do I determine the block size of an ext3 partition on Linux?

How do I determine the block size of an ext3 partition on Linux?
2
votes
0answers
42 views

what is the the difference between all the NSS caching daemons? [closed]

I would like to see a comparison between nscd (part of glibc), unscd, nsscache, sssd and nss-pam-ldapd. Those are all the alternatives to nscd that i could find in Debian... Our setup is that we ...
27
votes
24answers
44k views

Finding the Public IP address in a shell script

I can find my IP address using ifconfig or hostname -i command. But how do I find my Public IP? (I have a static public IP but I want to find it out using unix command)
0
votes
0answers
46 views

red5 server installation could not resolve dependencies issue

I am trying to install Red5 server on my dedicated VPS server. My server is Ubuntu 12.04. I'm doing my installation over SSH in Terminal on Mac. I have Java 7 JDK and JRE installed. I am doing ...
5
votes
5answers
2k views

In UNIX, is it possible to password protect a directory?

Is there a way to password protect a directory in UNIX? Something like: ~$ cd dir ~$ Password: ~/dir$
0
votes
3answers
83 views

how to find proces which is pinging localhost

How can you find the process issuing ping to localhost? While it is not script, where the ping command can be simply grep from process table. I have used wireshark, but it is of no help to find out ...
8
votes
4answers
6k views

How big (in bits) is a Unix UID?

I understand that unix user IDs (UIDs) are usually 16 or 32 bit unsigned integers but how can I find out for any given system (in a shell)?
1
vote
1answer
89 views

WHM - add another user account via SSH

I'm working for a crowd that have 'misplaced' the password for their WHM root login but I'm able to SSH to the server using the key file they've provided. I CAN'T change the password for root as they ...
4
votes
4answers
23k 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
2k views

What should the permissions be on for PostgreSQL /data files?

I installed Postgres 9.3 from the osX binary. When I attempted to restart using pg_ctl restart, I received the following error: $ pg_ctl restart pg_ctl: could not open PID file ...
0
votes
0answers
8 views

Oracle external authentication from application server via sqlplus client

can we perform the external authentication (sqlplus / ) via sqlplus client from unix application server in oracle 10g or we must login to oracle database server to perform this ?
4
votes
1answer
20k views

Apache: Configure “LogLevel debug” for certain modules only?

I want to debug some authentication & authorization issues on my webserver, particularly with mod_authnz_ldap and other mod_auth* modules. So I set LogLevel debug in the Apache configuration, ...
0
votes
1answer
195 views

path as variable

BACKUP_SERVER_NAME="name" BACKUP_SERVER_USERNAME="user" COPY_FILE_TO_WINDOWS="/cygdrive/c/unix_test_copy" scp -r /$1/ $PRIMARY_SERVER_USERNAME@$PRIMARY_SERVER_NAME:$COPY_FILE_TO_WINDOWS How can I ...
0
votes
0answers
11 views

current disk space status from multiple unix server [duplicate]

I am trying to get the details of disk space from around 100 unix server. All servers required different credential to access. This is the script I have found. for i in <server list> do echo ...
2
votes
1answer
42 views

How update passwords of user's already existing in ldap? [closed]

I want to update passwords [user's already existing in ldap] of the user by importing data from /etc/passwd and /etc/shadow. How to achieve this? I will give the overview of my setup. Nodes user ...
3
votes
1answer
75 views

Firewall: allow all traffic from sources authenticated via. an open ssh connection

I'm looking for a way to avoid the editing of the firewall rules all the time on test and dev servers. I don't want to open up all ports. So I thought maybe there is a way to allow all traffic from ...