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
3answers
1k views

sudo: no tty present and no askpass program specified

I am trying to add some file in a remote server by BigTuna (continuous integration tool), and it give me a error message. Any one have any idea how can I add that file to server? sudo: no tty ...
7
votes
1answer
1k views

using temporary files vs pipes advantages and disadvantages

Say I have a file named jobs.csv and I would like to get the top 50k jobs done by Foo I can either do: # cat jobs.csv | sort -u | head -n 50000 > /tmp/jobs.csv # cat /tmp/jobs.csv | while read ...
6
votes
4answers
2k views

Automatically-reconnecting TCP tunnel

I have an unreliable network connection between two machines: sometimes active TCP connections get dropped for reasons beyond my control. I want to establish a reliable TCP connection between the two ...
4
votes
2answers
201 views

How to trigger cross-platform jobs between Windows and Unix

I have an application which has components on Windows and Unix. I need to run overnight jobs which initiate tasks/jobs on both environment. These need to be sequenced so I cannot simple use Cron / ...
1
vote
0answers
19 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 ...
1
vote
4answers
3k views

imuxsock messages in syslog and system becomes unresponsive

I am getting such messages in syslog. rsyslogd-2177: imuxsock lost 21869 messages from pid 3418 due to rate-limiting rsyslogd-2177: imuxsock begins to drop messages from pid 3427 due to rate-limiting ...
74
votes
9answers
103k views

How do I get current Unix time in milliseconds using bash?

How do I get the current Unix time in milliseconds (i.e number of milliseconds since Unix epoch January 1 1970)?
-2
votes
0answers
24 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?
6
votes
3answers
6k views

How can I rename an unix user?

I have a user named hedgehog and I want him to be named squirrel, but I don't want to change his numeric user ID. How can I accomplish this?
2
votes
1answer
4k 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 ...
1
vote
1answer
27 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 ...
4
votes
2answers
2k views

Is “sudo su -” considered a bad practice?

Background I know the difference between su -, sudo su -, and sudo <command>: su - - switches user to root, requires the root password sudo su - - switches user to root, requires only the ...
8
votes
4answers
16k views

In unix/linux, what is the proc directory for? why does it exists?

In unix/linux, what is the proc directory for? why does it exists? What can I use it for (if not just for the system)?
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
1k 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 ...
4
votes
5answers
10k views

Timeout ssh sessions after inactivity?

PCI-DSS 3.0 requirement 8.1.8 states: "If a session has been idle for more than 15 minutes, require the user to re-authenticate to re-activate the terminal or session." Same was in PCI-DSS 2.0 ...
-3
votes
3answers
740 views

How to query specific DHCP server

is there a way how to query a specific DHCP server for an IP address? Something similar to dig @_IP_ADDRESS_ _server_name dig @8.8.8.8 apple.com Thanks
0
votes
1answer
3k views

How do you handle log rolling (or truncation) for unix services that don't handle it themselves?

In my particular case it's the mysql general log and slow query log; neither is critical to operations, just there for troubleshooting if need be, and mysql doesn't have a mechanism for rolling or ...
2
votes
3answers
131 views

Best practices recovering from a failed UNIX package upgrade?

When upgrading or installing a package through a package manager like Aptitude, what do you do to ensure everything works afterwards? If the package manager would break something after running, do ...
2
votes
2answers
177 views

HFS theory: What else is there to a system other than a root filesystem?

I'm grokking the HFS linux standard documentation, and I can't move beyond this concept. The concept I don't get can be demonstrated by the following quote: The contents of the root filesystem ...
0
votes
0answers
29 views

SSHFP records on Windows DNS Server

How can I add SSHFP records (or any arbitrary records) on Windows DNS Server? I'm running a DC with Windows 2012 R2 and would like to put the SSH keys of the Unix servers on the DNS.
1
vote
1answer
798 views

Which filename encoding should I use to be compatible with Windows, Mac and Linux

I'm using a Linux server as fileshare. These files are accessed by Windows computers with a Samba server, accessed by Macs with a netatalk server (afpd) and also trough ssh an sftp for Windows, Macs ...
0
votes
7answers
961 views

vi syntax to comment out non-commented lines (cron)

Anyone know if it's possible in vi to replace only uncommented/non-blank lines with comments? If I want to replace a commented line with something I know I can use :%s/^#/##foo##/g -- but I am ...
35
votes
5answers
38k views

When does /tmp get cleared?

I'm taking to putting various files in /tmp, and I wondered what the rules on deleting them are? I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu ...
0
votes
1answer
79 views

Can you use LDAP and PAM to implement a restricted shell?

Can you use LDAP and PAM to implement a restricted shell and control those users via groups on the LDAP DC? I would like to do this for several Red Hat, Solaris and Ubuntu servers? Thanks!
0
votes
2answers
7k views

How to determine when a user's account will be locked in HP-UX

I'm trying to figure out how to determine when user accounts on an HP-UX server will be locked. I would need this for every user on the server. On other kinds of UNIX, this kind of this is typically ...
1
vote
1answer
63 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
1answer
13 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] ...
-2
votes
1answer
34 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
19 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)
0
votes
0answers
20 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
60 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
10 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
23 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
40 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 ...
23
votes
23answers
38k 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)
4
votes
1answer
2k views

Using a shell script to check if rsync made any changes

I've got a bash script that rsync's two directories. Sometimes there's a change, odds are there's nothing. I want to run a command only if rsync actually made a change (add/update a file). ...
0
votes
1answer
246 views

How to find out what is installed on a server [closed]

I'm an undergrad student and we have special access to a server. The server is a unix server (don't know the OS or anything.. is there a way to find out? ). we also get a website associated with the ...
1
vote
0answers
43 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 | ...
10
votes
2answers
9k views

filebucket configuration in Puppet

How do you configure and work with your Puppet filebucket? I'd like to: Store file bucket data on a single server Be able to audit/parse/prune the file bucket when necessary Ensure that ...
2
votes
0answers
283 views

Solaris 9: Degraded mirror unmanageable with raidctl after drive replacement

We have a pair of Sunfire v20z's (WITH LSI MPT raid) that have each had one drive in their mirrors die. bash-2.05# cat /etc/release Solaris 9 4/04 s9x_u6wos_08a x86 ...
0
votes
0answers
46 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 ...
29
votes
11answers
1k views

Best practices for keeping UNIX packages up to date?

How do you keep your servers up to date? When using a package manager like Aptitude, do you keep an upgrade / install history, and if so, how do you do it? When installing or upgrading packages on ...
0
votes
0answers
4 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 ...
5
votes
1answer
806 views

Are ulimits inherited by the shell, by the user, or a combination?

When a process spawns a subshell, how is the ulimit inherited? Is it by user, by shell, or a combination? Specifically, this was found in the context of HP Server Automation jobs failing on some ...
1
vote
3answers
899 views

I can run a script locally, but cannot do “ssh HOSTNAME /path/to/script.sh”

I have a linux server, and a linux desktop. I have written the following simple script to dump the database of a django web application: #! /bin/bash set -o errexit cd $(dirname $0) . ...
30
votes
4answers
28k views

How to convert line breaks in a text file between the Windows and Unix/Linux formats?

How do I convert line breaks in a text file between the Windows and Unix/Linux formats? I have a *nix environment, but that I need to import and export data with the Windows-style line breaks. I ...
2
votes
3answers
540 views

How can order of IP addresses issued be controlled?

Every home router I've setup/used issues addresses from low to high. However, dhcpd from the Internet Systems Consortium seems to issue addresses in reverse order - ie, high to low. Is there a way ...
-1
votes
1answer
51 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
1answer
445 views

Determining End of Line Delimiter

How do you verify what the delimiter for a file is? I'm using eclipse to edit a script file on my windows system that I use to deploy on my unix server. The script specifies file names and I'd like ...