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

2
votes
1answer
17 views

How to import custom korn shell script into Nagios monitor

Our company is consolidating our monitoring solutions (WUG, Cacti, Zabbix) to Nagios. I have used Zabbix for years, and am trying to understand how to get Nagios to report on applications that I have ...
0
votes
0answers
14 views

ls hangs on NAS mount point

Frequently we are running into this problem. our NAS mount points works perfectly and all of sudden it hangs. when we go and do ls hangs the terminal. strace ls /srv/git hangs here ...
0
votes
1answer
37 views

Server ran out of HD room

A rogue script brought my centOS-based server to its knees and resulted in 0 bytes of HD room left. I since fixed the issue and everything seems to be running normally. So my question is, what ...
0
votes
1answer
47 views

In /etc/hosts is there something special about the first hostname for any given line?

I know that the first one is said to be canonical, but I don't fully understand the practical implications. This question was triggered by the man page for hostname -f, specifically when it says: ...
3
votes
1answer
32 views

OpenLDAP advanced ACL configuration

I have a multiple DITs in my OpenLDAP server. I made user cn=config the root so that cn=config has root access to all DITs (each DIT). In addition, there is a per-DIT administrator IDed as ...
-1
votes
0answers
77 views

Server hacked; how? [duplicate]

It looks as if our CentOS LAMP server has been compromised today. It appears malicious files have been uploaded into the webroot and requests are being made to upload these files to other servers. I ...
4
votes
1answer
75 views

cp -p will preserve times for some files but not all?

I have a source directory on a machine with a bunch of files, all with the same permissions, that I want to copy to another directory, that is mounted via SMB. [tmark@dexter JR09141045 ...
1
vote
0answers
22 views

How do I configure nginx to have a server block pointing towards a django app?

Suppose I have an nginx server, with Django apps set up as "/djangoapps/exampleapp1/" and "/djangoapps/exampleapp2/". Suppose I just registered a domain "www.exampleapp2.com". How can I point ...
-4
votes
2answers
46 views

Determine UNIX version without using uname command?

Is it possible to which flavor of UNIX a machine is running (AIX, HP-UX, etc.) without using uname command? If so, what other method/command is used to determine this?
1
vote
1answer
29 views

How to strip TCP headers from tcpdump (with hexadecimal output of non-printable data)

tcpdump don't know how to strip TCP headers from packed data. tcpflow print's only packet data, nice, but it supports only ASCII characters, no hexadecimal output possible. Did I overlooked some ...
0
votes
0answers
10 views

How to correct malfunctioning Terminal in Mac [migrated]

Terminal commands like ls, sudo, cp, mv, rm are not recognised in my Mac terminal. I face this problem after I edited the .bash_profile file. (I installed Tomcat and added PATH and CATALINA_HOME ...
-2
votes
1answer
37 views

Install SSH key in UNIX server

I'm trying to connect to a UNIX server from a Windows server, through PSFTP. I am using this command in CMD: psftp.exe -i %userprofile%\.ssh\certificate.ppk username@unixserver The problem is that ...
0
votes
1answer
14 views

SFTP and syslog-ng custom logging format

I have modified sshd_config and syslog-ng configs to log sftp connections into separate files. Now I would like to create custom logging like: [date] [source_ip] has downloaded the [filename] [size] ...
0
votes
1answer
26 views

Why am I getting a 'Memory fault(coredump)' when I start the oracle listener?

This server (AIX ver 6) recently went out due a prolonged power outage. When I try to start the oracle listener I get this $ lsnrctl start Memory fault(coredump)
1
vote
1answer
74 views

Squid Segmentation Fault?

I'm currently fixing an issue with one of our production servers. The issue is related to squid not able to run properly. When I try to run service squid start/stop, it throws an error: 2015/03/11 ...
0
votes
0answers
25 views

Cannot start mysql on vagrant CentOS machine

I am getting the following problem doing "vagrant up" ==> default: [2015-03-10T16:31:03-04:00] INFO: template[default :start /etc/init.d/mysql-default] mode changed to 755 ==> default: ...
0
votes
2answers
87 views

How to let PHP connect to database by using UNIX socket (Joomla)

I'd like to have my PHP applications such as Joomla make use of the UNIX socket to connect to the local mysql database. I've already configured the php.ini with: mysqli.default_socket = ...
0
votes
0answers
11 views

insufficient replicas Error in logical domains but primary domain is fine in solaris 10

In my primary box has 5 logical domains in that primary box status and one logical domain status is good but in that remaining 4 logical domain status is unavailable. We didn't change any hard disk ...
1
vote
1answer
31 views

Purpose of the noaccess user in UNIX?

Can someone point me to a document or explain to me the utility or application of the noaccess user? It would seem interchangeable with any other user I might create. What is it's purpose of being ...
1
vote
3answers
46 views

Erase old dump tape in Tru64 UNIX

We backup our OLD Tru64 UNIX system (Digital UNIX 4.0F) to DDS3 tapes using the dump command. We want to recycle those tapes to make future backups on when they get too old. I've found the mt erase ...
1
vote
0answers
49 views

VLAN configuration on HP J9279A

I've tried to set up separate VLAN for lab environment on one of my HP switches (J9279A/J9280A). Network schema: WAN | GW | ...
0
votes
0answers
53 views

php55-session fails to initialize, freebsd / ports

I have installed the extensions, base library and php55-session via ports https://forums.freebsd.org/threads/no-session-support-in-default-php-installation.12565/ but a basic session fails to ...
-1
votes
1answer
53 views

date and sleep during leap second [closed]

Did you ever watch what happens with a sleep during a leap second or what date will show us? Most UNIX systems can handle a sleep with a fraction of a second and the date command can display ...
0
votes
0answers
39 views

Openfire how to fix? Error creating secured outgoing session to remote server

I have a OpenBSD server 5.6, in this server install Openfire 3.9.3. But I am getting the following error: error.log 2015.02.16 08:59:44 org.jivesoftware.openfire.session.LocalOutgoingServerSession ...
0
votes
0answers
59 views

Environment variables using AWS CodeDeploy

I have a web application that utilizes environment variables for some of its configuration (DB credentials, API keys, etc). I'm currently using Elastic Beanstalk for deployment and can easily set ...
0
votes
1answer
53 views

catch bash script output from expect, expect hangs

I currently use expect to pass password to rsync to copy files across unix servers test.sh ./expect.sh $password rsync -azvr $username@$host:$file ./$dir expect.sh #!/usr/bin/expect -f ...
0
votes
0answers
5 views

how to add server column to adsm_k event query

My current adsm_k query for server group opsfile is "opsfile:q ev * prod_ begindate=-1 enddate=today node= exceptionsonly=yes" it returns the scheduled start, actual start, schedule name, node ...
1
vote
2answers
50 views

server maintenance to prevent fsck failures

once in a while after a reboot I found fsck would fail on OS disk and booting becoming impossible on many of my servers. and then I had to reinstall OS and do data migration from the failed OS disk. ...
0
votes
0answers
43 views

Writing to Unix Domain Socket from rsyslog

I want to write output messages from rsyslog to a Unix Domain Socket. I want to do this so that I can read the messages from that socket using my script and parse log messages further. I try to use ...
11
votes
4answers
781 views

Copy file permissions, but not files in Unix

(From : http://stackoverflow.com/questions/15245144/copy-file-permissions-but-not-files, closed because off-topic) I have two copies of the same directory tree. They almost have the same files in ...
0
votes
2answers
40 views

How to find out the serial number of a reverse zone in bind?

Is there a way to extract the actual serial number in effect for a reverse zone from a bind9 server?. I can find out the domain's serial, but have no idea how to do the same for the reverse zones. ...
0
votes
0answers
33 views

Apache2 and LD_PRELOAD libraries wrapping

I'm trying to load a custom library on an Apache2 web server. On Unix systems, I know it's possible to do it using the LD_PRELOAD variable. I've configured /etc/apache2/envvars file to preload my ...
0
votes
0answers
41 views

Apache and users write permission issues

On my web server I have two distinct folders, /home/dev/ and /home/prod/, each containing several websites. As you can guess, each directory is owned by the corresponding user, devand prod. The ...
0
votes
0answers
19 views

Error Sending £ symbol through telnet message

I use the following command to send SMS messages through SMS Adapters: telnet localhost ${PORT} <<-EOF helo x MAIL FROM: Test RCPT TO: 447999999999 DATA Test £1234 . ...
0
votes
0answers
16 views

Users migration from UNIX to NIS

I just set up a NIS server and I have 8 clients machines. Each of these machines was used by some users before setting up NIS. I want to migrate their account to the NIS server. The problem is that ...
1
vote
0answers
44 views

Issue with port range of passive FTPS using VSFTPD

First of all, I am aware that there are many similar questions to this one out there, however the common solution to those problems is the source of my problem; therefore I am asking my own question. ...
1
vote
1answer
177 views

Prevent rsync from deleting excluded directories

I'm using rsync through Ansible's synchronize-module with the following task definition: synchronize: src='{{ local_app_path }}/.' dest='{{ remote_app_path }}/' perms=no owner=yes ...
0
votes
5answers
91 views

Rsync to a backup server resulted in additional space taken

I ran an rsync to backup one of our production servers. I put the production server in readonly mode so that no additional data could be added or modified. I then did a recursive rsync with archive ...
0
votes
0answers
20 views

A tool to get disk activity statistics from strace? [duplicate]

So, with strace we can monitor the "file" activity, like the "open", "read" and "write" operations, but is there a tool which will calculate a sum of read and write operations grouping it by the file, ...
0
votes
0answers
82 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 ...
0
votes
0answers
563 views

WSAECONNREFUSED SAP Gui unable to connect on SAP server on hp ux - inetd.conf file reference

I have a sap server installed on HP-UX vm, up and running. when I try to connect to the server from SAP client GUI installed on windows machine I get the following error --------------------------- ...
0
votes
0answers
31 views

Custom schema for OpenLDAP 2.4

I am new to OpenLDAP administration. My aim is to learn how to create custom schemas, and customize "my" directory server this way. I tried to add one optional attribute - ipPhone. Made a schema ...
0
votes
1answer
39 views

Check how much time has elapsed for Cron job and send email

There is a cron job that is set which runs throughout most of the day, sometimes the job gets stuck and I would like to set a time or check on it which let's me know if it has been stuck for more than ...
1
vote
2answers
45 views

What is the difference between truss -D and truss -E?

I am currently analyzing a command on Solaris that reads from a file and has very low performance. The truss -D commands shows me read system calls taking up to 0.03 seconds, but when I use truss -E, ...
1
vote
1answer
469 views

Ubuntu Server 14.04LTS Swappiness for server with 16GB memory

(don't worry I'm not asking what my setting should be, asking for the theory behind some conflicting advice I've read) My application is one that is lightweight and not under much load, but needs to ...
-2
votes
2answers
38 views

assign variable in puppet

I am newbie to puppet, I have code like below in unix log_exts=$(vgdisplay /dev/cassandra|grep Free|awk '{print $5}') if lvcreate -n lv_cas -l ${log_exts} /dev/cassandra then mkfs -v -t ext4 ...
0
votes
1answer
27 views

Exim need to send mail off server

Never needed to set up a mail server before. I've got exim up and running perfectly fine. When I send an email using command line to my.email@gmail.com it works wonderfully, arrives from ...
1
vote
2answers
2k views

Expect script error send: Spawn id exp4 not open while executing

Update: Working code added here for others CREDITS to : http://serverfault.com/users/30957/glenn-jackman @Glenn I'm sorry! just apologizing and I mean it! Sorry Glenn your code need few changes ...
0
votes
1answer
78 views

Pipe multiple files into one tar gz

I'd like to call mysqldump to create multiple backup files and then archive them in one tar.gz. I am following this tutorial on mysqldump part: ...
3
votes
3answers
276 views

How to pass command output as several arguments to another command

I have a command that produce a output like this: $./command1 word1 word2 word3 I want to pass this three words as arguments to another command like this: $ command2 word1 word2 word3 How to pass ...