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

How to let chef listen on multiple IPs

I'm currently playing with chef to evaluate whether or not such a configuration tool might help us in our *nix-based environment. For the last few days I'm struggling with one problem I can't find a ...
0
votes
0answers
14 views

Control WIN from Unix

I'm struggling right with taking control of my Windows7 VM, from a Unix VM. Let me explain.. I need to copy some resources from UNIX to WIN. One of these is a bat script to launch. So, I want to ...
2
votes
0answers
31 views

ssh -t -t sudo displays back my password

My problem is about executing sudo over SSH. I have tried various things, but non works. Here is my script: ssh my-host /bin/bash << EOF # some commands... sudo -u my-user -s -- << EOFF ...
0
votes
1answer
44 views

Check number of connections to webserver port 80 AND 443

As the title says how would one check the number of open connections to a webserver on port 80 and 443? I'm currently using this oneliner to get the number of open connections per ipaddress from port ...
0
votes
0answers
28 views

wget FTP directories with more than 10k folders

I have an issue trying to move servers. I have a couple of folders with 300k subdirectories and wget will only copy the first 10000 (the same number that Filezilla is capable of showing). Splitting ...
0
votes
0answers
39 views

Understanding CPU load vs CPU Time/Percentage

Been reading similar threads, seem to have grasp the idea but can't really put it into practical usage. Can I confirm on the following understanding q1) CPU time - CPU time spent in execution for a ...
-2
votes
0answers
93 views

Run your own python script in background [migrated]

I have my own python library which gets installed wide when I do this python setup.py install inside python project directory, it copies the executable file in bin also, but basically I am doing ...
1
vote
1answer
21 views

Why is my awk sub command failing?

When I run df -hl | grep '/dev/disk1' | awk '{sub(/%/, \"\");print $5}' I'm getting the following error: awk: syntax error at source line 1 context is {sub(/%/, >>> \ <<< "\...
0
votes
0answers
24 views

dentunusd and inode-nr values growing

One of my linux server experienced Out of system memory and had to restart. When I checked sar -v , I have seen a gradual increase in dentunusd and inode-nr values over a period of time. The values ...
0
votes
1answer
44 views

Changing /etc/passwd in SSH User

I've got an Amazon EC2 instance running. It's an Ubuntu 14.04. I connect using Putty SSH. I use the key/certificates I got when I created the instance to authenticate my connection. This is all done ...
-1
votes
1answer
87 views

Removing 1 line of code from all php files

I can see same code under all php files. Starting from <?php $rfghoh = '*f%)sfxpmpusut)tpqssu6 And end $rfghoh=$yuoopi-1; ?> I am just looking for script using which only first line of ...
0
votes
2answers
37 views

SERVERFAIL error while doing nslookup on server itself. FreeBSD

I am using FreeBSD to setup a DNS server. I have install BIND and setup everything in resolv.conf and named.conf file. This is the ip address of my DNS server 192.168.10.100. in resolv.conf I added ...
2
votes
2answers
100 views

Create a file only if the directory exists?

I am trying to write the module where it creates the file if directory exists or else it shouldn't do anything. class puppetmodule{ exec { 'chk_dir_exists': command => 'test -d /usr/dir1', ...
1
vote
0answers
70 views

Kernel fails to assign memory in any Linux Distro

I have a motherboard: X11SBA-LN4F/F. After install CentOS, i have error in log: May 2 21:47:48 ll-226 kernel: pci 0000:04:04.0: BAR 14: failed to assign [mem size 0x00200000] May 2 21:47:48 ll-226 ...
0
votes
0answers
8 views

Setting samba along with quota

We are trying to project quota for folder share managed by samba. We are using following permission for folder we want to share, User:nobody Group:perProjectGroup Mode drwxrwsr-x Please note ...
1
vote
0answers
37 views

How can I decide which unix or unix-like OS will give me the most open files permissible? [closed]

I am looking to deploy a service that is capable of serving more than 65535 simultaneous connections on one host. 65535 seems to be the practical limit of most common linux distributions. Are there ...
-1
votes
1answer
25 views

BSD Connection 'Drops'

I've been setting up a BSD server and every thing went fine. It still works fine except on my own IP address I cannot connect to my webserver at all and with SSH I can login but then as soon as I type ...
0
votes
0answers
44 views

Wine + PsExec fail with Path not found

I'm trying to use PsExec with Unix distro. I use Wine with the command: wine PsExec.exe \\192.168.70.151 -u admin -p Pa55w@rd= dir Tried too: wine PsExec.exe \\\\\\\\192.168.70.151 -u admin -p ...
0
votes
0answers
24 views

Apache James: eval: /opt/james/bin/./wrapper-linux-x86-32: not found

I'm setting up a James server for the first time. I'm using 3.0-beta4. After I copied the binaries to /opt, I tried running it: neonorb@neonorb /opt/james/bin % ./james start Starting Apache James ...
0
votes
0answers
18 views

FreeNAS ACLs - ID mismatch, no AD

I am currently experiencing a strange behavior with my FreeNAS Setup, I assume it has been since my initial config. Even though I have a Windows 2008 Server, I do not use it for authentication with my ...
-1
votes
1answer
60 views

SSD Server with trim enabled

I have a Windows Server (but I think this problem may apply to any UNIX server too) running using SSD. I have Kingston UV300 SSD and they allow TRIM. I also checked and my Windows is running with TRIM ...
1
vote
1answer
124 views

Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock

I recently moved my mysql datadir from /var/lib/mysql to a new directory /home/mysql mounted on a new hard drive. For neatness sake I thought it'd be nice to place the tmpdir and socket on this new ...
0
votes
0answers
106 views

Ssh into a remote machine and execute a script using “expect”

I have a script named serverbounce.sh on server A. However, my Hudson home is on a server B. I want to execute my script serverbounce.sh on server A itself.For this performed the following: a. Created ...
0
votes
2answers
186 views

how to put files in ram

I have a server with 30 Gb ram and i have a script that put a (.ts) file (10mb) in /var/www/html/tv and script replace (.ts) file every 2 mintues. so my question is: can i mount this folder /var/...
0
votes
1answer
64 views

Installing a software in multiple linux machines using shell scripting in one machine

I will login to one Linux instance using ssh - putty and my goal is to install a software (for ex: I need to download oracle and install it) on 5 Linux machines with one shell script when I run that ...
-3
votes
1answer
19 views

A reminder/memo file at login in Unix Solaris

I want that a user gets a specific message on the screen when login in, which file should I update ? Thanks
1
vote
1answer
55 views

Unix move folders with pattern

How can I move subfolders with a pattern to the new location? Example list of sources: /data/aaa/_old/ /data/bbb/_old/ The destinations should be: /archive/aaa/_old/ /archive/bbb/_old/ Is ...
1
vote
1answer
66 views

ssh and git pull from remote server

I'm trying to ssh from server 1 to server 2 and do a git pull from server 1 to server 2. So on server 1, I run the following command: ssh root@server2 'cd /root/.example; git pull origin master' ...
2
votes
1answer
151 views

Why is this process refusing to quit?

I have a cron job that runs a shell script that executes a php script. It runs every day, sends some email, and writes to stdout (which is redirected to a log file in the shell script). It looks as ...
-2
votes
1answer
62 views

How can we get IO utilization for Process by Process ID using /proc directory? [closed]

I need to IO utilization for Process by Process ID without using any tool like iostat,iotop etc. Can any please help me to get IO utilization using info files using /proc/PID? Thanks in ADV.
0
votes
0answers
43 views

Preserving destination's permissions using Cygwin's rsync

I am using Cygwin with rsync to sync files from my windows 7 computer, to a CIFS share on a Freenas Server. The command I am using is: D:\Utility\Cygwin\bin\rsync.exe -rt --delete --verbose "/...
2
votes
2answers
393 views

Non standard ssh port: should I edit /etc/services?

On a *nix system, when configuring ssh to listen on non standard port, should I also edit /etc/services to reflect that. I would think it should be done, so tools that use it (such as ufw) will ...
0
votes
0answers
39 views

Delete files older than x days permissions

I have a folder that I have to run the following script find folder/ -ctime +7 -exec rm {} \; To delete files in the folder older then x days. But I can't let the root user do that, there will be a ...
0
votes
0answers
18 views

What is [idle] under command means?

Using ps aux | less I got the next results: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 11 1541.1 0.0 0 384 - RL 8Jan16 1446474:56.82 [idle]...
0
votes
0answers
27 views

Cannot restore RAID 5 configuration

We have recently come across a problem and we would like your input on what is the best way to solve this. We have a QNAP TVS-871 and it was configured as a RAID 5 Storage Device. Today the system ...
1
vote
1answer
74 views

Why does “cat /proc/net/dev” show only 0 for non-root users?

Recently, I've noticed that my script to monitor the network showed me nothing at all when it was run with a non root user. My script is simply looking at /proc/net/dev which has the following ...
2
votes
1answer
27 views

mv: when is the resulting file available?

Suppose one process does this: mv a large file to a destination directory And another process is watching for that file in the destination directory because it wants to read its contents as soon as ...
0
votes
1answer
32 views

How can I know why my dedicated server froze or crashed ? (Unix-like)

Recently, my dedicated server froze for around 50 minutes on Sunday. It did not respond to ping or any command. In the end, it was hard rebooted by the hosting company and everything works fine since ...
1
vote
1answer
32 views

Understanding top and tuning

I have allowed Postgres 30GB of RAM on our server. When running intensive tasks, I think it is swapping. As I understand it: VIRT - virtual memory (ie: swapped to disk) RES - complete memory usage ...
0
votes
2answers
110 views

Unable to clear up tmp

I had a bunch of files in /tmp that I cleared up by doing $ rm -rf ./tmp/*. However, I'm still unable to 'clear' that information, even after a reset. Here is what I have now: $ cd Av-bash: cannot ...
-3
votes
1answer
29 views

How to cut a string after a number of characters in unix? [closed]

How to delete all characters in one line after point with with sed? I have a file with multiple lines like this: 123456789 3483 98765432 56345 985745634 3469 67495735 87654 Now I want to delete ...
1
vote
0answers
117 views

Monit “check program” and restart based on exit code

When I use check process, monit will start the program I define under start program then monit will restart it if it stops. But when I use check program monit will not automatically start it. If the ...
0
votes
2answers
112 views

Unix / Linux command to see finished or killed processes

Is there a way to see processed that finished running or were killed a given amount of time ago? For instance, ps -ef will show all running processes, but if a process finishes, it is no longer ...
0
votes
0answers
14 views

Data was truncated on an input, output or update operation

Question: What can cause that in rare times (in a few %), 0 Byte sized files are created over FTP with the following errormessage: Data was truncated on an input, output or update operation ...
0
votes
0answers
13 views

consistent uid in multiple Distributed File System nodes

I am using GlusterFS to build a Distributed File System, which later I use to store the instances files for my OpenStack cloud. Each node need to have r/w access to the files on Gluster. The user by ...
3
votes
1answer
215 views

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi): &...
0
votes
1answer
83 views

How to get the time and date at which a user account is locked/unlocked in unix?

I need to get the exact time and date at which a user account was locked or unlocked in Linux. passwd -S command can give the status of an account i.e., if its locked or unlocked.
0
votes
1answer
93 views

Simpliest unix non-blocking “broadcast” socket

I have non-regularly running program which outputs string, I need to send this output to some kind of socket which can be distributed out of docker container and which can be listened by multiple ...