Reputation
1,537
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 10
Newest
 Yearling
Impact
~103k people reached

  • 0 posts edited
  • 0 helpful flags
  • 50 votes cast
Aug
28
comment opensshd / openssh - allow EITHER keypair or password
I'd set the file permissions but not the directory - changing this, it now works.
Aug
16
comment Awkward awk exit code
awk -f foo ; eco $? gives 1 as expected.
Aug
14
comment Awkward awk exit code
Yes, bit odd when the man page says....env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
Aug
14
comment Awkward awk exit code
strange. I can't see anything odd in my aliases or environment which might affect this. Got some oddities in my ld.so.conf since Oracle installed here.
Aug
14
comment Awkward awk exit code
drat, RHEL 6.6 uses awk 3.1.7 which has the same problem :(
Aug
14
comment Awkward awk exit code
Thanks larsks - I'm running awk 3.1.5 on RHEL 5 - I will dig further to see if an upgrade is a viable solution
Aug
14
comment Awkward awk exit code
If you have a look at the examples you'll see that in one case I've embedded the awk in shell script. File extensions are not significant on Unix/Linux shells.
Feb
14
comment Identify machine configuration via code
Agreed /proc/cpuinfo is a good place to look for info about CPUs, but user855 asked about disks - lsblk is a better option for that. Where to look for info? tldp, google, /usr/share/doc
Nov
18
comment Linux cache evictions
thanks, nice article. Any idea what book the chapter comes from? However, although it explains how a particular page is prioritized for eviction, it does not really explain why pages are evicted when there is no apparent demand for memory. What controls the process "to shrink the cache to make available more RAM for other uses"? What is it replacing these with?
Nov
18
comment Linux cache evictions
Thanks Joe, however the first 2 options specifically relate to data which needs to be written back to the filesystem (i.e. the write buffer) not data which has been read and has not been changed (the read buffer). The vfs_cache_pressure controls the preference for evicting file metadata relative to file contents.
Apr
7
comment Linux to linux USB storage?
aware of infiniband - but hardware is only cheap off eBay, requires expensive cabling too and I've only ever seen PCI[e] host adapters. Further, this means running the data on top of TCP/IP with all the complications regarding congestion avoidance. Thanks for the link though.
Apr
7
comment Linux to linux USB storage?
cablewholesale.com/support/technical_articles/… says "will allow for two host devices to be connected directly with a USB 3.0 crossover cable" and it seems that these are available.
Apr
7
comment Linux to linux USB storage?
That was my concern - finding the hardware (since posting I found this: linux-usb.org/gadget/file_storage.html which seems to solve the software problem)
Feb
7
comment Full path name of bash? and base process of Linux?
Why are which and whereis bad? (doh - then I opened the link - ignore me)
Jan
14
comment CUPS denies access to printer
No, none of the config is changed (and nothing noted in cups logs) when I run lpadmin. The classes file is empty and printers.conf has nothing relating to browsing/access control.
Nov
25
comment How to migrate files on Linux from HDD to SSD on a VDS
Some applications don't like symlinks in certain contexts - e.g. opinting your document_root in apache to a symlink will result in lots of 404 errors if you've configure -FollowSymLinks. Further you may run into concurrency issues if the same file is accessed via different paths. NB I'm not saying this is not the way to fox the problem, just that there are hidden gremlins with symlinks.
Nov
25
comment Is it possbile to mount Windows filesystems without using the root account?
@binghenzq: they don't require the root password at the time of mounting. If you don't have root acces on the machine it's still possible to access an SMB filesystem (using smbclient) but it's not possible to mount any filesystem. If nobody knows the root password then your system is highly vulnerable and this MUST be resolved.
Oct
8
comment Massive, unpredictable I/O performance drop in Linux
Then the next thing on my lsit to check would be to check the logs for errors and check there's plenty of memory allocated to buffers/cache (see output of free)
Oct
8
comment Massive, unpredictable I/O performance drop in Linux
....and iotop, fio
Oct
8
comment Massive, unpredictable I/O performance drop in Linux
How are your filesystems and block devices configred? Are you using md? LVM?