Tag Info

New answers tagged

0

I have a very similar configuration to yours. ssh_config(5) says: note that key- words are case-insensitive and arguments are case-sensitive So the first line in your config needs to have an upper case G, like so: Match Group sftponly


1

Simply using grep: grep . file Or try ex-way: ex -s +'v/\S/d' -cwq test.txt For multiple files (edit in-place): ex -s +'bufdo!v/\S/d' -cxa *.txt Without modifying the file (just print on the standard output): cat test.txt | ex -s +'v/\S/d' +%p +q! /dev/stdin


0

We found we had to switch aof off beforehand otherwise redis creates a blank aof at boot and uses that instead of the rdb file. Once redis creates a populated aof then you can switch aof back on.


0

Since this question hasn't been marked closed or answered, I'd like to offer some input. Services for Unix (SFU) Applications is available from Microsoft, and appears to support all versions of MS Windows - however the installer does warn that there are compatibility issues with Vista. My efforts to use SFU (explicitly for NFS services) have repeatedly ...


7

Just restarting postgres is not a long term solution, you will hit the limit again, unless you have physical resource constraints on the server such as memory. During the issue the number of processes opened(nproc) by postgres user was 503 and the estimated number of open files(nofile) was 35225 and yet your postgres_limits.conf shows that you have set nproc ...


0

You can use the below command with atime if the files are accessed often find /sourcedirectory -type f -atime +365 -exec mv -t /destinationdirectory {} +;


1

Did you regenerate the initramfs ? The initramfs is a small file system called before your rootfs to ask for your password and decrypt the LUKS container and handle stuff. It contains the /etc/cryptab file to be able to know what it should uncrypt / mount. If you haven't regenerate it, the initramfs don't have you modified file and can't handle your new ...


-1

Too many authentication requests can cause load on the server and the server can automatically restart. This seems like a brute SSH attack. You have 2-3 authentication request per second. You can use this guide to prevent them http://rimuhosting.com/knowledgebase/linux/misc/preventing-brute-force-ssh-attacks .


0

To see what optical devices are available, you can run this as root: % wodim --devices As for "reading the values and apply it on to the application" you need to be more specific. What exactly are you trying to accomplish?


0

Inspired by Mariano Paniga's answer, I think I have a better one, that don't need to vi and search/replace commands. I'm even want to copy the ownership info too (uid/gid). cd version1/ find . -exec stat -c 'chmod %a %n; chown %U:%G %n' "{}" \; > /tmp/setPerm.sh chmod u+x /tmp/setPerm.sh cd ../version2 /tmp/setPerm.sh You may customize the commands ...


1

Correct way is to edit a file called checkcommands.cfg, (create file if not available) located in the /etc folder within nagios folder. Create your command with variables & point to actual script. Example: define command { command_name check_http command_line /usr/local/nagios/libexec/check_http $ARG1$ } Also make sure you ...


0

when i using GlusterFs we have a bottleneck with T files with zero size, for sync between crashed brick or replica we must use --min-size=1 to not syncing empty file from crashed server


0

As you suspected, the first entry is the canonical (official) name, where all subsequent names are just aliases to the first. In my experience (in a typical prod environment), /etc/hosts looks like this: 127.0.0.1 localhost.localdomain localhost 10.0.0.1 myhostname.domain.tld myhostname


2

I believe you are taking a more complicated approach than necessary. To disable a DIT disable its corresponding database. This can be accomplished by setting olcHidden: TRUE. olcHidden: TRUE | FALSE Controls whether the database will be used to answer queries. A database that is hidden will never be selected to answer any queries, and any suffix ...


2

Filesystem should be fine. You'll probably have some gaps in log files and it's possible that scripts/programs that aren't scrupulous about checking the success of writes may have lost data but that's all. You might want to check that logging (apache and syslog) is working correctly after you fixed the space problem - a service reload should be all that is ...


-1

I would like to say this solution worked for me! I was having the same issue using free-ipa, and using this setup in my /etc/pam.d/system-auth file avoided the extra "authentication failure" errors: auth required pam_env.so auth sufficient pam_sss.so auth sufficient pam_unix.so nullok try_first_pass auth requisite ...


0

On OS X here are two simple solutions to get both the private and public IP (with bonus code if you use LaunchBar). Private IP $ ipconfig getifaddr $1 # $1=en0 || en1 || en* LaunchBar Script #!/bin/sh title="$USER@$(HOSTNAME -s)" text=$(ipconfig getifaddr en1) open ...


1

Maybe you can just: cat /etc/issue But I think this only would be of use on a Linux system.


2

uname would be the almost universal command for unix/linux based systems. I wonder why you want to avoid to use it. So, if you discard "uname" we would need to concern with Unix specific comands, such as "lsb_release" from most of recent Linux distributions or cat /etc/*-release. prtconf would also help to identify in some Unix. Some Unix systems, such ...



Top 50 recent answers are included