Tag Info

New answers tagged

0

Since SFTP is just FTP over SSH, you should be able to do this using user home directories and groups. If you created 3 users: parent childone childtwo You could set their home directories to a structure like this: /home/parent /home/parent/childone /home/parent/childtwo With permissions: #> chmod -R 771 /home/parent #> chown parent:testftp ...


1

You don't need to do any of this. As HBruijn mentioned in a comment, the $HOME/.my.cnf file already contains your credentials and MySQL's command line tools will use them automatically without you needing to do anything special. So just do: mysqldump $db | ssh root@$destination_server "cat > /backup/mysql/$db.sql"


0

Confirm the paths in your Apache configurations - do they exist ? Re-build the configurations if possible. Could you provide a snippet of your configurations ?


0

Just figured out that the user under which hudson was running didn't have the required privilege to run the job I actually did a reinstall of jenkins(not hudson this time..time to migrate anyways) under a user i specified and created the same exact job with the user with the right privilege to run the job and BANG!!! It worked!!! Thanks


0

I've placed the answer in the original question above.


1

If you are hosting two subdomains of the same domain, you have no problem if you get a multidomain or wildcard certificate. Otherwise the domain not listed on the certificate will give a warning that the name doesn't match. When configuring the domains, you would use the same certificate for both domains. Some clients and servers support negotiating the ...


2

If indeed you are running Windows XP, this will not work. Need Vista or higher. I would also double-check that SNI is enabled, from the same link you mentioned. nginx -V The first configuration you posted should usually work if you use a SNI compatible browser.


0

Off hand Sendmail uses three different maps which can potentially be the cause of that: The access map /etc/mail/access The virtual user map /etc/mail/virtualuserdb The local user alias db, /etc/aliases which I think are consulted in that same order of precedence. P.S. I m on mobile and can't verify the exact file names.


0

Replace this: dd if=mytemplate.img of=myguest.img iflag=direct oflag=direct (vs cp for better copying speed) With: cp --sparse=always mytemplate.img mynewguest.img Assuming your file is sparse on the tail end, that will result in a much much smaller file. If it doesn't result in a smaller file, mount the template image: kpartx -va mytemplate.img mount ...


1

I didn't find the source of the problem, but here is a workaround. In /etc/init.d/nginx, locate the stop() function and add the following line before return $retval: ipcs -s | grep "4294967295" | awk ' { print $2 } ' | xargs -I % ipcrm -s % With this change, sudo service nginx restart should now clear the old semaphore arrays. What about not being ...


0

In /etc/default/useradd you have something like this: GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel GROUPS=video,dialout CREATE_MAIL_SPOOL=no Unless if you don't wont to change the system default you can use -k when you are using the useradd command


4

You have to use the template-module for this. Here's an example task: - name: Create motd template: src="motd.j2" dest="/etc/motd" The file motd.j2 (placed in the templates-subdirectory of your role) could then look like this: Welcome to host {{ansible_hostname}}! {{ansible_hostname}} will then be replaced with the hostname. Be sure to "gather ...


4

You installed the EPEL repository for EL7, but you are actually running EL6. Remove the epel-release package, i.e., sudo yum search epel && sudo yum remove epel-release and replace it with the correct package. According to this documentation Redis could be installed on CentOS6 by issuing the following commands: // --- Compiling --- $ wget ...


0

Beneath the sourcing of functions, please add: RETVAL=0 so that the lines look like: # Source function library. . /etc/init.d/functions RETVAL=0 If you take a look into many of CentOS init scripts, majority of them has RETVAL=0 initialized. % grep RETVAL=0 /etc/init.d/* acpid:RETVAL=0 atop:RETVAL=0 auditd:RETVAL=0 autofs: RETVAL=0 ... ...


2

Probable cause is the postscript in logrotate script. Thats the script that runs after the logrotation. File should be called /etc/logrotate.d/apache2 or /etc/logrotate.d/httpd (depending od distro) and look something like: /var/log/httpd/*log { missingok notifempty sharedscripts postrotate /sbin/service httpd reload > /dev/null ...


0

Add the specific host with a ! prefix in the service definition. The service check below will apply to all hosts in agroup apart from ahost. define service { hostgroup_name agroup host_name !ahost service_description Shared NFS mount check_command check_nrpe!check_shared_mount use generic-service }


0

/etc/pam_ldap.conf needs to have the same ldap settings, as nslcd.conf has


3

When sending through the console or a mail client like Outlook or Mac's Mail it processes fully and has all three pass. This behavior was expected because you place this configuration in main.cf smtpd_milters = inet:localhost:8891 When sending through Zend Framework 1.12's SendMail function it fails (php). This behavior was expected too because ...


0

You are mixing 3rd party repository (webtatic), and thats why you are having issues. What you can do is: yum install php-imap --disablerepo=webtatic This will install php-imap from official CentOS repositories. Other thing that seems wrong is "w5" in the release version of a package yum is offering you. It suggests that you added Webtatic for EL5 on ...


0

All you would need to do is to add a new script with the name eth0:0 For example: This would be the eth0 one: # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="D4:BE:D9:D2:FB:E4" BOOTPROTO=static ONBOOT="yes" IPADDR=192.168.1.49 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 NETWORK=192.168.1.0 NOZEROCONF=yes ...and this would be your ...


0

If you didn't make any modifications to it then the other answers are better/quicker. If you have mod_info enabled and accessible, you can get the configuration by accessing /server-info?config and extracting the relevant parts from it. But be aware of the limitations of this.


1

You can extract a single file from the rpm without reinstall of httpd First get the path within the rpm rpm -qlp httpd-...rpm | grep httpd.conf after that you can get the single file with rpm2cpio httpd-...rpm | cpio -ivd ./etc/httpd/httpd.conf


1

You can get the original file back with a simple reinstall of the httpd package - yum reinstall httpd. This will not recover any modifications you've made to the file, however. You'll have to redo those modifications manually.


2

Try this; ansible example -a "id" --sudo -K This runs the command using ansible's built in sudo function which will utilize the -K (ask-sudo-pass) flag. If you try to run sudo within the command, it will not use the -K (--ask-sudo-pass) password.


1

i would recommend you to use acls here: setfacl -R -m user:apache:rwx directory setfacl -R -d -m user:apache:rwx directory setfacl -R -m user:developer:rwx directory setfacl -R -d -m user:developer:rwx directory


8

CentOS 6 comes with Postfix as default mail server and you can see it running (tcp :25 1186/master). Try to stop Postfix (service postfix stop) and then start sendmail (service sendmail start).


0

Second root in your example is a group ownership (to change it use chgrp). If you're looking to understand it better, get yourself familiar with chown, chgrp and chmod.


0

yes, virt-sparsify is what you need. to clone VMs, you can use virt-clone to properly copy disk images, qemu-img convert is the better approach. To really save disk space, you can make the golden image, then create some snapshots of it using qemu-img, and base your VMs on those snapshots. This way the base data will remain in the base image and the VMs ...


0

When you start eucalyptus-nc for the first time, the "Cannot find keys" is a warning, not an error. It's meant to be informational, in case you did something such as successfully set up the NC for this cloud already, and happened to be restarting. If you know for a fact that this NC is in fact already successfully registered and was working in the past, then ...


0

If you wish to translate this message into more human readable text, try to use audit2allow -w -a Then - you can use audit2allow -a -M mymodule to automate create of selinux module which allow this type of activity, and then semodule -i mymodule.pp to install it into selinux.


-1

Make sure your system date and time correct otherwise the cerficate will be not valid because it will either be expired or invalid. you ntp service to sync your system time,


1

<bot>Converting comment to CW</bot> Looks like postfix wants to connect to your custom service port 7777, something like check_policy_server. Unfortunately for whatever reason the service doesn't run. Also according to this log warning: do not list domain 89ninetymailserver.com in BOTH mydestination and virtual_mailbox_domains you have ...


0

Have you looked into your Apache configuration files? If possible, compare your httpd.conf and related files to a recent backup just before your glibc fiasco. In particular, it seems odd that a request for a file download is being sent to your cgi-bin directory. Try looking at the "Directory", "Alias", and "ScriptAlias" directives in your setup.


1

Directories need an executable flag to access files and directories inside. The execute bit allows the affected user to enter the directory, and access files and directories inside. You can still use 666 on the files it contains. On the other hand it is not good idea use 666 or 777 for your directories and files. See ...


1

It was just as I feared. euca_conf --initialize will generate the initial cert files, and registering the other services should generate the rest



Top 50 recent answers are included