Most Popular

1500 questions
52
votes
1 answer

mount: unknown filesystem type 'linux_raid_member'

I have Suse Linux 12.1 and i am trying to mount a single RAID 1 disk, to explore the files in it. However when mounting it: # mount /dev/sdc1 /mnt/test mount: unknown filesystem type 'linux_raid_member' I started reading around and many…
52
votes
8 answers

ls hangs for a certain directory

There is a particular directory (/var/www), that when I run ls (with or without some options), the command hangs and never completes. There is only about 10-15 files and directories in /var/www. Mostly just text files. Here is some investigative…
Jake Wilson
  • 9,133
52
votes
7 answers

How do you set a locale non-interactively on Debian/Ubuntu?

Usually, I run aptitude -y install locales then dpkg-reconfigure locales to set up locale. Now I want to put it into a shell script, how can I reliably do the following, automatically / non-interactively? Choose en_US.UTF-8 and set it as system…
kenn
  • 735
52
votes
3 answers

Iptables, what's the difference between -m state and -m conntrack?

What's the practical difference between: iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT and iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT Which one is best to use?
Bourne
  • 1,069
52
votes
9 answers

Remove path from find command output

I have a bash script for deploying code from a beta environment to a production environment but currently I have to add the list of files to a txt file manaully and sometime I miss some. Basically my deployment script cat/loops copying the files…
Mikey1980
  • 801
52
votes
50 answers

Tools a Windows administrator cannot live without

As a Windows administrator, what tools do you feel you cannot live without?
user1695
52
votes
5 answers

How to export result of a MySQL query using phpMyAdmin 3.4.3?

I've got a 30K row table When I run a long, 50-line query on that table, a GROUP function reduces the number of rows to 7K I want to export the grouped 7K rows as a new table, or save them as a CSV When I attempt to export, instead of getting the…
grape
  • 521
52
votes
19 answers

The IT Manager is Leaving - What do I lockdown?

The IT Manager may be leaving, and it's possible that the parting of ways may not be completely civil. I wouldn't really expect any malice but just in case, what do I check, change or lock down? Examples: Admin passwords Wireless passwords VPN…
Marko Carter
  • 4,212
52
votes
7 answers

How do I make Apache Web Server listen on two different ports?

I'd like an Apache Web Server I have installed at home to listen on port 80 and port 8080. I've added Listen 8080 to httpd.conf and restarted the Apache services but the server doesn't seem to be listening on 8080. Punching in http://localhost:8080…
Owen
  • 633
52
votes
2 answers

How do I downgrade an RPM on a machine without 'yum'?

On a machine without yum, I have version 3.2 of a package installed and I have downloaded version 2.4 manually, how do I install the older version?
Harley
  • 2,247
52
votes
6 answers

How to check that an OpenVPN server is listening on a remote port without using OpenVPN client?

I need to check that an OpenVPN (UDP) server is up and accessible on a given host:port. I only have a plain Windows XP computer with no OpenVPN client (and no chance to install it) and no keys needed to connect to the server - just common WinXP…
Ivan
  • 3,432
52
votes
7 answers

How to find other end of unix socket connection?

I have a process (dbus-daemon) which has many open connection over UNIX sockets. One of these connections is fd #36: =$ ps uw -p 23284 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND depesz 23284 0.0 0.0 24680 1772 ? …
user13185
52
votes
3 answers

How do I clear the "s" permission on a directory in Linux?

I have a directory that is showing up with the permission mask drwsrwsr-x. When I try to reset the permissions to 755 the S still remains. What is the "s" and why cant I change the permissions back to 775 (drwxrwxr-x)?
52
votes
6 answers

Postfix: Recipient address rejected: User unknown in local recipient table

When I try to send an email on my postfix server to an address on the same domain (for example, if the server hostname is mail.example.com and I try to send an email to test@example.com), I get the following error in the log and the email is not…
52
votes
4 answers

Using Same SSH Private Key Across Multiple Machines

I've got a Github repo I want to access from two different Linux machines. For the first machine, I followed Github's instructions for generating SSH keys, and added the resulting public key to Github. This client works fine. For the second…
Yarin
  • 1,406
  • 8
  • 22
  • 31