Cygwin
November 04, 2005
Information about installing MySQL and DBD::MySQL on Cygwin
search.cpan.org: INSTALL - How to install and configure DBD::mysql
The trick is, once installed, it needs to be run thus:
cd /usr/local/mysql/bin
./mysql -h 127.0.0.1
Posted by pj at 02:01 PM
Setting up ProFTPd as a Windows service under Cygwin
In order to run ProFTPd as a Windows service under Cygwin the following needs to be set in the /etc/proftpd.conf
file:
# Set the user and group under which the server will run. User SYSTEM Group Administrators # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~
The server can then be run as a service:
cygrunsrv --install proftpd \ --path /usr/sbin/proftpd.exe \ --args "--nodaemon" \ --type manual \ --disp "CYGWIN proftpd" \ --desc "ProFTPd FTP daemon"
Then it needs to be run:
cygsrunsrv --start proftpd
Posted by pj at 09:19 AM
November 02, 2005
How to add new users in Cygwin for SFTP access
In Windows, under Control Panel \ Administrative Tools \ Computer Management add a new user. If our new user is thingy
In cygwin as Administrator, type:
mkpasswd -l | grep thingy >> /etc/passwd
This adds a line to the passwords file for the new user.
You can then go in and change the user's home directory entry to the folder you wish them to access via sftp.
Posted by pj at 05:17 PM