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

3
votes
2answers
57 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 ...
-1
votes
1answer
50 views

Deploying R on Work Server [closed]

We are looking to install R on our UNIX server at work, where we currently have SAS up and running. I know that R uses RAM to run, so are there any concerns with having R installed on an enterprise ...
0
votes
1answer
47 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
78 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 ...
0
votes
1answer
107 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
83 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 ...
2
votes
1answer
89 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
105 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 ...
0
votes
0answers
139 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 ...
1
vote
3answers
235 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 ...
1
vote
2answers
46 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 2>/...
0
votes
0answers
23 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 ?
0
votes
0answers
12 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 ...
3
votes
1answer
113 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 ...
-1
votes
1answer
41 views

Can a Node.JS program write to disk if it is ran as a user without root privileges?

I am about to set up a VPS with a user that lacks root privileges. I also have a Node.JS server that writes files to the disk. If I run this program/server without root privileges, will it still be ...
1
vote
1answer
38 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 ...
2
votes
1answer
93 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 ...
1
vote
1answer
358 views

How can I add an X-header to unix mailx?

I am attempting to add the x-header X-APP-VOLT: Yes to the header of my email with a .tar attachment. I only have access to usr/sbin/sendmail and mailx. I do not have root access so I can't download ...
0
votes
1answer
62 views

Apache Web Server Virtual Hosting

i'm making a apache web server with two virtual host, i have a DNS Server caching-only on my other centos 6 minimal VM, the IP Address of my Apache Server is 192.168.1.9, when i try to browse that IP ...
3
votes
1answer
54 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, ...
2
votes
1answer
426 views

unexpected end of file error in script file

#!/bin/sh # Host = ############### Port = #### email_id="##################" email_sub="######" # if ping -q -c 5 $Host >/dev/null then result_host="Successful" else result_host="Not ...
2
votes
0answers
109 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 ...
1
vote
1answer
122 views

Restoring AIX ufsdump on another Unix system

I've previously tried to restore from an AIX mksysb image (question here). I managed to find another set of nightly AIX backups that look to have been made with ufsdump: # mt -t /dev/rmt/1h rew # dd ...
4
votes
1answer
154 views

Can't execute files in particular directories

We are encountering a bizarre issue were non-root users are unable to execute any files (scripts or binaries) in certain directories. This transcript demonstrates the issue: [root@b6 /]# mkdir q [...
1
vote
0answers
31 views

Unix user and group server management solution [closed]

I am looking for a piece of software designed to manage users and groups across several linux platforms. So far all I have come up with is LDAP and a GUI called phpldapadmin. Both seem really dated. ...
1
vote
0answers
31 views

Sendmail is taking huge amount of CPU [duplicate]

My dedicated server is slowing down since 2 days. I checked the RPM and the CPU usage has gone from less than 10% to more than 50%. Rebooting the server didn't help. So, I tried top command: top - ...
0
votes
1answer
41 views

BNF diagram for sudo file

How can I generate a (BNF) railroad diagram for /etc/sudoers file? I know the sudoers manpage has Extended Backus-Naur Form informations. Also, there are some tools to generate such diagrams (see ...
0
votes
1answer
584 views

php-fpm does not work me exec or shell_exec

I have OpenBSD 5.6 and php-fpm, nginx. Is chrooted by default on /var/www I try:(test.php) <?php if(function_exists('exec')) { echo "exec is enabled"; }else{ // it's not echo "exec is ...
2
votes
2answers
190 views

AWK + Host lookup

Currently using the following line to get top 20 ips sorted by requests: grep 'GET /' /var/log/nginx/access.log | awk '{ print $1 }' | sort -n | uniq -c | sort -rn | head -20 Output: 575 66.249.*.*...
4
votes
3answers
57 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 ...
0
votes
1answer
2k views

How to convert DER formatted public key file to PEM form

I need to use the PEM formatted public key for some purpose, but not finding the command which can convert DER formatted public key to PEM formatted public key. The command I have used - openssl ...
0
votes
2answers
179 views

Run a script in /etc/motd [duplicate]

I'd like to run a python script when people log in to the server. I thought editing /etc/motd would be the best approach, but since it's only readable file, that won't work. I found pretty much ...
1
vote
1answer
108 views

What rsync options to use for the below mentioned scenario?

Greetings !!! This is regarding a specific requirement about rsync that we are trying to achieve. We have tried to achieve this by using various rsync options. However, we are encountering different ...
0
votes
3answers
2k views

sed replace unix path with variable that contain another unix path [closed]

I need to replace Unix path via sed with variable that contain another unix path in a bash script Example: another_unix_path=/another/unix/path sed -i 's/ \/some\/path\/file.txt/ '$another_unix_path'...
2
votes
2answers
225 views

error: no space left on device when saving file (but there is space)

I am implementing in ruby however when I want to save my work I get "Opening output file: no space left on device, /afs/edu/usr7/ael/p\ rivate/RUBY/inc.rb" When I checked if I got any space using ...
0
votes
1answer
797 views

sftp: get file by mtime

Objective: Connect to sftp server with very simple script using -b option, cd to directory and get file with the latest modified time or created time. I can connect and download *.csv but that may ...
0
votes
2answers
181 views

is it possible to combine files system from different servers and present it as one?

I have 3 physical servers (server01, server02 and server03) and local storage. I've created /app file system on all of three servers and mounted the storage there. I need to be able to combine /app ...
0
votes
0answers
64 views

cron job doesn't run under specific account

I have a crontab entry on my RHEL 5.4 system under the "oracle" account but it never seems to actually run. I have the following entry: * * * * * /home/oracle/blahblah.sh > /tmp/test.log 2>&...
2
votes
1answer
73 views

Create a Windows shortcut on Unix [duplicate]

I'm looking for a tool that will allow me to create Windows shortcuts on a Unix (BSD) machine. Can anyone point me to one? Thanks in advance.
1
vote
1answer
204 views

how to run nohup when prompted for password and/or input parameter

I typically use nohup like so: nohup ./myscript.sh 11111 > nohup.out & Where 11111 is an input parameter. In this case, the application is prompting for a password and I'm unable to use ...
0
votes
1answer
26 views

Not able to restrict the user to particular directory in unix

Below are the steps I performed: I created group sftponly. Added one user named sftpusers to that group. Added Subsystem sftp internal-sftp to file /etc/ssh/sshd_config Added this line to the file ...
7
votes
1answer
3k views

su: /bin/bash: Resource temporarily unavailable

Unable to switch user to postgres. Ulimit settings for postgres user is set with reasonable limits. We are not hitting max. No errors in /var/log/messages. Error: BETA -bash-4.2# sudo su - ...
3
votes
1answer
654 views

LUKS full disk encryption use keyfile instead of passphrase

I have enabled LUKS full disk encryption on an LVM volume while installing centos6.6, however it asks for a passphrase every time the OS is rebooted. I am now trying to use a key file according to ...
1
vote
0answers
174 views

Gitlab custom hook issues [closed]

I am implementing a custom gitlab hook. While some one pushes in master, I want to update a specific file. Then commit this change and push it to remote origin. The hook looks like below: clone_repo()...
0
votes
0answers
103 views

VPS restarted for no reason. Why?

I have a VPS that runs a Java server, a redis server and a PostgreSQL server. Everything is running well but last night my server "crashed" at 3:15:50 AM. At least that's what I thought. I looked at ...
3
votes
1answer
199 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 ...
1
vote
0answers
138 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 unmap(...
0
votes
1answer
56 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 ...
1
vote
1answer
60 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
131 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 cn=admin,$...