• Home
  • About
  • Contact

SysAdmin Tips

Lots of useful sysadmin information

  • Cheatsheets
  • FreeBSD
    • Configuration and Setup
    • Troubleshooting
  • Hardware
  • Linux
    • All distributions
    • Debian/Ubuntu
  • Services
    • Databases
    • DLNA
    • DNS
    • LDAP
    • Mail
    • Samba
    • SSH
    • Version Control
    • Web Server
  • Solaris
    • System
  • DNS
  • LDAP
  • Web Server
  • DLNA
  • Databases
  • Version Control
  • Samba
  • SSH
  • Mail
You are here: Home » Services

PostgreSQL: ERROR: permission denied to reassign objects

toshiro August 5, 2018 PostgreSQL: ERROR: permission denied to reassign objects2018-08-05T16:43:57+00:00 Databases No Comment
When reassigning all database objects to a new owner in PostgreSQL you might get this error: mydb=> REASSIGN OWNED BY admin TO new_admin; ERROR: permission denied to reassign objects This…
Continue Reading »

flush deferred messages in mail queue

toshiro April 18, 2018 flush deferred messages in mail queue2018-04-18T20:14:59+00:00 Mail No Comment
In Exim: # exim -qff In Postfix: # postfix flush In Sendmail: # sendmail -q -v
Continue Reading »

move IMAP messages from one server to another

toshiro December 17, 2016 move IMAP messages from one server to another2016-12-17T18:49:29+00:00 Mail No Comment
Use larch to migrate the data stored in a user's IMAP account. To install it on Debian/Ubuntu: # apt-get install larch When executing larch, it will prompt the source and…
Continue Reading »

git basic commands

toshiro December 15, 2016 git basic commands2017-09-27T20:27:25+00:00 Version Control No Comment
List differences between versions of a file Differences in content between the working directory and the staging area: $ git diff Differences in content between the last commit and the…
Continue Reading »

subversion basic commands

toshiro December 12, 2016 subversion basic commands2016-12-12T12:29:51+00:00 Version Control No Comment
Create a repository in /home/svn $ svnadmin create --fs-type fsfs /home/svn Import an existing project located in /soft/project into the newly created repository $ svn import /soft/project/ file:///home/svn/project/trunk -m 'Initial…
Continue Reading »

find location of database files

toshiro December 7, 2016 find location of database files2016-12-07T13:16:04+00:00 Databases No Comment
MySQL 1. Connect to the mysql console: # mysql -p 2. Look the value of 'datadir' variable to find the location of database files: mysql> SHOW VARIABLES WHERE Variable_Name =…
Continue Reading »

mysql: change a user’s password

toshiro December 6, 2016 mysql: change a user’s password2016-12-06T15:13:36+00:00 Databases No Comment
1. Login to mysql server with a user with enough privileges (usually root) $ mysql -u root -p 2. Select the database 'mysql' mysql> use mysql; 3. Modify the password…
Continue Reading »

postfix: analyse logs using pflogsumm

toshiro December 5, 2016 postfix: analyse logs using pflogsumm2016-12-05T14:12:07+00:00 Mail No Comment
pflogsumm is a great tool to quickly analyse Postfix log files. To install it: // Debian based distros # apt get install pflogsumm You can also it directly from the…
Continue Reading »

apache: PHP not working in UserDir

toshiro December 4, 2016 apache: PHP not working in UserDir2016-12-04T14:21:22+00:00 Web Server No Comment
Some versions of Debian based distros (like Ubuntu) disable by default the usage of PHP in userdir websites (http://server/~user). To enable, remove the following lines from /etc/apache2/mods-: <IfModule > <Directory…
Continue Reading »

Permission denied: exec of … failed in apache

toshiro December 3, 2016 Permission denied: exec of … failed in apache2016-12-03T18:31:02+00:00 Web Server No Comment
If apache returns 'Permission denied: exec of <filename> failed' then you are in two possible situations: 1. 'filename' IS A CGI SCRIPT There could be several reasons for this, for…
Continue Reading »
123

Categories

Tags

64bits active directory admin tools apache bind cassandra cheatsheet cpu database debian dlna dns e173 freebsd git grub huawei iso label linux lsof mail mirror modem modules mtools multimedia mysql openldap password pkg ports postfix postgresql raid replication salt samba samba4 solaris ssh troubleshooting ubuntu usb www

Login

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2016 Toshiro Viera Stalker - All rights reserved