Reputation
4,279
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 11 30
Newest
 Explainer
Impact
~517k people reached

4h
comment How can I configure my server to avoid information leakage from the SERVER header of its HTTP response
I can't speak to Debian, but on CentOS 7, going from the default (no setting) to ServerTokens Prod changes the header from Server: Apache/2.4.6 (CentOS) to Server: Apache, as expected. Sometimes people (me included) think something doesn't work because they can't get it to work.
2d
answered How can I configure my server to avoid information leakage from the SERVER header of its HTTP response
Jun
22
comment Can `wget` be used to download a file generated by a webpage?
This depends, amongst other things, on whether you are submitting a form and then get a server-generated file, or whether it is generated local by javascript (which is unlikely, but possible). In general, tools like wget can generate POST requests that simulate submitting forms, but they wouldn't be able to solve captchas for you etc.
Jun
21
comment Is it possible to change file permissions when copying
My gut instinct would be that it should already happen on copy (because the copy is created in that directory), unless whatever file manager you use (which one is it?) explicitly overrides the attributes afterwards.
Jun
17
comment How to overload apache or nginx2
I'm not sure if I understand your setup correctly, but you'll have a hard time hammering a server if you just use nc in a loop. ab, the apache benchmark tool, should be well-suited for a first estimate of stress testing, in particular with high -c values.
Jun
13
answered How to use regex to match a pattern which does not have a specific string at the end
May
12
comment How do I remotely edit files via ssh?
Unsurprisingly, the installation step will fail on distributions that are not deb-based and hence don't have apt-get. (In which case, yum or zypper might be present.) They also require root on the local machine, whcih may or may not be available. (This is not to say it's a bad solution, but it comes with a big prerequisite.)
May
6
revised Removing line-breaks, whitespaces and tabs from every file
deleted 1 character in body
May
6
comment Removing line-breaks, whitespaces and tabs from every file
Point well taken re multi-file arguments. However, I am not asking for clarifications or improvements to the OP's question, so this is rightfully not a comment. (For a lower-rep OP, I would possibly have gone back to provide more detail.)
May
6
answered Removing line-breaks, whitespaces and tabs from every file
May
6
comment Efficient search of unique owners of files and directories
In this case (i.e. assuming number of files is large, number of users is small), gawk '1{u[$0]=1;} END{ for (x in u){print x;}}' might be better than sort -u since it doesn't store one line per file.
May
3
comment PDF documents can only be saved, not opened
Is this consistent across multiple sources of PDFs? The server can hide that it's a PDF (by setting content-type to the generic application/octet-stream), or it can explicitly request that the browser not try plugins to view it (content-disposition: attachment).
May
2
comment Speed issue in copying files from one host to another
What do you use to copy? (Also, looking at top on either end can help you figure out if it's a cpu bottleneck on either end, for example if you use scp with encryption and very slow hardware.)
May
1
comment Why my rescued PDFs forms are empty?
PDF is a file format where you can stick more content on the end that overrides or amends earlier content. (That's at least how acroread fills forms, by putting the text on the end.) If your rescue software looks for the first feasible end of the pdf only, it will not find it. If the incremental portion is incomplete, maybe it will be ignored altogether.
Apr
30
answered Implementing index.php that serves index.html
Apr
26
answered How to choose system user ID for custom packages (RedHat & compatible)?
Apr
26
comment Why can't I remove the empty directory with username www-data?
Just in case it's an SELinux issue: please run getenforce and ls -lZ /home/test for us? Oh, and getfacl /home/test/, to be on the complete side.
Apr
26
comment Want to grep a date in a file and its next 5 lines
Please run grep -V for us. Are you on SunOS/Solaris with its notoriously frugal tools?
Apr
24
comment How can I see previous `at` jobs?
Beyond the stdout/stderr that will be sendmailed to the user (or the user named in the environment variable LOGNAME) as per man at?
Apr
21
answered How to count subdirectories in a directory in UNIX?