tag:blogger.com,1999:blog-44103962908170292162024-02-20T15:47:30.888+01:00CentOS linux server - VSFTPd virtual users MySQL configurationvsFTPd Virtual Users (with MySQL) on CentOS server (RHEL), Linux CentOS server setup, Tutorials, HowTo CentOS, CentOS linux server, RHEL install, tutorial, Red Hat Enterprise Linux, linux RPM, epelHan Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-4410396290817029216.post-77662738939893020852023-01-01T00:00:00.000+01:002010-04-21T21:01:23.647+02:00Linux CentOS 5.x for server, setup, HowTO and TutorialsThis is a HowTo and Tutorials for Linux CentOS 5.x for server configuration setup.
Suggestions, questions, comments welcome...Han Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.comtag:blogger.com,1999:blog-4410396290817029216.post-65627776573806325632021-02-08T12:00:00.006+01:002014-02-02T21:58:40.069+01:00VSFTPD Virtual users configuration (with MySQL) CentOS 5.x / RHEL 5 - HowTO examplevsFTPd Virtual Users configuration with MySQL, CentOS example, How To Set Up VSFTPD virtual users,
Setup Virtual Users and Directories in VSFTPd on CentOS 5.x/6.x, RHEL 5/6 (in my case it was CentOS 5.4 x86 32bit).
( based on Virtual Hosting With vsftpd And MySQL On Debian Etch)
Someone might find this useful, so you don't have to lose a day or two for getting it work... (as I did)...
Han Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.com23tag:blogger.com,1999:blog-4410396290817029216.post-31427485905607654452020-02-06T12:00:00.000+01:002014-02-02T21:56:45.197+01:00Incremental Backup with TAR / simple FTP to another location and email statusThis is my script for archiving incremental and full backup with TAR in Linux and then FTP that archive to another 'server' for security if server loses data.
This is not complete backup to make it possible to restore 'bare metal' for that case use Mondo Backup.
REQUIREMENTS:
The script requires GNU TAR which is capable of Incremental archiving
Optional:
The LFTP improved FTP client for LinuxHan Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.com38tag:blogger.com,1999:blog-4410396290817029216.post-76264892437727806472011-10-01T22:38:00.002+02:002011-10-05T09:53:13.069+02:00Adaptec ARCCONF getconfig - check Adaptec RAID array status/usr/Storman/arcconf getconfig 1 al - Lists information about the controllers, logical drives, and physical devices.
To check the health of Adaptec RAID array on CentOS 5 server (RHEL 5 based, also Fedora) I have modified this script using ARCCONF and run it in CRON to get emailed about the status of RAID array (I have Adaptec RAID 3405 controller).
Adaptec Storage Manager software for Han Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.com0tag:blogger.com,1999:blog-4410396290817029216.post-82815636878839316412011-06-06T11:47:00.002+02:002011-06-06T18:57:37.822+02:00Linux stopwatch / get the program execution time in shellSimple time/ stopwatch of program execution in the shell (presuming the clock on the server runs synced to NTP so it's accurate, otherwise it gets inaccurate after longer execution period):
create a shell script (ie. ftpscript.sh) and use the following code (modify the line with execute shell command):
#!/bin/sh
start=$(date +%s) ## get current time/date to $start
{ ./lftpscript.sh; } ## Han Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.com1tag:blogger.com,1999:blog-4410396290817029216.post-27442120958799546332010-04-21T22:01:00.002+02:002011-10-01T21:09:55.647+02:00What version of linux is running (determine installed version) ?Determine the Installed Version of Redhat-based Systems:
cat /etc/redhat-release
or
cat /etc/issue
you will see something like:
Linux version 2.4.21-15.EL (bhcompile@bugs.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)) #1 Thu Apr 22 00:27:41 EDT 2004
ls /etc/*release*
ls /etc/*version*
will give you a file that contains the version. Then use cat 'filename_found_ls'
Han Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.com0tag:blogger.com,1999:blog-4410396290817029216.post-31194731055111094132010-04-03T19:14:00.003+02:002011-10-01T20:49:03.291+02:00VsFTPd user with global FTP privileges (like 'root')Give VsFTPd user a global (like 'root') privileges
There's not actually need to give a Linux user FTP access to entire server; each user can access its own directory (is chrooted), which locks the user to its directory and can not browse anywhere else.
This can be useful for an admin to create a generic FTP user, with a different username and password from any users with sudo to root Han Solohttp://www.blogger.com/profile/06201100580846755178noreply@blogger.com0