0
votes
1answer
1k views

how to configure catch all mail in zpanel

I have a CentOS configured with zpanel and I want to setup catch all mail but there is no option in zpanel to configure it. I have tried to search with google but not find any working solution. How ...
-1
votes
1answer
3k views

Unable to connect FTP: 530 Login incorrect

My account has been created on a LINUX server and I am able to login through putty. I have changed my password also. But, to move a file there, I tried to connect that server through FTP client. I ...
1
vote
2answers
335 views

How to intall sumtool on redhat 6

This is the version of my redhat system ; 2.6.32-71.el6.x86_64 I need to install a tool called sumtool While I tried yum install sumtool, it says: Setting up Install Process No package sumtool ...
0
votes
1answer
251 views

How to assign variable in awk

I have a code like below: $ awk -F'[]]|[[]' \ '$0 ~ /^\[/ && $2 >= "2014-04-07 23:00" { p=1 } $0 ~ /^\[/ && $2 >= "2014-04-08 02:00:01" { p=0 } ...
3
votes
1answer
564 views

Configure iptables on remote server without locking me up

I have a little remote server that I can access only with SSH, and what I want to do, is block all the traffic except port 22 for SSH. The first time, what I did was : iptables -P INPUT DROP And ...
2
votes
1answer
322 views

redirection failing for CGI program

I'm trying to redirect the contents of command output to a file in a CGI program. The issue for me is that the output file is not getting created. The CGI Code snippet is as follows: #!/bin/bash ...
5
votes
2answers
487 views

Get the actions for a command programmatically

Let's take the git example: $ git<TAB><TAB> git git-import-dscs git-shell git-buildpackage git-import-orig git-upload-archive git-dch git-pbuilder ...
1
vote
1answer
517 views

error while install a package

I have a problem when I want to install python-pycurl package: root@edx:/var/tmp/configuration-master/playbooks# apt-get install python-pycurl Reading package lists... Done Building dependency tree ...
0
votes
2answers
521 views

I accidentally formatted the wrong volume - is it possible to restore the previous Ext4 filesystem?

I know that a similar question has already been asked. This morning I accidentally formatted the wrong volume, containing mostly video files (about 30GB each). I am currently trying to restore the ...
3
votes
1answer
213 views

Conditionals for fish shell

I am going through the fish shell tutorial and find that this simple if-else block does not work if grep fish /etc/shells echo Found fish else if grep bash /etc/shells echo ...
7
votes
3answers
6k views

Are the major, minor number unique

Are the major, minor number Unique? Do we have any citations and reference to it? NAME MAJ:MIN RM SIZE RO MOUNTPOINT sda 8:0 0 465.8G 0 ├─sda1 8:1 0 298.2M 0 ├─sda2 8:2 0 ...
3
votes
1answer
843 views

How to simultaneously play sounds on 4.0 surround system using aplay

After my first configuration war against alsa (won with the help of CL.) check this question ... I would now want to go further : I am able to play multi-channel sounds on my setup, but I now need ...
6
votes
1answer
109 views

Can I limit total cputime used by a cgroup?

Although cgroups seemingly allow to control the CFS bandwidth of a cgroup, I don't see a way of enforcing a cpu time limit on a cgroup. The use case is that I would like to catch student programs that ...
6
votes
4answers
873 views

Needed: A simple way to remotely monitor a process on my server

I have a cloud-based server running a Java process (a POP/SMTP server called davmail, details don't really matter). What is the simplest way to monitor the status of that Java process remotely? I ...
2
votes
2answers
890 views

pipe function arguments to command line arguments in python

I have a python code (cmd.py) which accepts files as command line arguments and process using parse_args. I want to pass files from another code (files.py) to cmd.py, just like passing function ...
1
vote
1answer
379 views

How to stop many process like unicorn and sidekiq using single command in certain environment

I am using Ubuntu 12.04. I remotely access remotely EC2 instance, i will stop and start unicorn and sidekiq by following commands cap development unicorn:start cap development unicorn:stop cap ...
1
vote
3answers
115 views

Print the number of values which have the special characters in them

I have a text file like the one below. I want to check the second column and print the count of values which have some special characters in them. 101,aaa,d01 102,*&%,d02 103,$%&,d03 104,###,...
2
votes
1answer
2k views

Writing a systemd service to be executed at resume

my Dell laptop is subject to this bug with kernel 3.14. As a workaround I wrote a simple script /usr/bin/brightness-fix: #!/bin/bash echo 0 > /sys/class/backlight/intel_backlight/brightnes (...
2
votes
1answer
2k views

How to check input parameter for running shell script [closed]

I'm writing a shell script to be used for various purposes. Various operations depend on input parameters. How can I check which parameter has been passed to the shell script while it runs? Can ...
2
votes
1answer
150 views

Telnet IAC commands

I want to turn off character echoing in Telnet via linux command line by sending "IAC DON'T ECHO" command. I have been searching everywhere, and I couldn't find how to to do. Basically, I don't know ...
3
votes
2answers
5k views

Merging multiple lines based on column 1

I have a file like below.. abc, 12345 def, text and nos ghi, something else jkl, words and numbers abc, 56345 def, text and nos ghi, something else jkl, words and numbers abc, 15475 def, ...
2
votes
3answers
2k views

Does /var/log/secure log successes?

Short one that I've been unable to find a decent answer for. Centos 5.10 server, trying to trawl through all the logs I can to see what IPs successfully accessed the server. I've been mucking about ...
2
votes
2answers
6k views

Linux: how to get all login logs from my system [closed]

I want to know all the times a user logs since last year into my system? I used last command but it is not useful.
4
votes
1answer
160 views

Accept any private key for authentication

Is it possible to configure OpenSSH (or any other standard sshd) to accept any key offered by a connecting client? EG ssh -i ~/arbitraryKey hostname grants a login shell while ssh hostanme doesn't. ...
1
vote
0answers
333 views

Can't save changes to system settings in Debian Wheezy

I installed Debian Wheezy just a few days ago. I used the Live image, downloaded from official Debian website, to install it. Now, the problem is that the changes I make to system settings (like ...
4
votes
4answers
3k views

merge 2 rows based on the same column values

I have a file like below. 47196436 47723284 name1 1.77273 42672249 52856963 name2 1.06061 52856963 430695 name2 1.16667 55094959 380983 name3 1.55613 17926380 55584836 name4 1.02461 3213456 34211 ...
1
vote
1answer
708 views

Do I have two VGA compatible controllers?

lshw shows two VGA compatible controllers. Where are they located? What are they used for respectively? Which one do you recommend to use? Which of the two controllers am I using currently? With ...
0
votes
1answer
167 views

Blanket blocking SMTP with whitelist

So using a VPS environment, whereby we need to block outbound SMTP by default (spammers), with the ability to unblock when needed. We have found some scripts eg: iptables -I FORWARD 1 -d $VPS_IP -p ...
4
votes
1answer
6k views

Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?

Site: http://www.oucs.ox.ac.uk/network/vpn/linux-solaris/index.xml?ID=VPNC What is open VPNC: VPNC is an open-source VPN client for Linux and other Unix systems which is compatible with the OUCS VPN ...
2
votes
1answer
42 views

How to sniff download information of different pc's on a network(router)

Actually I am making an Log Analyzer for downloads on a network by different users.So i want to know who downloaded what in a same network.I know SSL packets cannot be sniffed but I want only ...
1
vote
1answer
110 views

The libblkid library: any way to use it with blocks in the core memory?

I know how to use the libblkid library to analyze existing block devices. I'd like to use it to analyze a memory extent before I write it to the block device. Something like that: char block[4096]; .....
3
votes
1answer
1k views

Copy a local file to a remote server, non-root privileges over sudo?

I'd like to do something like: scp local_file remote_server:/some_directory But in order to gain privileges to /some_directory, we need to call sudo. I know that a similar question had already been ...
1
vote
0answers
123 views

byobu-config not working

I installed Byobu 5.73 (latest port available) on "FreeBSD seer.fclar.unesp.br 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:40:52 UTC 2013" without a problem. However, when I try to run ...
3
votes
3answers
189 views

awk - to add a column after matching the remaining columns

I have a file (file1.txt) with the contents as below. 8145216 3377090 1.5 1405541 53595498 1.53637 I need to generate all the possible combinations for the first 2 columns in the above file. I use ...
2
votes
1answer
1k views

Create ssh user which can only access home directory [duplicate]

I read documentation on the internet on how to create a new user with SSH access. I figured it out and to create a user is quite simple. The next step I want to take is to jail this ssh server to the ...
10
votes
1answer
2k views

Reliable way to jail child processes using `nsenter:`

I know that Linux namespaces, among many other things, can be leveraged to handle restricting and jailing child processes securely without any chance of their being zombied and dumped on init. But I'm ...
1
vote
1answer
90 views

Mounting a device without read permissions

It is possible mount a flash drive without read permission?
2
votes
3answers
2k views

forwarding web traffic through a vps running on Ubuntu in another country

I've got a vps in another country. And I'd like to forward all my web traffic through it. I know there are commercial options available in the market but I'd like to do it by myself for the sake of ...
3
votes
3answers
491 views

Internal Server Error nginx

I'm trying to install and get running Tendenci on a DigitalOcean server. Tendenci is this open source association management software: http://tendenci.com/ I've followed the instructions here to the ...
1
vote
1answer
37 views

How to run another installed system from within Linux?

I have Windows Server and Android X86 triple-booting with Kubuntu. How can I run either of them directly from within Kubuntu (without using virtual image files)?
3
votes
1answer
9k views

CentOS Local User not able to view directories/files via FTP login

Currently running CentOS 6.5 with vsftpd. As a newbie, I would like to explain my process and then have the proper process explained back to me from scratch which I believe will solve my issue. I am ...
2
votes
1answer
61 views

MySQL Database Charset

I have just migrated a MySQL database to a new server using mysqldump. The charset of database is normally UTF-8 and everything was working fine on the old server but when we switched over to new one, ...
1
vote
1answer
53 views

linux if else fails for some IP's

i am using the following code with if then to mount. It works for some IP's, it does not work for some IP's especially for FAILURE statement. Here is the code is_mounted() { mount | grep -qohw "$...
1
vote
0answers
1k views

linux fedora 20 how to read data from usb drive

I installed Linux Fedora 20 on a new computer, and kept the hard drive from the old computer as a second backup of my data. The drive has two partitions, Windows XP on one and Fedora 12 on the other. ...
2
votes
1answer
78 views

Why is Debian updating old package versions instead of offering new versions? (openssl) [duplicate]

I am a very inexperienced server owner and wanted to make sure I have a fix for heartbleed. After updating, "openssl version" still shows 1.0.1e and I wondered what to do to get a heartbleed free ...
4
votes
2answers
1k views

Opening a file with program in background from shell

The command to launch a program, say evince, from bash shell in background is evince & But what if I want to open some file with evince in background? Nor evince myfile.pdf & neither evince ...
1
vote
2answers
2k views

dependency error when run apt-get -f install in debian squeeze

I can't install or remove packages in Debian. When I type apt-get -f install to fix the problem I get this error: Reading package lists... Done Building dependency tree Reading state ...
20
votes
4answers
24k views

Change Apache httpd “Server:” HTTP header

One of the HTTP headers that the Apache httpd sends back with response data is "Server". For example, my web server machine is relatively up-to-date Arch Linux. It sends back headers closely ...
2
votes
1answer
3k views

Difference between Ubuntu and Linux Mint

Can someone please tell me the differences between Ubuntu and Linux Mint ? I thought they were almost the same thing until I downloaded Ubuntu 13.10 versions of softwares for my Linux mint 16 system,...
21
votes
5answers
40k views

Kill all descendant processes [duplicate]

I'm writing an application. It has the ability to spawn various external processes. When the application closes, I want any processes it has spawned to be killed. Sounds easy enough, right? Look up ...

15 30 50 per page