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
5 views

Who was the original author of logrotate and what year was it written? [migrated]

The question started as an internal team debate. But we realized we couldn't find any information about when the original version of logrotate was authored and who wrote it. Any idas?
0
votes
1answer
27 views

Run a script in /etc/motd

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
34 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
37 views

sed replace unix path with variable that contain another unix path [on hold]

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/ ...
2
votes
2answers
44 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
23 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
37 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
31 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
votes
1answer
42 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.
0
votes
0answers
39 views

syntax error at line 10: `fi' unexpected [migrated]

CorrectInstance=DEV Instance_Name=DEV if [ $Instance_Name == $CorrectInstance ] then echo "Instance validated sucessfully" else echo "Instance validation failed. Script exited." exit fi ...
1
vote
1answer
25 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
17 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 ...
8
votes
1answer
230 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 - ...
2
votes
1answer
52 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
17 views

Gitlab custom hook issues

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: ...
0
votes
1answer
44 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 ...
0
votes
0answers
11 views

Signing PE files under Unix

After a signing PE file under Unix using osslsigncode, the file has digital signature but running it under Windows UAC shows that Publisher is unknown. Did anyone else have a similar problem? What is ...
-5
votes
0answers
32 views

How can i detect if the virtual CD ROM is attached or detached? [migrated]

I have a requirement where i need to check if a virtual CD ROM is attached if yes then read the values and apply it on to the application. But couldn't find a way to detect if a CD ROM is attached or ...
3
votes
1answer
71 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
36 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
40 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
50 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
54 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 ...
4
votes
1answer
92 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
24 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 ...
-5
votes
2answers
65 views

Determine UNIX version without using uname command? [closed]

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
43 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 ...
-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
22 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
73 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
104 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
43 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
215 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
17 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
45 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
54 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
65 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
78 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
73 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
63 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 ...
1
vote
0answers
90 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
85 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
54 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
64 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 ...
13
votes
5answers
814 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
53 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
45 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
47 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
24 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 . ...