Based on the
[url=http://www.inteller.net/notes/change-user-id-on-snow-leopard]notes on
inteller.net[/url] I changed the uid of my user stefan on OS X.
I wanted to do this because I use NFS for storing all important data and then
the same uid is important to have the corect rights on the files.
First I created a new user with admin rights and logged in with that user.
Then I became root by using sudo
[code]
$ sudo -i
In PostgreSQL 9.0 and up it is possible to
setup streaming
replication
(SR). When doing this, it will replicate all databases from one
server to an other.
To be able to do this the following requirements have to be met:
Same achritecture and number of bits;
Same major/minor? version should be used on both systems. (so 9.1.x with 9.1.y = major);
Same OS or psql source.
The steps to setup SR on the PostgreSQL wiki ?expect? that the source
code is used to setup the PostgreSQL installations. In this post Debian
packages of postgresql-9.1 will be used to setup SR .
This blogpost was original posted on
[url=http://blog.capitar.com/create-ssh-jail-rsync/]capitar’s blog[/url].
Sometimes you want to allow people to put stuff on your webserver in a secure
way, but not give them a shell account. You can use rsync and ssh jail via
public key authentication to accomplish this.
The public key has to be in the authorized_keys file in the normal
home directory of the user (/home/user/.ssh/authorized_keys)
when importing the key put the following on the same line as the key, before
the public key: