Most Popular
1500 questions
63
votes
4 answers
Purpose of Debian "sites-available" and "sites-enabled" directories?
Can anyone tell me—in a nutshell—what the purpose of these two directories are in Debian?
/etc/apache2/sites-enabled
/etc/apache2/sites-available
I notice that diffing sites-available/000-default and sites-enabled/default shows they are…
aaaidan
- 732
63
votes
2 answers
What is the ipv6 equivalent of 0.0.0.0/0
When describing IPv4 networks, I can use 0.0.0.0/0 or just 0/0 to specify all networks. What is the equivalent notation for IPv6?
Andrew
- 1,224
- 3
- 13
- 16
63
votes
9 answers
Tool to test a user account and password (test login)
Yeah, I can fire up a VM or remote into something and try the password...I know...but is there a tool or script that will simulate a login just enough to confirm or deny that the password is correct?
Scenario:
A server service account's password is…
TheCleaner
- 33,047
63
votes
2 answers
debian packages version convention
I'm using debian/Ubuntu, and get confused about versions of packages.
When using dpkg -l command, I get:
ii vim 2:7.3.429-2ubuntu2.1 Vi IMproved - enhanced vi editor
ii vim-common …
cizixs
- 973
63
votes
4 answers
Mapping UID and GID of local user to the mounted NFS share
I have a server with NFSv4.
I am mounting contents of the home folder of remote user to local host.
Able to read and write contents, but when I am checking ownership of files at the mounted volume from the local host, they all belongs to…
Alexander
- 733
63
votes
9 answers
Run a shell script as a different user
What's a good way of running a shell script as a different user. I'm using Debian etch, and I know which user I want to impersonate.
If I was doing it manually, I would do:
su postgres
./backup_db.sh /tmp/test
exit
Since I want to automate the…
Wadih M.
- 1,102
63
votes
2 answers
Should I use semicolons at the end of each PowerShell statement?
I've done a fair bit of programming in C#, but then I've also written a lot of T-SQL scripts. C# requires semicolons, and T-SQL and PowerShell they're optional. What do you do for PowerShell? Why? My gut feel is to include semicolons but I don't…
Mark Allison
- 2,278
63
votes
4 answers
Any difference between DOMAIN\username and username@domain.local?
I'm trying to troubleshoot an obscure authentication error and need some background information.
Is there any difference between how Windows (and programs like Outlook) process DOMAIN\username and username@domain.local?
What are the proper terms…
Josh Kelley
- 992
63
votes
8 answers
How to prevent "ps" reporting its own process?
$ ps | grep django
28006 ttys004 0:01.12 /usr/bin/python bin/django celeryd --beat
51393 ttys005 0:01.45 /usr/bin/python bin/django celeryd -l INFO
51472 ttys005 0:01.29 /usr/bin/python bin/django celeryd -l INFO
51510 ttys005 0:01.89…
Steve Bennett
- 6,000
63
votes
4 answers
nginx without server_name and using only static ip address?
this is my first web app deployment and am running into all sorts of issues.
I am currently going for a nginx + gunicorn implementation for the Django app, but mostly this question relates to nginx configurations. For some context - nginx would…
bash-
- 877
63
votes
7 answers
Windows command prompt: how do I get the output of a command into a environment variable?
I want to have an environment variable that contains the day of week in cmd.exe.
When I run this command I get the result I want.
C:\Users\tisc> powershell (get-date).dayofweek
Friday
Here I'm trying to store the result in an environment…
Tim
- 731
63
votes
3 answers
Do Apache config files support block commenting?
You can use # to comment out individual lines.
Is there a syntax for commenting out entire blocks?
I've tired surrounding the block (specifically a block) with ... , but that didn't work.
ripper234
- 6,232
63
votes
13 answers
What is the recommended size for a Linux /boot partition?
What is the recommended size for a Linux /boot partition?
And is it safe to not have a /boot partition?
I see some servers don't have a /boot partition while some servers have a 128 MB /boot partition. I am a little confused. Is /boot partition…
Tyler Liu
- 733
63
votes
10 answers
How to extinguish a small fire in a server rack to minimize damage to surrounding equipment?
Suppose I have a rack with several servers and other stuff. One of servers overheats severely and either starts smoking or catches fire while there's a serviceman nearby.
If anything similar happens in an apartment and there's a fire extinguisher…
sharptooth
- 2,739
63
votes
5 answers
Bash find command verbose output
Is there way to tell the bash find command to output what it is doing (verbose mode)?
For example for the command:
find /media/1Tb/videos -maxdepth 1 -type d -mtime +7 -exec rm -rf {} \; to output:
Found /media/1Tb/videos/102, executing rm -rf…
Alex
- 1,908