Install MySQL with ansible on ubuntu

When mysql-server is installed headlessly, there’s no password. Therefore to make .my.cnf work, it should have a blank password line. Here’s what I tested with for a .my.cnf: [client] user=root password= It’s also slightly strange to put .my.cnf in your vagrant user directory as owned by root and only readable as root. After ensuring the … Read more

Permission denied when launch python script via bash

You should be able to run the script typing: $ chmod 755 ./scripts/replace-md5sums.py $ ./scripts/replace-md5sums.py There are times where the user you are currently logged with just don’t have the permission to change file mode bits. In such cases if you have the root password you can change the file permission this way: $ sudo … Read more

gpg: WARNING: unsafe ownership on configuration file, $gpg –fingerprint on Ubuntu9.10

Commands run with sudo will be run as root. What you want to do is to own the files as your user dylan, right? Maybe so happens that root is owning your files now. This can be changed by: sudo chown -R dylan ~dylan/.gnupg and then as dylan: chmod 600 ~/.gnupg/gpg.conf chmod 700 ~/.gnupg To … Read more

Error message “500 OOPS: vsftpd: refusing to run with writable root inside chroot()” [closed]

This blog here points out how to fix this problem. http://www.mikestechblog.com/joomla/operating-systems-section/operating-systems-ubuntu/155-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot.html The issue being that the user’s root directory is writable. The Frontier Group provides you with a fix on vsFTPd. Here are the steps to be taken (copy paste from the tutorial, in case the link dies) login as root (or sudo..) and do … Read more

chmod: cannot read directory `.’: Permission denied [closed]

Directories need the execute permission set in order to see their contents. From http://content.hccfl.edu/pollock/AUnix1/FilePermissions.htm You can think of read and execute on directories this way: directories are data files that hold two pieces of information for each file within, the file’s name and it’s inode number. Read permission is needed to access the names of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)