Browse All Questions (179025)



tunneling FON traffic via TOR

I would like to tunnel the traffic of my FON router (http://corp.fon.com/en) through TOR (https://www.torproject.org/). For that I added a second network card to a local server and connected the FON router to it. Then I set up a DHCP server and configured the TOR service. That all works. Now comes…

Implementing rollback in bash

I have a script that is composed of staged operations which work mostly in a start/stop/status manner. The issue I have is that when starting, each of the operations can fail and I need to do a safe rollback using the stop actions. How could I do this in bash? I was thinking of something …

USB keyboard won't work with usbhid driver

I have an HP thin client (model t5325) which runs Debian Linux (kernel 2.6.22.18-1-armel). We are testing some kiosk keyboards from Operator Interface Technology which are presenting themselves to Linux as HID devices, but the OS will not bind the usbhid driver to the device and allow them to func…

List ports tunnelled on OpenSSH server

Is there any way to list the tunnels that SSH clients connected to my OpenSSH server have set up? I can use e.g. lsof -i to show connections that are being actively tunnelled, but I'd like to be able to list tunnels that the clients have set up but may not currently be in use. (It's just str…

Track daily directory changes (and email them)

I have a Debian powered NAS server (ReadyNAS) with a deep file hierarchy. I'd like to get notified daily about what has changed in some of its directories and their subdirectories. So if someone accidentally deletes a file during the day, I'd get notified about it at night by email (which would…

Debian Wheezy netinstall can't configure DHCP

I am reinstalling my Debian system with the Wheezy netinstall image on a USB drive. I have a wireless router that also comes with ethernet ports, so I could either connect to my LAN via wifi OR ethernet. The installer was able to detect my wireless (wlan0) and wired (eth0) interfaces, but on…

Grep: how to add an "OR" condition?

I am a total regex newbie. I find it confusing and I avoid it like the plague (wanna take some guesses as to why I'm not good at it?). But I suspect it might be the solution to my question. Which is... How can I introduce a conditional OR into grep? Something like, grepping a file's type for (J…

Debian + Nginx/Unicorn permissions

Is there a security risk in running a web server like Unicorn as root? The Nginx master process runs as root, the Nginx worker runs as the limited www-data user, but I can't set another user like www-data to run the Unicorn master/workers without messing around with www-data's PATH .

How can I create a terminal window with one tab per long-running script that I can individually kill with ctrl-C and restart?

I am working on an application that requires running many long running scripts, some of which I want to restart from time to time. Currently, I am trying to use gnome-terminal to solve this problem, so I have created a startup script that looks like: #!/bin/bash -e cd `hg root` gnome-terminal …

understanding sudoers

I have a unix script which creates a temporary log file, say tempfl.log . When this file is created it has permission rw-r--r-- . There is a line chmod 0440 /etc/sudoers tempfl.log 2>&1 But when the script is done the permission changes to r--r--r-- but it should be rw-r--r-- . If I chan…

< Previous Page   
<< First Page   Last Page >>