Taing Nguon wrote:
>
> Dear sir or madam
>
> MySQL user's account is not related to user's account on Linux System, so they
>can be different.
>
> My problem is that I use perl DBI to interact MySQL server as belows:
>
> ------
> use DBI;
> $dbh = DBI->connect("DBI:mysql:DatabaseName","$user","$password");
>
> -------
>
> So $user and $password can be known by any users in Linux system because they are
>written in text format and DataBase can be changed or updated by other users in Linux
>system easily by using Perl DBI. Is there any way to prevent Database from being
>changed? Millon of thanks!!!!
>
> Regards
>
> Taing Nguon
Taing:
I use php3 to do my apps for web applications and chown the /www/ files to
www.www and chmod them to 0750 with the server running as user www.
This prevents any users from viewing the source code: i.e. the /www/ files that
contain your perl scripts. This might be an option for you if the perl user can
run as www.www and you can run those perl scripts as user www within the web
context.
This is just how I do it, but, others might have different implementations.
Best Regards,
Van
--
=========================================================================
Linux rocks!!! http://www.dedserius.com
=========================================================================
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php