<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-16710470</id><updated>2011-12-09T11:44:26.030+08:00</updated><title type='text'>On the Net</title><subtitle type='html'>Nothing really important on it,but might be important later.... it'll be about, general computing, networks, cisco    and linux and its internal, but please be warned, that I am not an expert on these stuffs, so I'm not responsible if doing something based on this page cause you trouble. Its like an archive of those related to my work so I might not forget them the time I'll have to do those task again.
PEACE!!!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-16710470.post-6789880081856294587</id><published>2010-10-18T18:04:00.001+08:00</published><updated>2010-10-18T18:04:24.396+08:00</updated><title type='text'>Creating a restriction on sending to a particular user or group</title><content type='html'>Requirement:&lt;br /&gt;&lt;br /&gt; email / group email: test_group001@mydomain.com&lt;br /&gt; Allowed on to send on this mail is only good.user@yahoo.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Setup:&lt;br /&gt;&lt;br /&gt; 1. Existing working smtp postfix server.&lt;br /&gt;&lt;br /&gt; Needed configs:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. mkdir /etc/postfix/global_restriction&lt;br /&gt;2. create a file /etc/postfix/global_restriction/global_group_allowed&lt;br /&gt;    #/etc/postfix/global_restriction/global_group_allowed&lt;br /&gt;    #entry for that file:&lt;br /&gt;    good.user@yahoo.com    OK&lt;br /&gt;&lt;br /&gt;3. create a file /etc/postfix/global_restriction/global_group_restriction&lt;br /&gt;    #/etc/postfix/global_restriction/global_group_restriction&lt;br /&gt;    #entry for the file below:&lt;br /&gt;    test_group001@  class_allowed_to_send_to_global_group&lt;br /&gt;   &lt;br /&gt;4. Create a restriction class at /etc/postfix/main.cf&lt;br /&gt;&lt;br /&gt;Below should exist on that file:&lt;br /&gt;&lt;br /&gt;smtpd_recipient_restrictions =&lt;br /&gt;        check_recipient_access hash:/etc/postfix/global_restriction/global_group_restriction&lt;br /&gt;        permit_mynetworks&lt;br /&gt;        #premit my network should be under check_recipinet_access so it will not allow thus sender with network&lt;br /&gt;&lt;br /&gt;smtpd_client_restrictions =&lt;br /&gt;        check_recipient_access hash:/etc/postfix/global_restriction/global_group_restriction&lt;br /&gt;        permit_mynetworks&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;smtpd_restriction_classes = class_allowed_to_send_to_global_group&lt;br /&gt;class_allowed_to_send_to_global_group = check_sender_access hash:/etc/postfix/global_restriction/global_group_allowed, reject&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. After creating, postmap all related file and postfix reload&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-6789880081856294587?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/6789880081856294587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=6789880081856294587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/6789880081856294587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/6789880081856294587'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2010/10/creating-restriction-on-sending-to.html' title='Creating a restriction on sending to a particular user or group'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-8373686701784410674</id><published>2007-10-19T19:57:00.000+08:00</published><updated>2007-10-19T21:23:37.449+08:00</updated><title type='text'>Making your ssh server to act as a gateway by port forwarding</title><content type='html'>Ok, this is quick. My objective is to access the web, webmin and ssh of serverX. See below the text diagram.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[My Linux desktop]&lt;--&gt;[Routers]&lt;--&gt;[ssh server]&lt;--&gt;[routers]&lt;--&gt;[serverX]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Here's how.&lt;br /&gt;&lt;br /&gt;-Create a file named config inside your $HOME/.ssh/ &lt;br /&gt;&lt;code&gt;&lt;br /&gt;#.ssh/config&lt;br /&gt;        User root&lt;br /&gt;        LocalForward 20000 10.9.2.6:80&lt;br /&gt;        LocalForward 22000 10.9.2.6:22&lt;br /&gt;        LocalForward 20001 10.9.2.6:10000&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;I'm accessing as root, and the IP Add is the IP of serverX, you may put the hostname if you have it on you host file or dns. Ok, when finished on the file, if I connect to the ssh server..&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[root@my desktop ~]# ssh -l root ssh-server&lt;br /&gt;root@ssh-server's password:&lt;br /&gt;[root@ssh-server ~]#&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;After able to established an ssh connection, on my local terminal, those ports listed on the file will open.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;tcp        0      0 127.0.0.1:20000             0.0.0.0:*                   LISTEN      26163/ssh&lt;br /&gt;tcp        0      0 127.0.0.1:20001             0.0.0.0:*                   LISTEN      26163/ssh&lt;br /&gt;tcp        0      0 127.0.0.1:22000             0.0.0.0:*                   LISTEN      26163/ssh&lt;br /&gt;tcp        0      0 127.0.0.1:46279             127.0.0.1:22000             ESTABLISHED 26166/ssh&lt;br /&gt;tcp        0      0 127.0.0.1:22000             127.0.0.1:46279             ESTABLISHED 26163/ssh&lt;br /&gt;tcp        0      0 127.0.0.1:40487             127.0.0.1:20000             TIME_WAIT   -&lt;br /&gt;tcp        0      0 ::1:20000                   :::*                        LISTEN      26163/ssh&lt;br /&gt;tcp        0      0 ::1:20001                   :::*                        LISTEN      26163/ssh&lt;br /&gt;tcp        0      0 ::1:22000                   :::*                        LISTEN      26163/ssh&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then you can just access those locally and you are going to be connected to the serverX via ssh. If you wish to access serverX web server, just open a the your browser with url&lt;br /&gt;&lt;code&gt;&lt;br /&gt;http://127.0.0.1:20000&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;or if you wish to open the webmin, then type &lt;br /&gt;&lt;code&gt;&lt;br /&gt;http://127.0.0.1:20001&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Note: Don not dis engaged your ssh connection to the ssh server, else you wont be able to connect on those 2xxxx ports.&lt;br /&gt;&lt;br /&gt;Well, its not an original trick, just found those by searching, I just need to compile for future reference.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-8373686701784410674?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/8373686701784410674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=8373686701784410674' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/8373686701784410674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/8373686701784410674'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2007/10/making-your-ssh-server-to-act-as.html' title='Making your ssh server to act as a gateway by port forwarding'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-5195153256611676696</id><published>2007-10-01T02:24:00.000+08:00</published><updated>2007-10-01T02:38:09.926+08:00</updated><title type='text'>VNC Server on Mandriva 2007</title><content type='html'>Accessing Mandriva desktop remotely via vncviewer.&lt;br /&gt;&lt;br /&gt;-Install x11vnc via urpmi.&lt;br /&gt;-Generate vnc password, use the command vncpasswd command, it can be done as a user.&lt;br /&gt;-Lunch VNC server as a user from cli, use the command &lt;br /&gt;&lt;code&gt;&lt;br /&gt;x11vnc -usepw&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;the -usepw command option allows the remote user to enter a password to access via VNCViewer. Thus the password that you assign using the vncpasswd command should be use.&lt;br /&gt;&lt;br /&gt;Logs generated by the command above when running it on the foregorund.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;snip...&lt;br /&gt;&lt;br /&gt; raw_fb:      (nil)&lt;br /&gt; fake_fb:     (nil)&lt;br /&gt;&lt;br /&gt;01/10/2007 02:31:54 setting up 32 cursors...&lt;br /&gt;01/10/2007 02:31:54   done.&lt;br /&gt;01/10/2007 02:31:54&lt;br /&gt;01/10/2007 02:31:54 Autoprobing TCP port&lt;br /&gt;01/10/2007 02:31:54 Autoprobing selected port 5900&lt;br /&gt;01/10/2007 02:31:54 Xinerama: disabling: display does not support it.&lt;br /&gt;01/10/2007 02:31:54 created 32 tile_row shm polling images.&lt;br /&gt;01/10/2007 02:31:54 fb read rate: 10 MB/sec&lt;br /&gt;01/10/2007 02:31:54 screen setup finished.&lt;br /&gt;01/10/2007 02:31:54&lt;br /&gt;The VNC desktop is:      mandrivadesktop001:0&lt;br /&gt;PORT=5900&lt;br /&gt;          &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Followed by a log when someone made a connection remotely then disconnects.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;01/10/2007 02:34:02 Got connection from client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:02   other clients:&lt;br /&gt;01/10/2007 02:34:02 Disabled X server key autorepeat.&lt;br /&gt;01/10/2007 02:34:02   to force back on run: 'xset r on' (3 times)&lt;br /&gt;01/10/2007 02:34:02 created xdamage object: 0x3800024&lt;br /&gt;01/10/2007 02:34:02 Client Protocol Version 3.5&lt;br /&gt;01/10/2007 02:34:02 Protocol version sent 3.5, using 3.5&lt;br /&gt;01/10/2007 02:34:06 Pixel format for client 10.10.9.7:&lt;br /&gt;01/10/2007 02:34:06   16 bpp, depth 16, little endian&lt;br /&gt;01/10/2007 02:34:06   true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0&lt;br /&gt;01/10/2007 02:34:06 no translation needed&lt;br /&gt;01/10/2007 02:34:06 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex&lt;br /&gt;01/10/2007 02:34:06 Using compression level 9 for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:06 Enabling X-style cursor updates for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:06 Enabling full-color cursor updates for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:06 Enabling cursor position updates for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:06 Using image quality level 0 for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:06 Enabling LastRect protocol extension for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:06 Enabling NewFBSize protocol extension for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:06 Using tight encoding for client 10.10.9.7&lt;br /&gt;01/10/2007 02:34:11 client_count: 0&lt;br /&gt;01/10/2007 02:34:11 Restored X server key autorepeat to: 1&lt;br /&gt;01/10/2007 02:34:11 viewer exited.&lt;br /&gt;01/10/2007 02:34:11 deleted 32 tile_row polling images.&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Peace!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-5195153256611676696?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/5195153256611676696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=5195153256611676696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/5195153256611676696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/5195153256611676696'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2007/10/vnc-server-on-mandriva-2007.html' title='VNC Server on Mandriva 2007'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-7361955732845299352</id><published>2007-09-21T21:39:00.000+08:00</published><updated>2007-09-21T21:48:17.312+08:00</updated><title type='text'>Quick TimeZone setting on Centos</title><content type='html'>This is a quick way of setting timezone on Centos Box, this may be similar on other distro or may differ a little, but I have to put it here for future reference.&lt;br /&gt;&lt;br /&gt;HowTo:&lt;br /&gt;It can be done as root&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;cd /etc&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;If you hava a localtime file on /etc, you may just have to rename it. Then after renaming, do the command below:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ln -sf /usr/share/zoneinfo/Asia/Manila localtime&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Here, I'm setting the time to Manila or Philippines Time Zone, or you may select particular timezone inside /usr/share/zoneinfo/&lt;br /&gt;&lt;br /&gt;Ciao!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-7361955732845299352?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/7361955732845299352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=7361955732845299352' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/7361955732845299352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/7361955732845299352'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2007/09/quick-timezone-setting-on-centos.html' title='Quick TimeZone setting on Centos'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-5227515128719147506</id><published>2007-08-21T00:01:00.000+08:00</published><updated>2007-08-21T01:05:58.438+08:00</updated><title type='text'>Authenticating Linux to Active Directory</title><content type='html'>&lt;span style="font-weight: bold;"&gt;I will describe here joining a Linux Centos 4.4 host to Windows 2003 Active Directory.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Files to consider&lt;br /&gt;&lt;code&gt;&lt;br /&gt;/etc/samba/smb.conf&lt;br /&gt;/etc/krb5.conf&lt;br /&gt;/etc/pam.d/system-auth&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Package that should be installed:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;samba-common&lt;br /&gt;samba (samba-server)&lt;br /&gt;krb5-libs&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;My Configuration files:&lt;br /&gt;&lt;conf&gt;/etc/samba/smb.conf&lt;/conf&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#/etc/samba/smb.conf&lt;br /&gt;[global]&lt;br /&gt;&lt;br /&gt;workgroup = mydomain&lt;br /&gt;realm = MYDOMAIN.COM&lt;br /&gt;netbios name = linuxhost&lt;br /&gt;security = ads&lt;br /&gt;encrypt passwords = yes&lt;br /&gt;log file = /var/log/samba/%m.log&lt;br /&gt;log level = 2&lt;br /&gt;max log size = 50&lt;br /&gt;socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192&lt;br /&gt;winbind separator = +&lt;br /&gt;idmap uid = 10000-20000&lt;br /&gt;idmap gid = 10000-20000&lt;br /&gt;winbind enum users=yes&lt;br /&gt;winbind enum groups=yes&lt;br /&gt;template homedir = /home/%D/%U&lt;br /&gt;template shell = /bin/bash&lt;br /&gt;winbind use default domain = yes&lt;br /&gt;&lt;/code&gt;&lt;br&gt;&lt;br /&gt;&lt;conf&gt;/etc/krb5.conf&lt;/conf&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[logging]&lt;br /&gt; default = FILE:/var/log/krb5libs.log&lt;br /&gt; kdc = FILE:/var/log/krb5kdc.log&lt;br /&gt; admin_server = FILE:/var/log/kadmind.log&lt;br /&gt;&lt;br /&gt;[libdefaults]&lt;br /&gt; default_realm = mydomain.com&lt;br /&gt; dns_lookup_realm = true&lt;br /&gt; dns_lookup_kdc = true&lt;br /&gt; ticket_lifetime = 24h&lt;br /&gt; forwardable = yes&lt;br /&gt; default_tgs_enctypes = DES-CBC-CRC DES-CBC-MD5 RC4-HMAC&lt;br /&gt; default_tkt_enctypes = DES-CBC-CRC DES-CBC-MD5 RC4-HMAC&lt;br /&gt; preferred_enctypes = DES-CBC-CRC DES-CBC-MD5 RC4-HMAC&lt;br /&gt;&lt;br /&gt;[realms]&lt;br /&gt; mydomain.com = {&lt;br /&gt;  kdc = srvad01.mydomain.com:88&lt;br /&gt;  admin_server = 192.168.1.10:749&lt;br /&gt;  default_domain = mydomain.com&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; MYDOMAIN.COM = {&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;[domain_realm]&lt;br /&gt;# .example.com = EXAMPLE.COM&lt;br /&gt; example.com = mydomain.com&lt;br /&gt;&lt;br /&gt;[kdc]&lt;br /&gt; profile = /var/kerberos/krb5kdc/kdc.conf&lt;br /&gt;&lt;br /&gt;[appdefaults]&lt;br /&gt; pam = {&lt;br /&gt;   debug = false&lt;br /&gt;   ticket_lifetime = 36000&lt;br /&gt;   renew_lifetime = 36000&lt;br /&gt;   forwardable = true&lt;br /&gt;   krb4_convert = false&lt;br /&gt; }&lt;br /&gt;&lt;/code&gt;&lt;br&gt;&lt;br /&gt;And the most important entry is the &lt;br /&gt;&lt;conf&gt;&lt;br /&gt;/etc/pam.d/system-auth&lt;br /&gt;&lt;/conf&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#%PAM-1.0&lt;br /&gt;# This file is auto-generated.&lt;br /&gt;# User changes will be destroyed the next time authconfig is run.&lt;br /&gt;auth        required      /lib/security/$ISA/pam_env.so&lt;br /&gt;auth        sufficient    /lib/security/$ISA/pam_unix.so likeauth nullok&lt;br /&gt;auth        sufficient    /lib/security/$ISA/pam_winbind.so use_first_pass&lt;br /&gt;auth        required      /lib/security/$ISA/pam_deny.so&lt;br /&gt;&lt;br /&gt;account     required      /lib/security/$ISA/pam_unix.so broken_shadow&lt;br /&gt;account     sufficient    /lib/security/$ISA/pam_succeed_if.so uid &lt; 100 quiet&lt;br /&gt;account     [default=bad success=ok user_unknown=ignore] /lib/security/$ISA/pam_winbind.so&lt;br /&gt;account     required      /lib/security/$ISA/pam_permit.so&lt;br /&gt;&lt;br /&gt;password    requisite     /lib/security/$ISA/pam_cracklib.so retry=3&lt;br /&gt;password    sufficient    /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow&lt;br /&gt;password    sufficient    /lib/security/$ISA/pam_winbind.so use_authtok&lt;br /&gt;password    required      /lib/security/$ISA/pam_deny.so&lt;br /&gt;&lt;br /&gt;session     required      pam_mkhomedir.so skel=/etc/skel/ umask=0022&lt;br /&gt;session     required      /lib/security/$ISA/pam_limits.so&lt;br /&gt;session     required      /lib/security/$ISA/pam_unix.so&lt;br /&gt;&lt;/code&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;Ok, Dont forget to change the mydomain.com to the legitimate domain name of your AD and the srv01.mydomain.com to the hostname of AD.&lt;br /&gt;&lt;br /&gt;Also make sure that you have an Administrator or Domain admin rights on that AD since it is required when joining the domain.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;After having those files on your host, try to restart the ff: by the command.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;/etc/init.d/winbind restart&lt;br /&gt;/etc/init.d/smb restart&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;I know there are other command to do that, it just how I did it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;Then, to join to the domain or AD, issue the command&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;net ads join -U adminstrator@MYDOMAIN.COM&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;the there should be similar message that should appear upon joining. see below&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[root@gw1 ~]# net join -U administrator@MYDOMAIN.COM&lt;br /&gt;administrator@MYDOMAIN.COM's password:&lt;br /&gt;[2007/08/21 00:50:37, 0] libads/ldap.c:ads_add_machine_acct(1368)&lt;br /&gt;  ads_add_machine_acct: Host account for linuxhost already exists - modifying old account&lt;br /&gt;Using short domain name -- MYDOMAIN&lt;br /&gt;[2007/08/21 00:50:37, 0] libads/kerberos.c:get_service_ticket(335)&lt;br /&gt;  get_service_ticket: kerberos_kinit_password LINUXHOST$@MYDOMAIN.COM@MYDOMAIN.COM failed: Preauthentication failed&lt;br /&gt;Segmentation fault&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;Opssss, troubleshooting....&lt;br /&gt;What I did was removing the files at /var/cache/samba/&lt;br /&gt;command:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;rm -rf /var/cache/samba/*&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;then issue again the command "net ads join"&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[root@gw1 ~]# net join -U administrator@MYDOMAIN.COM&lt;br /&gt;administrator@MYDOMAIN.COM's password:&lt;br /&gt;[2007/08/21 00:51:04, 0] libads/ldap.c:ads_add_machine_acct(1368)&lt;br /&gt;  ads_add_machine_acct: Host account for linuxhost already exists - modifying old account&lt;br /&gt;Using short domain name -- MYDOMAIN&lt;br /&gt;Joined 'LINUXHOST' to realm 'MYDOMAIN.COM'&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now it joined successfully.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;Issue the command "getent passwd" and it should display all the users registered on your AD&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-5227515128719147506?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/5227515128719147506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=5227515128719147506' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/5227515128719147506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/5227515128719147506'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2007/08/authenticating-linux-to-active.html' title='Authenticating Linux to Active Directory'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-115682275984642758</id><published>2006-08-29T11:38:00.000+08:00</published><updated>2006-08-29T11:42:44.366+08:00</updated><title type='text'>Adding my existing Centos Box to also authenticate to my LDAP Server</title><content type='html'>Ok, since I can now authenticate to my LDAP Server from my Mandriva box, I want to add the existing Centos Box that acted as a fileserver and dial-in server to authenticate to the same LDAP Server.&lt;br /&gt;&lt;br /&gt;On the Centos Box, I have the following package installed:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;openldap-2.2.13-4&lt;br /&gt;nss_ldap-226-10&lt;br /&gt;compat-openldap-2.1.30-4&lt;br /&gt;openldap-clients-2.2.13-4&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;On this box, I dont have X running so all the configuration is via CLI. To start with, I open the konsole, log as root then run &lt;conf&gt;authconfig&lt;/conf&gt;, when prompted on something, make sure to enable ldap authentication method.. see image...&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i47.photobucket.com/albums/f173/bankerohan/authconfig.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://i47.photobucket.com/albums/f173/bankerohan/authconfig.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;ok, on my box, after doing that, It should automatically touch and modified /etc/nsswitch.conf but it did'nt (or maybe I'm wrong), so I manually modified that /etc/nsswitch.conf&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;br /&gt;passwd:     files ldap&lt;br /&gt;shadow:     files ldap&lt;br /&gt;group:      files ldap&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I added the word &lt;conf&gt;ldap&lt;/conf&gt; after the word &lt;conf&gt;files&lt;/conf&gt;, so I can retain the machine to still login using the local users, incase the ldap server is not available.&lt;br /&gt;&lt;br /&gt;Below are my working config files, which also allows ldap users to change their own password using the command passwd:&lt;br /&gt;&lt;br /&gt;/etc/pam.d/system-auth&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;blockquote&gt;&lt;br /&gt;#%PAM-1.0&lt;br /&gt;# This file is auto-generated.&lt;br /&gt;# User changes will be destroyed the next time authconfig is run.&lt;br /&gt;auth        required      /lib/security/$ISA/pam_env.so&lt;br /&gt;auth        sufficient    /lib/security/$ISA/pam_unix.so&lt;br /&gt;auth        sufficient    /lib/security/$ISA/pam_ldap.so likeauth nullok use_first_pass&lt;br /&gt;auth        required      /lib/security/$ISA/pam_deny.so&lt;br /&gt;&lt;br /&gt;account     required      /lib/security/$ISA/pam_unix.so broken_shadow&lt;br /&gt;account     sufficient    /lib/security/$ISA/pam_succeed_if.so uid &lt; 100 quiet&lt;br /&gt;account     sufficient    /lib/security/$ISA/pam_ldap.so&lt;br /&gt;#account     [default=bad success=ok user_unknown=ignore] /lib/security/$ISA/pam_ldap.so&lt;br /&gt;account     required      /lib/security/$ISA/pam_permit.so&lt;br /&gt;&lt;br /&gt;password    requisite     /lib/security/$ISA/pam_cracklib.so retry=3&lt;br /&gt;password    sufficient    /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow&lt;br /&gt;password    sufficient    /lib/security/$ISA/pam_ldap.so use_authtok&lt;br /&gt;password    required      /lib/security/$ISA/pam_deny.so&lt;br /&gt;&lt;br /&gt;session     optional      /lib/security/$ISA/pam_mkhomedir.so skel=/etc/skel/ umask=0022&lt;br /&gt;session     required      /lib/security/$ISA/pam_limits.so&lt;br /&gt;session     required      /lib/security/$ISA/pam_unix.so&lt;br /&gt;session     optional      /lib/security/$ISA/pam_ldap.so&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;and my /etc/pam.d/passwd file&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;blockquote&gt;&lt;br /&gt;#%PAM-1.0&lt;br /&gt;#auth       required    pam_stack.so service=system-auth&lt;br /&gt;#account    required    pam_stack.so service=system-auth&lt;br /&gt;#password   required    pam_stack.so service=system-auth&lt;br /&gt;password        sufficient      pam_ldap.so&lt;br /&gt;password        required        pam_unix.so nullok obscure min=4 max=8&lt;br /&gt;&lt;/blockquote&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;and my /etc/ldap.conf&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#I'm using stunnel, so the value of host should be localhost&lt;br /&gt;host 127.0.0.1&lt;br /&gt;base dc=duriancity,dc=dvo&lt;br /&gt;ldap_version 3&lt;br /&gt;scope one&lt;br /&gt;pam_filter objectclass=posixaccount&lt;br /&gt;pam_login_attribute uid&lt;br /&gt;pam_member_attribute gid&lt;br /&gt;pam_password crypt&lt;br /&gt;nss_base_passwd dc=duriancity,dc=dvo?sub&lt;br /&gt;nss_base_passwd ou=People,dc=duriancity,dc=dvo?one&lt;br /&gt;nss_base_shadow dc=duriancity,dc=dvo?sub&lt;br /&gt;nss_base_group dc=duriancity,dc=dvo?sub&lt;br /&gt;ssl no&lt;br /&gt;&lt;/blockquote&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;and create the file /etc/stunnel/stunnel.conf&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;chroot = /home/stunnel&lt;br /&gt;pid = /stunnel.pid&lt;br /&gt;setuid = stunnel&lt;br /&gt;setgid = stunnel&lt;br /&gt;#configure logging&lt;br /&gt;debug = 7&lt;br /&gt;output = /var/log/messages&lt;br /&gt;#client mode&lt;br /&gt;client = yes&lt;br /&gt;#Service level config&lt;br /&gt;[ldap]&lt;br /&gt;accept = 389&lt;br /&gt;connect = 172.16.0.250:636&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;then create the user stunnel and then lock that user&lt;br /&gt;&lt;br /&gt;To test if its working, issue the command&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;getent passwd&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;It should display the ldap users together with other existing local users&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-115682275984642758?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/115682275984642758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=115682275984642758' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115682275984642758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115682275984642758'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/08/adding-my-existing-centos-box-to-also.html' title='Adding my existing Centos Box to also authenticate to my LDAP Server'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-115527517584621497</id><published>2006-08-11T13:30:00.000+08:00</published><updated>2006-08-29T10:26:17.203+08:00</updated><title type='text'>LDAP Authentication server for Linux Users - basics</title><content type='html'>The scenario:&lt;br /&gt;&lt;br /&gt;1. Setup an OpenLDAP server for Central authentication of Linux Users.&lt;br /&gt;&lt;br /&gt;2. Let users change their password from client PC using the normal passwd command&lt;br /&gt;&lt;br /&gt;3. The LDAP server resides at Centos Box&lt;br /&gt;&lt;br /&gt;4. The client PCs are mandriva, or mix later&lt;br /&gt;-------------------------------------------------&lt;br /&gt;&lt;br /&gt;1. Install and Setup OpenLDAP server on Centos.&lt;br /&gt;&lt;br /&gt;the following openldap packages installed on my Centos BOX&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;openldap.i386                            2.2.13-4               installed&lt;br /&gt;openldap-clients.i386                    2.2.13-4               installed&lt;br /&gt;openldap-devel.i386                      2.2.13-4               installed&lt;br /&gt;openldap-servers.i386                    2.2.13-4               installed&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Files and folders to remember&lt;br /&gt;- /etc/openldap/slapd.conf - configuration files&lt;br /&gt;- /etc/ldap.conf - clients conf file&lt;br /&gt;- /usr/share/openldap/migration/ - migration tools here&lt;br /&gt;- /var/lib/ldap/ - default location where the dtabase be installed&lt;br /&gt;&lt;br /&gt;Now on my system, I install LDAP via yum, so it uses the RPM package of Centos.&lt;br /&gt;&lt;br /&gt;Here's the contents of my /etc/openldap/slapd.conf&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#&lt;br /&gt;# See slapd.conf(5) for details on configuration options.&lt;br /&gt;# This file should NOT be world readable.&lt;br /&gt;#&lt;br /&gt;include         /etc/openldap/schema/core.schema&lt;br /&gt;include         /etc/openldap/schema/cosine.schema&lt;br /&gt;include         /etc/openldap/schema/inetorgperson.schema&lt;br /&gt;include         /etc/openldap/schema/nis.schema&lt;br /&gt;#&lt;br /&gt;#Define ACL&lt;br /&gt;#include                /etc/openldap/slap.acl.conf&lt;br /&gt;# Allow LDAPv2 client connections.  This is NOT the default.&lt;br /&gt;allow bind_v2&lt;br /&gt;#&lt;br /&gt;loglevel        296&lt;br /&gt;pidfile         /var/run/slapd.pid&lt;br /&gt;argsfile        /var/run/slapd.args&lt;br /&gt;#&lt;br /&gt;#Below allows users to change their own password&lt;br /&gt;access to attr=userPassword&lt;br /&gt;            by self write&lt;br /&gt;            by anonymous auth&lt;br /&gt;            by dn.base="cn=ldapadmin,dc=duriancity,dc=dvo" write&lt;br /&gt;            by * none&lt;br /&gt;access to *&lt;br /&gt;            by self write&lt;br /&gt;            by dn.base="cn=ldapadmin,dc=duriancity,dc=dvo" write&lt;br /&gt;            by * read&lt;br /&gt;#&lt;br /&gt;database        ldbm&lt;br /&gt;suffix          "dc=duriancity,dc=dvo"&lt;br /&gt;rootdn          "cn=ldapadmin,dc=duriancity,dc=dvo"&lt;br /&gt;rootpw          {SSHA}pgsjjjklsfghrrhh53644fhmd85utuegjH3NM+DJH569XZc&lt;br /&gt;#&lt;br /&gt;#The duriancity.dvo directory had been manually created then changed its ownership to ldap&lt;br /&gt;directory       /var/lib/ldap/duriancity.dvo&lt;br /&gt;#&lt;br /&gt;#RW file mode defined&lt;br /&gt;mode            0600&lt;br /&gt;# Indices to maintain for this database&lt;br /&gt;index   objectClass,uid,uidNumber,gidNumber,memberUid   eq&lt;br /&gt;#&lt;br /&gt;#End of Config File&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Generating the rootpw:&lt;br /&gt;&lt;br /&gt;Open a konsole then issue the command as root:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;[root@linux-ldap-server ~]# slappasswd&lt;br /&gt;New password:&lt;br /&gt;Re-enter new password:&lt;br /&gt;{SSHA}pgsjjjklsfghrrhh53644fhmd85utuegjH3NM+DJH569XZc&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Then make sure ldap run as a service.&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;chkconfig ldap on&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;then start the service&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;/etc/init.d/ldap start&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;by default, it should listen to port 389&lt;br /&gt;---------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Some basic explanation:&lt;br /&gt;&lt;br /&gt;-&lt;code&gt;loglevel = 296&lt;/code&gt; -  logging level is set to 296, which equals 8 + 32 + 256 (got this from Oreilly Book)&lt;br /&gt;   Defination:&lt;br /&gt;   8 - Connection management&lt;br /&gt;   32 - Search filter processing&lt;br /&gt;   256 - Statistics for connection, operations, and results&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;          OpenLDAP Logging levels Table&lt;br /&gt;  Level    Information recorded&lt;br /&gt;  -1    All logging information&lt;br /&gt;   0    No Logging information&lt;br /&gt;   1    Trace function calls&lt;br /&gt;   2    Packet-handling debugging information&lt;br /&gt;   4    Heavy trace debugging&lt;br /&gt;   8    Connection management&lt;br /&gt;   16    Packets sent and received&lt;br /&gt;   32    Search filter processing&lt;br /&gt;   64    Configuration file processing&lt;br /&gt;   128    Access control list processing&lt;br /&gt;   256    Statistics for connection, operations, and results&lt;br /&gt;   512    Statistics for results returned to clients&lt;br /&gt;   1024    Communication with shell backends&lt;br /&gt;   2048    Print entry parsing debug information&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;then append &lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;local4.debug          /var/log/slapd.log&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;on the file&lt;br /&gt;&lt;br /&gt;/etc/syslog.conf &lt;br /&gt;&lt;br /&gt;and by that, you can view the logs by the command, as root:&lt;br /&gt;&lt;blockquote&gt;tail -f /var/log/slapd.log&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;-&lt;code&gt;cn=ldapadmin&lt;/code&gt; - it could be any name, root, admin, but the default is Manager&lt;br /&gt;&lt;br /&gt;-&lt;code&gt;rootpw&lt;/code&gt; - the value could be generated by the command slappasswd&lt;br /&gt;&lt;br /&gt;Now, I need to create an ldif file for duriancity.dvo, below is the format&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#/etc/openldap/duriancity.dvo.ldif&lt;br /&gt;dn: dc=example,dc=com&lt;br /&gt;dc: example&lt;br /&gt;description: Root LDAP entry for example.com&lt;br /&gt;objectClass: dcObject&lt;br /&gt;objectClass: organizationalUnit&lt;br /&gt;ou: rootobject&lt;br /&gt;&lt;br /&gt;dn: ou=People, dc=example,dc=com&lt;br /&gt;ou: People&lt;br /&gt;description: All people in organisation&lt;br /&gt;objectClass: organizationalUnit&lt;br /&gt;#-------------------------------&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;then add or import it on ldap database by the command below:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;ldapadd -x -D "cn=ldapadmin,dc=duriancity,dc=dvo" -W -f /etc/openldap/duriancity.dvo.ldif&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Now, I will add a group ldaptestusers and a user ldapuser1002 which is a member of ldaptestusers group.&lt;br /&gt;-----------------------------------------------------------------&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;[root@cicdavao ~]# groupadd -g 10700 ldaptestusers&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# useradd -u 10505 -g ldaptestusers ldapuser1002&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# passwd ldapuser1002&lt;br /&gt;Changing password for user ldapuser1002.&lt;br /&gt;New UNIX password:&lt;br /&gt;Retype new UNIX password:&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Now I have to migrate the ldaptestusers group and ldapuser1002 and import it to ldap database&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;[root@cicdavao ~]# grep ldaptestusers /etc/group&lt;br /&gt;ldaptestusers:x:10700:&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# grep ldaptestusers /etc/group &gt; /etc/openldap/ldaptestusers.group.tmp&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# /usr/share/openldap/migration/migrate_group.pl /etc/openldap/ldaptestusers.group.tmp &gt; /etc/openldap/ldaptestusers.group.ldif&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# cat /etc/openldap/ldaptestusers.group.ldif&lt;br /&gt;dn: cn=ldaptestusers,ou=Group,dc=duriancity,dc=dvo&lt;br /&gt;objectClass: posixGroup&lt;br /&gt;objectClass: top&lt;br /&gt;cn: ldaptestusers&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;gidNumber: 10700&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# ldapadd -x -D "cn=ldapadmin,dc=duriancity,dc=dvo" -W -f /etc/openldap/ldaptestusers.group.ldif&lt;br /&gt;Enter LDAP Password:&lt;br /&gt;adding new entry "cn=ldaptestusers,ou=Group,dc=duriancity,dc=dvo"&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# grep ldapuser1002 /etc/passwd&lt;br /&gt;ldapuser1002:x:10505:10700::/home/ldapuser1002:/bin/bash&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# grep ldapuser1002 /etc/passwd &gt; /etc/openldap/ldaptestuser1002.passwd.tmp&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# /usr/share/openldap/migration/migrate_passwd.pl /etc/openldap/ldaptestuser1002.passwd.tmp &gt; /etc/openldap/ldaptestuser1002.passwd.ldif&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# cat /etc/openldap/ldaptestuser1002.passwd.ldif&lt;br /&gt;dn: uid=ldapuser1002,ou=People,dc=duriancity,dc=dvo&lt;br /&gt;uid: ldapuser1002&lt;br /&gt;cn: ldapuser1002&lt;br /&gt;sn: ldapuser1002&lt;br /&gt;mail: ldapuser1002@duriancity.dvo&lt;br /&gt;objectClass: person&lt;br /&gt;objectClass: organizationalPerson&lt;br /&gt;objectClass: inetOrgPerson&lt;br /&gt;objectClass: posixAccount&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: shadowAccount&lt;br /&gt;userPassword: {crypt}$1$Hl8WW1s8$tKiKrYmOT/Vy6G9yitrLp/&lt;br /&gt;shadowLastChange: 13371&lt;br /&gt;shadowMax: 99999&lt;br /&gt;shadowWarning: 7&lt;br /&gt;loginShell: /bin/bash&lt;br /&gt;uidNumber: 10505&lt;br /&gt;gidNumber: 10700&lt;br /&gt;homeDirectory: /home/ldapuser1002&lt;br /&gt;&lt;br /&gt;[root@cicdavao ~]# ldapadd -x -D "cn=ldapadmin,dc=duriancity,dc=dvo" -W -f /etc/openldap/ldaptestuser1002.passwd.ldif&lt;br /&gt;Enter LDAP Password:&lt;br /&gt;adding new entry "uid=ldapuser1002,ou=People,dc=duriancity,dc=dvo"&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;br /&gt;After doing the above, I have now an ldapuser1002 which had been already exported at the ldap database. It should now be able to login at the client assuming its been properly configured to auth to ldap server.&lt;br /&gt;&lt;br /&gt;Now here's my ldap.conf on the ldap server:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#/etc/ldap.conf&lt;br /&gt;host 127.0.0.1&lt;br /&gt;base dc=duriancity,dc=dvo&lt;br /&gt;ssl no&lt;br /&gt;tls_cacertdir /etc/openldap/cacerts&lt;br /&gt;pam_password md5&lt;br /&gt;#------------------&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Now, configuring the client PC which is Mandriva LE 2005 and 2006&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;On my Box, I open up a console then run &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;Drakauth&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;as root, then select LDAP and enter the necessary info, which are:&lt;br /&gt;&lt;br /&gt;server and base DN&lt;br /&gt;&lt;br /&gt;Here's my /etc/ldap.conf on my Mandriva Box acting as client, I just deleted the lines that has been commented out.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;host 172.16.0.253&lt;br /&gt;#host 127.0.0.1&lt;br /&gt;# The distinguished name of the search base.&lt;br /&gt;base dc=duriancity,dc=dvo&lt;br /&gt;&lt;br /&gt;# The LDAP version to use (defaults to 3&lt;br /&gt;# if supported by client library)&lt;br /&gt;ldap_version 3&lt;br /&gt;&lt;br /&gt;# The port.&lt;br /&gt;# Optional: default is 389.&lt;br /&gt;#port 389&lt;br /&gt;&lt;br /&gt;# The search scope.&lt;br /&gt;#scope sub&lt;br /&gt;scope one&lt;br /&gt;#scope base&lt;br /&gt;&lt;br /&gt;# Search timelimit&lt;br /&gt;#timelimit 30&lt;br /&gt;&lt;br /&gt;# Filter to AND with uid=%s&lt;br /&gt;pam_filter objectclass=posixaccount&lt;br /&gt;&lt;br /&gt;# The user ID attribute (defaults to uid)&lt;br /&gt;pam_login_attribute uid&lt;br /&gt;&lt;br /&gt;# Group member attribute&lt;br /&gt;pam_member_attribute gid&lt;br /&gt;&lt;br /&gt;pam_password crypt&lt;br /&gt;&lt;br /&gt;nss_base_passwd dc=duriancity,dc=dvo?sub&lt;br /&gt;nss_base_passwd ou=People,dc=duriancity,dc=dvo?one&lt;br /&gt;nss_base_shadow dc=duriancity,dc=dvo?sub&lt;br /&gt;nss_base_group dc=duriancity,dc=dvo?sub&lt;br /&gt;&lt;br /&gt;# OpenLDAP SSL mechanism&lt;br /&gt;# start_tls mechanism uses the normal LDAP port, LDAPS typically 636&lt;br /&gt;#ssl start_tls&lt;br /&gt;ssl off&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and my /etc/pam.d/system-auth and /etc/pam.d/passwd&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#/etc/pam.d/system-auth&lt;br /&gt;#%PAM-1.0&lt;br /&gt;&lt;br /&gt;auth        required      pam_env.so&lt;br /&gt;auth        sufficient    pam_unix.so&lt;br /&gt;auth        sufficient    pam_ldap.so likeauth nullok use_first_pass&lt;br /&gt;auth        required      pam_deny.so&lt;br /&gt;&lt;br /&gt;account     sufficient    pam_unix.so&lt;br /&gt;account     sufficient    pam_ldap.so use_first_pass&lt;br /&gt;account     required      pam_deny.so&lt;br /&gt;&lt;br /&gt;password    required      pam_cracklib.so retry=3 minlen=2  dcredit=0  ucredit=0&lt;br /&gt;password    sufficient    pam_unix.so nullok use_authtok md5 shadow&lt;br /&gt;password    sufficient    pam_ldap.so&lt;br /&gt;password    required      pam_deny.so&lt;br /&gt;&lt;br /&gt;session     optional      pam_mkhomedir.so skel=/etc/skel/ umask=0022&lt;br /&gt;session     required      pam_limits.so&lt;br /&gt;session     required      pam_unix.so&lt;br /&gt;session     optional      pam_ldap.so&lt;br /&gt;#--------------------------------------&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#/etc/pam.d/passwd&lt;br /&gt;password        sufficient      pam_ldap.so&lt;br /&gt;password        required        pam_unix.so nullok obscure min=4 max=8&lt;br /&gt;#--------------------------------------&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and here's also my /etc/nsswitch.conf, very imortant file that for the system to look for ldapserver for authentication...&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#&lt;br /&gt;# /etc/nsswitch.conf&lt;br /&gt;#&lt;br /&gt;# An example Name Service Switch config file. This file should be&lt;br /&gt;# sorted with the most-used services at the beginning.&lt;br /&gt;#&lt;br /&gt;# The entry '[NOTFOUND=return]' means that the search for an&lt;br /&gt;# entry should stop if the search in the previous entry turned&lt;br /&gt;# up nothing. Note that if the search failed due to some other reason&lt;br /&gt;# (like no NIS server responding) then the search continues with the&lt;br /&gt;# next entry.&lt;br /&gt;#&lt;br /&gt;# Legal entries are:&lt;br /&gt;#&lt;br /&gt;#       nisplus or nis+         Use NIS+ (NIS version 3)&lt;br /&gt;#       nis or yp               Use NIS (NIS version 2), also called YP&lt;br /&gt;#       dns                     Use DNS (Domain Name Service)&lt;br /&gt;#       files                   Use the local files&lt;br /&gt;#       db                      Use the local database (.db) files&lt;br /&gt;#       compat                  Use NIS on compat mode&lt;br /&gt;#       hesiod                  Use Hesiod for user lookups&lt;br /&gt;#       [NOTFOUND=return]       Stop searching if not found so far&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# To use db, put the "db" in front of "files" for entries you want to be&lt;br /&gt;# looked up first in the databases&lt;br /&gt;#&lt;br /&gt;# Example:&lt;br /&gt;#passwd:    db files nisplus nis&lt;br /&gt;#shadow:    db files nisplus nis&lt;br /&gt;#group:     db files nisplus nis&lt;br /&gt;&lt;br /&gt;passwd:     files ldap nisplus&lt;br /&gt;shadow:     files ldap nisplus&lt;br /&gt;group:      files ldap nisplus&lt;br /&gt;&lt;br /&gt;#hosts:     db files nisplus nis dns&lt;br /&gt;hosts:      files nisplus nis dns&lt;br /&gt;&lt;br /&gt;# Example - obey only what nisplus tells us...&lt;br /&gt;#services:   nisplus [NOTFOUND=return] files&lt;br /&gt;#networks:   nisplus [NOTFOUND=return] files&lt;br /&gt;#protocols:  nisplus [NOTFOUND=return] files&lt;br /&gt;#rpc:        nisplus [NOTFOUND=return] files&lt;br /&gt;#ethers:     nisplus [NOTFOUND=return] files&lt;br /&gt;#netmasks:   nisplus [NOTFOUND=return] files&lt;br /&gt;&lt;br /&gt;bootparams: nisplus [NOTFOUND=return] files&lt;br /&gt;&lt;br /&gt;ethers:     files&lt;br /&gt;netmasks:   files&lt;br /&gt;networks:   files&lt;br /&gt;protocols:  files&lt;br /&gt;rpc:        files&lt;br /&gt;services:   files&lt;br /&gt;&lt;br /&gt;netgroup:   nisplus&lt;br /&gt;&lt;br /&gt;publickey:  nisplus&lt;br /&gt;&lt;br /&gt;automount:  files ldap nisplus&lt;br /&gt;aliases:    files nisplus&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;By the above config, assuming that no firewall related problem, the ldapusers are able to login from the MandrivaBox either using KDE or via konsole...&lt;br /&gt;&lt;br /&gt;ex.. &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;[ken@nixbox ~]$ su ldapuser1002&lt;br /&gt;Password:&lt;br /&gt;Creating directory '/home/ldapuser1002'.&lt;br /&gt;bash-3.00$ id&lt;br /&gt;uid=10505(ldapuser1002) gid=10700(ldaptestusers) groups=10700(ldaptestusers)&lt;br /&gt;bash-3.00$ passwd&lt;br /&gt;Changing password for user ldapuser1002.&lt;br /&gt;Enter login(LDAP) password:&lt;br /&gt;New password:&lt;br /&gt;Re-enter new password:&lt;br /&gt;LDAP password information changed for ldapuser1002&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;bash-3.00$                                              &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The above shown that ldapusers1002 been able to log using su command from mandriva Box that has been properly configured to auth to Ldap Server.&lt;br /&gt;&lt;br /&gt;The user also been able to use the passwd util and change its own LDAP passsword from the Mandriva Box.&lt;br /&gt;&lt;br /&gt;Basically Basics :D , no SSL or TLS or even stunnel yet.. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I really need to post how I did it because I'll have to repeat the process on my other machine, maybe on later time, I'll become more familiar on other implementation of OpenLDAP.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1&gt;Update - Configuring stunnel &lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;On the client box which is Mandriva&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Install stunnel, as root do the ff:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;urpmi stunnel&lt;br /&gt;&lt;br /&gt;http://anorien.csc.warwick.ac.uk/mirrors/Mandrakelinux/official/2005/i586/media/main/stunnel-4.07-1mdk.i586.rpm&lt;br /&gt;installing stunnel-4.07-1mdk.i586.rpm from /var/cache/urpmi/rpms&lt;br /&gt;Preparing...                     #############################################&lt;br /&gt;      1/1: stunnel               #############################################&lt;br /&gt;To build a new pem, execute the following OpenSSL command:&lt;br /&gt;    openssl req -new -x509 -days 365 -nodes     -config /usr/share/doc/stunnel-4.07/stunnel.cnf     -out /etc/ssl/stunnel/stunnel.pem -keyout /etc/ssl/stunnel/stunnel.pem&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;2. Create a user named stunne with home /home/stunnel&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;useradd -d /home/stunnel stunnel&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;3. Edit stunnel.conf, on Mandriva, the stunnel.conf should be place to /etc/ssl/stunnel/ dir. Below is my stunnel.conf, by creating it manually.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;chroot = /home/stunnel&lt;br /&gt;pid = /stunnel.pid&lt;br /&gt;setuid = stunnel&lt;br /&gt;setgid = stunnel&lt;br /&gt;&lt;br /&gt;#configure logging&lt;br /&gt;debug = 7&lt;br /&gt;output = /var/log/messages&lt;br /&gt;&lt;br /&gt;#client mode&lt;br /&gt;client = yes&lt;br /&gt;&lt;br /&gt;#Service level config&lt;br /&gt;[ldap]&lt;br /&gt;accept = 389&lt;br /&gt;connect = 172.16.0.254:636&lt;br /&gt;#172.16.0.254 here is my ldapserver&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Then edit also /etc/ldap.conf, make it listen to localhost&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;# Your LDAP server. Must be resolvable without using LDAP.&lt;br /&gt;#host 172.16.0.254&lt;br /&gt;host 127.0.0.1&lt;br /&gt;# The distinguished name of the search base.&lt;br /&gt;base dc=duriancity,dc=dvo&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;I change the listening host to 127.0.0.1 or localhost from its original ip. The traffic here that passes to port 389 has been redirected to 636 via secure tunnel.&lt;br /&gt;&lt;br /&gt;4. start stunnel with the command below&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;stunnel&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;5. Then make it start as the pc boot. Edit /etc/rc.d/rc.local and append below&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/usr/sbin/stunnel&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;6. Log can be check by the command &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;tail -f /var/log/messages&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;or if how its been defined on the stunnel.conf file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;On the Server side&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Create also a user named stunnel&lt;br /&gt;&lt;br /&gt;2. Install stunnel if not yet installed.&lt;br /&gt;&lt;br /&gt;3. Edit the stunnel.conf file, default config dir is /etc/stunnel/ and below are the contents on my Box.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;chroot = /home/stunnel/&lt;br /&gt;pid = /stunnel.pid&lt;br /&gt;setuid = stunnel&lt;br /&gt;setgid = stunnel&lt;br /&gt;debug = 7&lt;br /&gt;output = /var/log/messages&lt;br /&gt;#&lt;br /&gt;client = no&lt;br /&gt;cert = /usr/share/ssl/certs/stunnel.pem&lt;br /&gt;key = /usr/share/ssl/certs/stunnel.pem&lt;br /&gt;#&lt;br /&gt;[ldap]&lt;br /&gt;accept = 636&lt;br /&gt;connect = 389&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;3. Change dir to /usr/share/ssl/certs/ and issue the command below..&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;make stunnel.pem&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;4. Modify permission on stunnel.pem&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;chmod 640 stunnel.pem &amp;&amp; chgrp stunnel stunnel.pem&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;5. start stunnel&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;stunnel&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;6. Then make it run as the pc Boot by putting it on the file /etc/rc.d/rc.local&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/usr/sbin/stunnel&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;7. Logfile, same as above...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;br /&gt;http://www.erikberg.com/notes/auth.html&lt;br /&gt;http://ldots.org/ldap/&lt;br /&gt;http://www.openldap.org/doc/admin23/slapdconfig.html#Configuration%20File%20Example&lt;br /&gt;http://www.oreilly.com/catalog/ldapsa/&lt;br /&gt;http://www.saas.nsw.edu.au/solutions/ldap.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-115527517584621497?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/115527517584621497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=115527517584621497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115527517584621497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115527517584621497'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/08/ldap-authentication-server-for-linux.html' title='LDAP Authentication server for Linux Users - basics'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-115340964965174707</id><published>2006-07-20T23:33:00.000+08:00</published><updated>2006-07-21T10:37:20.636+08:00</updated><title type='text'>Mounting NFS and SAMBA shares with AutoFS</title><content type='html'>I have a Linux PC serving files via SAMBA and NFS and a M$ PC that also shares files over the network, then other Linux desktop pc are accessing files on it. Some are accessing it regularly and some are as they need it only. The first solution that I did was to mount those shares statically, as those workstations boot, thus shared files should be mounted automatically on them so users should at anytime they open the shortcuts on their desktop, they can open it immediately. &lt;br /&gt;&lt;br /&gt;What I did  was, I included thus entries on the fstab of each Linux PC so that immediately, shares are mounted automagically after the desktop loads, but the problem, in case that thus PC's that holds the share were not yet turned on, of course, the mounting should fail. The setup here with regards to PC, are to turn them off after office hours, then turn them on again in the morning by the utility in-charge. So, if that person turns on that PC that holds shared folder later than thus Linux worstations who serves as clients,  mounting error will occur, when someone tries to open a shortcut file or folder that originally resides on remote PC, the system will hang, or strange things happen. &lt;br /&gt;&lt;br /&gt;The fix, thus remote shared folder should be mounted dynamically, and if not in use, should unmount itself after the specified period of time, which can be resolve by using autofs.&lt;br /&gt;&lt;br /&gt;Here's a litle desciprtion of autofs from its man file:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;DESCRIPTION&lt;br /&gt;       autofs control the operation of the automount(8) daemons running on the&lt;br /&gt;       Linux system. Usually autofs is invoked at system boot  time  with  the&lt;br /&gt;       start  parameter and at shutdown time with the stop parameter. The aut-&lt;br /&gt;       ofs script can also manually be invoked by the system administrator  to&lt;br /&gt;       shut down, restart or reload the automounters.&lt;br /&gt;&lt;br /&gt;OPERATION&lt;br /&gt;       autofs   will   consult  a  configuration  file  /etc/auto.master  (see&lt;br /&gt;       auto.master(5)) to find mount points on the system. For each  of  those&lt;br /&gt;       mount  points  a  automount(8)  process is started with the appropriate&lt;br /&gt;       parameters. You can check the active mount points for  the  automounter&lt;br /&gt;       with the /etc/init.d/autofs status command. If the auto.master configu-&lt;br /&gt;       ration file contains a line of the form&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Ok, at this point, I will assume that thus PC's that serves files either from M$ Windows or Linux via NFS or SamBA works well, without problem on sharing files. What to do now is just to configure autofs to behave as how you want it to be.&lt;br /&gt;&lt;br /&gt;Install autofs package if not yet been installed then make it run as a service. On Mandriva, it can be installed by the command as root:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;urpmi autofs&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;then &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;chkconfig autofs on&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;will make autofs run as a service.&lt;br /&gt;&lt;br /&gt;The main conf file is auto.master as been mentioned on its description/operation by its man page.  On my system, which is Mandriva, this is how I do it:&lt;br /&gt;&lt;br /&gt;First, I created a folder under /mnt with a name, say.. nfs and smb.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;mkdir /mnt/nfs&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;mkdir /mnt/smb&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;At the folder /mnt/nfs, these is whre the mounted nfs shares will be locates, so as with samba shares at /mnt/smb. By default, there is a file names /etc/auto.smb, and your might think that this is the conf file that shoul be used for mounting samba shares, it's not. What I did was just renaming that file and create another one. So below are my /etc/auto.nfs and /etc/auto.smb files.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;windows -fstype=smbfs,username=user01,password=microshaft,uid=500,gid=500,dmask=555,fmask=444 ://192.168.1.1/C$&lt;br /&gt;images -fstype=smbfs,username=user01,password=microshaft ://192.168.1.1/scannedfiles&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Now, my /etc/auto.nfs file&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;fileserver -rw,hard,intr,rsize=8192,wsize=8192 192.168.1.2:/home/files&lt;br /&gt;documents -ro,hard,intr,rsize=8192,wsize=8192 192.168.1.2:/mnt/hdb/files&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and my /etc/auto.master file&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/mnt/nfs /etc/auto.nfs -t=10&lt;br /&gt;/mnt/smb /etc/auto.smb -t=10&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Explanation:&lt;/b&gt;&lt;br /&gt;On &lt;code&gt;/etc/auto.smb&lt;/code&gt; file, line 1 contains a word windows,... onced a user envoked the command &lt;code&gt;ls /mnt/smb/windows&lt;/code&gt; the shared &lt;code&gt;//192.168.1.1/C$&lt;/code&gt; will automatically being mounted under the folder &lt;code&gt;/mnt/smb/windows&lt;/code&gt; and if you do a &lt;code&gt;df&lt;/code&gt; command, you'll see something like this:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;//192.168.1.1/C$   24G  9.6G   14G  42% /mnt/smb/windows&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;which means that its been mounted already... and as been set on auto.master file, 10 seconds later, if there is no files being accessed on that folder, it will auto un-mount itself. Please take note, the I did not manually create a folder named &lt;code&gt;/mnt/smb/windows&lt;/code&gt;, it will be  just created dynamically by autofs once its being accessed. So same scenario would happen on NFS shared folde, once someone is accessing thus folder names being set on the /etc/auto.nfs files, same thing will happen.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Another take note&lt;/b&gt;&lt;br /&gt;On Mandriva 2005 and 2006, there might be a bug on its own buid autofs package, since the system, though it could properly mount thus shared remote folder, but it wont un-mount itself after the specified duration when nothing has being done on the remote shared folder or files on it. The fix was, on mine, I installed the autofs from source which I got from kernel.org. By doing that,  problem with auto un-mount has been resolved. The issue appear only on the mentioned 2005 and 2006, but on Mandrake 10.1 or on Centos and Xandros which both I'd tried, I did not encounter such problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-115340964965174707?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/115340964965174707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=115340964965174707' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115340964965174707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115340964965174707'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/07/mounting-nfs-and-samba-shares-with.html' title='Mounting NFS and SAMBA shares with AutoFS'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-115269243795895251</id><published>2006-07-12T15:50:00.000+08:00</published><updated>2006-07-21T12:24:44.160+08:00</updated><title type='text'>First encounter with Asterisk Free PBX</title><content type='html'>Yesterday I started to try to install and Configure asterisk. Well, I dont have any digium fxs or fxo hardware yet so I'm toying with SIP Softphones. But before that, I manually installed asterisk on my already running Centos box, after installing some depedencies, I got it working. I installed it from CVS so that I have the latest version.&lt;br /&gt;&lt;br /&gt;After reading some site that has lots of asterisk configuration sample, I manage to have a working SIP Softphone with the use of SJPhone. I did not made with Xlite with the same config, I dunno yet why it happend. On Xlite, when trying to call the registered prefix, it'll just sat call not allowed while on SJPhone, it allows even to its own number. Below are my sip.conf and extensions.conf with voicemail.conf.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;b&gt;/etc/asterisk/sip.conf&lt;/b&gt;&lt;/code&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;[general]&lt;br /&gt;disallow=gsm&lt;br /&gt;allow=ulaw&lt;br /&gt;port = 5060                     ; Port to bind to&lt;br /&gt;bindaddr = 172.16.0.253         ; IP_Address to bind to&lt;br /&gt;;context = from-sip             ; Default for incoming calls&lt;br /&gt;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;;---- My SIP Phone at my Desktop ----------;&lt;br /&gt;[x1000]&lt;br /&gt;type=friend&lt;br /&gt;username=x1000&lt;br /&gt;secret=1000&lt;br /&gt;host=dynamic&lt;br /&gt;defaultip=172.16.0.37&lt;br /&gt;canreinvite=no&lt;br /&gt;disallow=all&lt;br /&gt;allow=all&lt;br /&gt;context=testing&lt;br /&gt;allow=ulaw&lt;br /&gt;allow=alaw&lt;br /&gt;;regexten=1000&lt;br /&gt;nat=no&lt;br /&gt;;&lt;br /&gt;;;;;;;;;;; SIP Phone USer at other Desktop ;;;;;;;;;;&lt;br /&gt;[x2000]&lt;br /&gt;type=friend&lt;br /&gt;username=x2000&lt;br /&gt;secret=2000&lt;br /&gt;host=dynamic&lt;br /&gt;defaultip=172.16.0.30&lt;br /&gt;canreinvite=no&lt;br /&gt;disallow=all&lt;br /&gt;allow=all&lt;br /&gt;context=testing&lt;br /&gt;allow=ulaw&lt;br /&gt;allow=alaw&lt;br /&gt;nat=no&lt;br /&gt;;&lt;br /&gt;;&lt;br /&gt;;;; Entry for FXS Gateway - it has 4 FXS Ports but only configured 1 port&lt;br /&gt;[4001]&lt;br /&gt;type=friend&lt;br /&gt;context=testing&lt;br /&gt;secret=antek&lt;br /&gt;host=dynamic&lt;br /&gt;defaultip=172.16.0.254&lt;br /&gt;nat=no&lt;br /&gt;canreinvite=yes&lt;br /&gt;dtmfmode=info&lt;br /&gt;disallow=all&lt;br /&gt;allow=ulaw&lt;br /&gt;allow=g723.1&lt;br /&gt;allow=g729&lt;br /&gt;;&lt;br /&gt;;---------- FXO VoIP Gateway Entry -------------&lt;br /&gt;;By the entries below, the 4FXO antek Gateway will be able to call&lt;br /&gt;;SIP users above.. by dialing the pstn number connected on its port&lt;br /&gt;;then after a dial tone received, if for example 1000 has been dialed, x1000 SIP&lt;br /&gt;;Phone will ring... in general, all numbers that has been set at extensions.conf&lt;br /&gt;;should ring...&lt;br /&gt;;&lt;br /&gt;[3000]&lt;br /&gt;type=friend&lt;br /&gt;;username=3000&lt;br /&gt;;secret=3000&lt;br /&gt;host=dynamic&lt;br /&gt;defaultip=172.16.0.252&lt;br /&gt;canreinvite=no&lt;br /&gt;disallow=all&lt;br /&gt;allow=all&lt;br /&gt;context=testing&lt;br /&gt;allow=ulaw&lt;br /&gt;allow=alaw&lt;br /&gt;;regexten=2000&lt;br /&gt;nat=no&lt;br /&gt;;musicclass=classical&lt;br /&gt;regexten=3000&lt;br /&gt;;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;code&gt;&lt;b&gt;/etc/asterisk/extensions.conf&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;;I'd just append the entries below to the sample &lt;br /&gt;;extensions.conf file of asterisk 1.2&lt;br /&gt;[testing]&lt;br /&gt;;&lt;br /&gt;exten =&gt; 1000,1,Dial(SIP/x1000, 10)&lt;br /&gt;exten =&gt; 1000,2,VoiceMail(10001@testing, 10)&lt;br /&gt;exten =&gt; 1000,3,PlayBack(vm-goodbye)&lt;br /&gt;exten =&gt; 1000,4,HangUp()&lt;br /&gt;exten =&gt; 999,1,VoiceMailMain(10001@testing)&lt;br /&gt;;&lt;br /&gt;exten =&gt; 3000,1,Dial(SIP/3000)&lt;br /&gt;;exten =&gt; 3000,2,VoiceMail(10001@testing, 10)&lt;br /&gt;;exten =&gt; 1000,3,PlayBack(vm-goodbye)&lt;br /&gt;;exten =&gt; 1000,4,HangUp()&lt;br /&gt;;exten =&gt; 999,1,VoiceMailMain(10001@testing)&lt;br /&gt;;&lt;br /&gt;exten =&gt; 2000,1,Dial(SIP/x2000) ;;//for user x2000&lt;br /&gt;;&lt;br /&gt;exten =&gt; 4001,1,Dial(SIP/4001) &lt;br /&gt;;when dialing 4001, analog phone connected at the said antek fxs gateway should ring&lt;br /&gt;;assuming properly configured..&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and the voicemail.conf&lt;br /&gt;&lt;code&gt;&lt;b&gt;/etc/asterisk/voicemail.conf&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;[testing]&lt;br /&gt;&lt;br /&gt;x1000 =&gt; 1000, x1000, email@mymail.com&lt;br /&gt;&lt;br /&gt;;the voicemail.conf is already an existing file, so I just added the above entry at the last line&lt;br /&gt;;of this file&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;br /&gt;Ok, by default, the antek gateway has been set to H323, so VoIP protocol needs to be changed to SIP so it will be able to communicate with the asterisk SIP protocol. You can access the gateway via http or telnet for the configuration changes... here are some basics via http.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i47.photobucket.com/albums/f173/bankerohan/antek01.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px;" src="http://i47.photobucket.com/albums/f173/bankerohan/antek01.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;-&lt;br /&gt;The model of the used gateway above. &lt;br /&gt;-&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i47.photobucket.com/albums/f173/bankerohan/antek03.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px;" src="http://i47.photobucket.com/albums/f173/bankerohan/antek03.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;-&lt;br /&gt;SIP Configuration portion.. entries should match on the /etc/asterisk/sip.conf&lt;br /&gt;-&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i47.photobucket.com/albums/f173/bankerohan/antek05.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px;" src="http://i47.photobucket.com/albums/f173/bankerohan/antek05.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;-&lt;br /&gt;Voice Processing control should be like that above... but you can actually used those other codecs since they are also being supported by asterisk.&lt;br /&gt;&lt;br /&gt;For now, the config works fine, but still have so many features to discover..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-115269243795895251?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/115269243795895251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=115269243795895251' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115269243795895251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115269243795895251'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/07/first-encounter-with-asterisk-free-pbx.html' title='First encounter with Asterisk Free PBX'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-115138476741380062</id><published>2006-06-27T13:03:00.000+08:00</published><updated>2006-06-27T13:08:03.026+08:00</updated><title type='text'>Enabling the display of username and icons on kdm login - Mandriva 2005 &amp; 2006</title><content type='html'>The default login screen for 2005LE and 2006 does not show user icons, and there appears to be no way to change this from the control center.&lt;br /&gt;&lt;br /&gt;This is because there is a theme attached to the KDM login manager by default, which hides the icon display.&lt;br /&gt;&lt;br /&gt;If you wish to re-enable it, you will need to edit file /etc/kde/kdm/kdmrc as root, and change the value for UseTheme from true to false.&lt;br /&gt;&lt;br /&gt;On logging out of your KDE session, you should see a scrollable list of users with their icons.&lt;br /&gt;&lt;br /&gt;You can add your own pictures to the list of available icons by placing them into directory /usr/share/mdk/faces. You will need root access to modify this directory, though.&lt;br /&gt;&lt;br /&gt;originally posted by Sellis &lt;a href="http://mandrivausers.org/index.php?showtopic=29240"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It actually takes me several hours on finding how to do it. Its hard to do accurate search if the keyword is not that accurate, so to be easily remember, added it here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PEACE!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-115138476741380062?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/115138476741380062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=115138476741380062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115138476741380062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115138476741380062'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/06/enabling-display-of-username-and-icons.html' title='Enabling the display of username and icons on kdm login - Mandriva 2005 &amp; 2006'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-115096356607205260</id><published>2006-06-22T15:38:00.000+08:00</published><updated>2006-07-21T12:32:43.213+08:00</updated><title type='text'>Customizing error messages on my squid proxy</title><content type='html'>OK, my goal is to customize the error message that will appear once a request to the proxy server had been denied due to ACL.&lt;br /&gt;&lt;br /&gt;On the entries inside the /etc/squid/squid.conf, thus that contains the ACL, an additional entry should be added. See example below.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;##############&lt;br /&gt;acl pornsites dstdomain -i "/etc/squid/blacklists/porn/domains"&lt;br /&gt;deny_info ERR_PORNO pornsites&lt;br /&gt;http_access deny pornsites&lt;br /&gt;##############&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Where pornosites is the name of the ACL and ERR_PORNO is the name of the customized error page. How? the ERR_PORNO file should be located inside the folder that contains all the default error pages of squid proxy, which is at &lt;code&gt;/etc/squid/errors/&lt;/code&gt; folder, well, I don't know with other system, but the one I am using is Centos 4.3 and squid was installed via yum.&lt;br /&gt;&lt;br /&gt;Actually, I just copied the existing ERR_ACCESS_DENIED to ERR_PORNO and modified its content so that the message that will appear when a user tries to access a controled site contains messages that will fit to how the user should see it.&lt;br /&gt;&lt;br /&gt;Another thing to consider, the default time generated by squid on its default error page has been set to GMT, so as you can see, the time looks like that below&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;Generated Thu, 22 Jun 2006 08:55:10 GMT&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;which does not correspond to the correct time, especially on the country I am located. So on the customized error page, I added the following entries on the last line of the file to correct that:&lt;br /&gt; &lt;a&gt;&lt;img src="http://i47.photobucket.com/albums/f173/bankerohan/shell001.jpg"&gt;&lt;/a&gt;&lt;br /&gt;the line that contains &lt;code&gt;Generated %t by %h (%s)&lt;/code&gt; controls the time and date, by default is uses &lt;code&gt;%T&lt;/code&gt; which is for GMT so it was changed to small letter &lt;code&gt;"t"&lt;/code&gt; and after doing that, this is how it looks:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;Generated 22/Jun/2006:17:00:29 +0800&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;It is now displaying the local time of the Squid Proxy Server.&lt;br /&gt;&lt;br /&gt;Remember that squid should be restarted for those changes to take effect.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-115096356607205260?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/115096356607205260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=115096356607205260' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115096356607205260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/115096356607205260'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/06/customizing-error-messages-on-my-squid.html' title='Customizing error messages on my squid proxy'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114893744484542346</id><published>2006-05-30T05:00:00.000+08:00</published><updated>2006-07-21T10:47:08.626+08:00</updated><title type='text'>Forcing user to change their password on their next log-on</title><content type='html'>I thought that on any linux distro, you can just issue the command below, as root of course..&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;passwd -e username&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;where username is the user you want to change its passwd on next logon. Very easy huh.. but hey, not all distro have that option, Mandriva, Redhat, Centos does not have that option on the "passwd" command. OpenSuse, Xandros, and SimplyMepis have that option, so you will see on the man page the -e option. So I thought that there is no way I could do that on the latter distros. I even post it on Mandriva and Centos users board, thinking that ther emight be a problem with my Mandriva box, maybe some package should be installed, but mine is just the same with their Mandy box. Then I got an answer from Centos board user (MarioT) about the alternative command:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;chage -d 0 username&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;..the above command would do the same effect of the -e option of the command "passwd", thus forcing the user to change password on the next logon. If you want to look more, see the man page on your linux shell. Well, at least I could now force the users on my Mandriva Box to change passwd on their next logon just in case I need to assign a new one then for their privacy, let them change it on themselves. Honestly, I did'nt know the command "chage" would do the same... but now I know. Just showed that after years of using linux, am still a newbie.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Peace to all, hope they will find more survivor on Java Indonesia, as I write these, there are almost 5000 people declared dead.&lt;br /&gt;&lt;br /&gt;May God Bless us all!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114893744484542346?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114893744484542346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114893744484542346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114893744484542346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114893744484542346'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/05/forcing-user-to-change-their-password.html' title='Forcing user to change their password on their next log-on'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114371096151177934</id><published>2006-03-30T17:28:00.000+08:00</published><updated>2006-03-30T17:29:21.520+08:00</updated><title type='text'>My desktop as today 03302006 - Mandriva 10.2 Kde 3.4.2</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i47.photobucket.com/albums/f173/bankerohan/desktop-033006.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px;" src="http://i47.photobucket.com/albums/f173/bankerohan/desktop-033006.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114371096151177934?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114371096151177934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114371096151177934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114371096151177934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114371096151177934'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/03/my-desktop-as-today-03302006-mandriva.html' title='My desktop as today 03302006 - Mandriva 10.2 Kde 3.4.2'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114370330503251156</id><published>2006-03-30T15:19:00.000+08:00</published><updated>2006-07-21T10:52:49.703+08:00</updated><title type='text'>Recovering and Changing Your MySQL Root Password</title><content type='html'>Sometimes you may have to recover the MySQL root password because it was either forgotten or misplaced. The steps you need are:&lt;br /&gt;&lt;br /&gt;1. Stop MySQL: as root&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;service mysqld stop&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;2.Start MySQL in Safe mode with the safe_mysqld command and tell it not to read the grant tables with all the MySQL database passwords:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;safe_mysqld --skip-grant-tables &amp;&lt;br /&gt;[1] 4815&lt;br /&gt;Starting mysqld daemon with databases from /var/lib/mysql&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;3.Use the mysqladmin command to reset the root password. In this case, you are setting it to &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;thisisthepassword&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;mysqladmin -u root flush-privileges        password "thisisthepassword"&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;4.Restart MySQL normally:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;service mysqld restart&lt;br /&gt;Stopping MySQL: 040517 09:39:38 mysqld ended&lt;br /&gt;[ OK   ]&lt;br /&gt;Starting MySQL: [ OK   ]&lt;br /&gt;[1]+ Done                     safe_mysqld --skip-grant-tables&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The MySQL root user will now be able to manage MySQL using this new password.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114370330503251156?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114370330503251156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114370330503251156' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114370330503251156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114370330503251156'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/03/recovering-and-changing-your-mysql.html' title='Recovering and Changing Your MySQL Root Password'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114368272047288261</id><published>2006-03-30T09:35:00.000+08:00</published><updated>2006-03-30T10:44:08.916+08:00</updated><title type='text'>Classification of DS (Digital Signal)</title><content type='html'>This only serves as guide for those DS signal, sometime I forgot their respective bandwidth allocation, so here are the following:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;(Digital Signal) A classification of digital circuits. The DS technically refers to the rate and format of the signal, while the T designation refers to the equipment providing the signals. In practice, "DS" and "T" are used synonymously; for example, DS1 and T1, DS3 and T3.&lt;br /&gt;&lt;br /&gt;&lt;font&gt;&lt;span style="font-size:85%;"&gt;&lt;pre&gt;&lt;b&gt;NORTH AMERICA, JAPAN, KOREA, ETC.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;      &lt;b&gt;Voice&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Service  Channels   Speed&lt;/b&gt;&lt;br /&gt;DS0         1            64 Kbps&lt;br /&gt;DS1        24         1.544 Mbps  (T1)&lt;br /&gt;DS1C       48         3.152 Mbps  (T1C)&lt;br /&gt;DS2        96         6.312 Mbps  (T2)&lt;br /&gt;DS3       672        44.736 Mbps  (T3)&lt;br /&gt;DS4      4032       274.176 Mbps  (T4)&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;font&gt;&lt;span style="font-size:85%;"&gt;&lt;pre&gt;&lt;b&gt;EUROPE (ITU)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;      &lt;b&gt;Voice&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Service  Channels   Speed (Mbps)&lt;/b&gt;&lt;br /&gt;E1         30         2.048&lt;br /&gt;E2        120         8.448&lt;br /&gt;E3        480        34.368&lt;br /&gt;E4       1920       139.264&lt;br /&gt;E5       7680       565.148&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;font&gt;&lt;span style="font-size:85%;"&gt;&lt;pre&gt;&lt;b&gt;&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;SONET CIRCUITS&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Service          Speed (Mbps)&lt;/b&gt;&lt;br /&gt;STS-1   OC1       51.84 (28 DS1s or 1 DS3)&lt;br /&gt;STS-3   OC3      155.52 (3 STS-1s)&lt;br /&gt;STS-3c  OC3c     155.52 (concatenated)&lt;br /&gt;STS-12  OC12     622.08 (12 STS-1s, 4 STS-3s)&lt;br /&gt;STS-12c OC12c    622.08 (12 STS-1s, 4 STS-3c's)&lt;br /&gt;STS-48  OC48    2488.32 (48 STS-1s, 16 STS-3s)&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;-&lt;br /&gt;Info about OC&lt;br /&gt;(Optical Carrier) The transmission speeds in SONET/SDH networks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font&gt;&lt;span style="font-size:85%;"&gt;&lt;pre&gt; &lt;b&gt;SONET CIRCUITS&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Optical  Electrical&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Channel  Channel         Speed (Mbps)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;        VT-1.5       1.7&lt;br /&gt;OC-1     STS-1       51.84 (28 DS1s or 1 DS3)&lt;br /&gt;OC-3     STS-3      155.52 (3 STS-1s)&lt;br /&gt;OC-3c    STS-3c     155.52 (concatenated)&lt;br /&gt;OC-12    STS-12     622.08 (12 STS-1, 4 STS-3)&lt;br /&gt;OC-12c   STS-12c    622.08 (12 STS-1, 4 STS-3c)&lt;br /&gt;OC-48    STS-48    2488.32 (48 STS-1, 16 STS-3)&lt;br /&gt;OC-192   STS-192   9953.28 (192 STS-1, 64 STS-3)&lt;br /&gt;OC-768   STS-768  39813,12 (768 STS-1, 256 STS-3)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OC  = Optical Carrier&lt;br /&gt;STS = Synchronous Transport Signal&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114368272047288261?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114368272047288261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114368272047288261' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114368272047288261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114368272047288261'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/03/classification-of-ds-digital-signal.html' title='Classification of DS (Digital Signal)'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114359694618286167</id><published>2006-03-29T09:21:00.000+08:00</published><updated>2006-07-22T05:38:59.643+08:00</updated><title type='text'>Upgrading kde 3.3 to kde 3.4 on my Madriva 10.2</title><content type='html'>&lt;div style="text-align: justify;"&gt;I've just upgraded my Kde 3.3 to Kde 3.4  on my Mandriva LE 2005.  There are lots of ways to upgrade it, there are thacs RPM, SOS and the one that came from kde.org itself. I tried the kde package from kde.org, those RPMs that are precompiled for Mandriva LE 2005 or Mandriva 10.2. The package can be found &lt;a href="ftp://ftp.kde.org/pub/kde/stable/3.4.2/Mandriva/10.2/i586/"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;What I did was, downloaded all those package using wget.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;wget -c -r -nd ftp://ftp.kde.org/pub/kde/stable/3.4.2/Mandriva/10.2/i586/&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;The command will download all the files on the directory where you issued the command. On my box, I made a directory kde3.4.2 under my users home dir then issue that command inside that directory and downloaded all the files on it. Then I added that directory as a local urpmi repository. The command would be (do it as root)..&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;urpmi.addmedia kde3.4.2 /home/usersdir/kde3.4.2&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;After doing this, I change my box to init 3, meaning no gui or X then remove all the package related to kde. Viewing what package are related to kde could be done by..&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;rpm -qa | grep kde&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;so you have a clue which to remove. Then after removing those, you can just type..&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;urpmi kdebase&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and it then install the new kde. Not all will be install by doing that of course, so manually, we can add those kde applications that we needed via urpmi.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A little bit late huh!..&lt;br /&gt;&lt;br /&gt;:)&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114359694618286167?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114359694618286167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114359694618286167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114359694618286167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114359694618286167'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/03/upgrading-kde-33-to-kde-34-on-my.html' title='Upgrading kde 3.3 to kde 3.4 on my Madriva 10.2'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114337186232423501</id><published>2006-03-26T18:57:00.000+08:00</published><updated>2006-03-26T19:22:59.846+08:00</updated><title type='text'>Playing MP3 on OpenSuse 10</title><content type='html'>&lt;a href="http://opensuse.org"&gt;OpenSuse&lt;/a&gt; 10 is very nice, comparing to other distro, this distro has a lot of package on its community edition CD that I can install on my home Box. The 5 CD that I downloaded has lots of OSS on it, but.. even if I was able to install &lt;a href="http://xmms.org"&gt;Xmms&lt;/a&gt; and &lt;a href="http://amarok.kde.org/"&gt;Amarok&lt;/a&gt;, it wont allow me to play MP3, since MP3 is not licensed to GPL. Support on MP3 is available only to  Suse retail version.  So, as I want to play mp3 on  it.&lt;br /&gt;&lt;br /&gt;For Amarok to play mp3,  need to download and install &lt;a href="http://rpm.pbone.net/index.php3/stat/4/idpl/2234155/com/mad-0.15.1b-32.i586.rpm.html"&gt;mad&lt;/a&gt; and &lt;a href="http://rpm.pbone.net/index.php3/stat/4/idpl/2234171/com/xine-mad-1.1.0-12.i586.rpm.html"&gt;xine-mad&lt;/a&gt; and &lt;a href="http://rpm.pbone.net/index.php3/stat/4/idpl/2234172/com/xmms-lib-mad-1.2.10-77.i586.rpm.html"&gt;xmms-lib-mad&lt;/a&gt;  for Xmms. Take note that I'm using x86 pc, so if you have a 64 bit, look for the particular x86_64 equivalent.&lt;br /&gt;&lt;br /&gt;Go and play mp3!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114337186232423501?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114337186232423501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114337186232423501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114337186232423501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114337186232423501'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/03/playing-mp3-on-opensuse-10.html' title='Playing MP3 on OpenSuse 10'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114171911169292496</id><published>2006-03-07T15:46:00.000+08:00</published><updated>2006-03-23T14:12:03.996+08:00</updated><title type='text'>SAMBA File Server - Quick how-to</title><content type='html'>The scenario: I have a Centos 4.2 PC that serves as file storage from 3 Windows XP client.&lt;br /&gt;&lt;br /&gt;Assuming that samba server package has been already installed, and the only thing that we would like to do is to configure or edit the file /etc/samba/smb.conf.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;A simple anonymous Samba File server&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;- Create a directory that everyuser has access into. Say.. shared is the directory to be created under /home, so the command would be "mkdir -m 777 /home/shared".&lt;br /&gt;&lt;br /&gt;- Now we have to configure Samba for anon access, but first we have to back-up the original smb.conf file. Doing "mv /etc/samba/smb.conf /etc/samba/smb.conf.orig" will change the the file from smb.conf to smb.conf.orig. Then "vi /etc/samba/smb.conf" and enter the following below:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;#/etc/samba/smb.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;[global]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   workgroup = homebox&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   netbios name = fileserver&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   server string = anonymous file server&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   security = share&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   browseable = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   hosts allow = 192.168.1.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;[share1]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   path = /home/shared&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   comment = shared-folder&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   read only = No&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   guest ok = Yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, to apply it in your network, just replace the workgroup entry to your existing workgroup and host allow entry. You might have different IP address on your existing PC.&lt;br /&gt;&lt;br /&gt;Now check by the command "testparm", if configured correctly, there will be no errors, else, check the config or typo mistakes.&lt;br /&gt;&lt;br /&gt;Check if samba-server runs on start-up, "chkconfig --list | grep smb"&lt;br /&gt;&lt;br /&gt;smb             0:off   1:off   2:on    3:off   4:on    5:on    6:off&lt;br /&gt;&lt;br /&gt;It shows that samba runs upon booting on init 3 and init 5, but if not, you can just issue the command "chkconfig --level 3 smb on" and upon booting to level 3, samba also start.&lt;br /&gt;&lt;br /&gt;Or we can start the service manually, when as root, do the command "/etc/init.d/smb start"&lt;br /&gt;&lt;br /&gt;Now, browse the Network Neighborhood on your windows XP and check if you can read/write on the shared folder on Samba Server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Adding authentication to samba server&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Edit /etc/samba/smb.conf and it sould be similar to the file below&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;#/etc/samba/smb.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;[global]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   workgroup = homebox&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   netbios name = fileserver&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   server string = file server&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   security = user&lt;br /&gt;encrypt password = yes&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   browseable = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   hosts allow = 192.168.1.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;[share1]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   path = /home/shared&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   comment = shared-folder&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   read only = No&lt;/span&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then create a samba user and password file, do the command as root:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;# smbpasswd -a sambauser&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;New SMB password:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Retype new SMB password:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Added user sambauser.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: sambauser should exists as a regular user on the server, unless if you have a separate authentication server like that of NIS or LDAP.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114171911169292496?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114171911169292496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114171911169292496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114171911169292496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114171911169292496'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/03/samba-file-server-quick-how-to.html' title='SAMBA File Server - Quick how-to'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114143045446416513</id><published>2006-03-04T07:26:00.000+08:00</published><updated>2006-03-07T14:38:49.253+08:00</updated><title type='text'>Linux, KDE, Kernel new release, oh!.. Its my Birthday today!!!</title><content type='html'>&lt;div style="text-align: justify;"&gt;Happy Birthday to me!&lt;br /&gt;&lt;br /&gt;Wow!, I'm 32 and still..., oh boy, at least Im still alive, healthy, already have a family, and of course, happy!. Though I'm not that successful in terms of career,  at least now, those things  that years and years ago ( am I that old?), I really just wonder how it works, I now know how to make them work... like Email, Web, Linux, NFS, TCPIP, VoIP, DNS Server, and a lot more that I did not learn in my old school. To tell you honestly ( to you who happened to visit this blog..) I only learned those things I mentioned thru my own research, testing, building my own test server,  buying a domain just to know  how to use it ( lol..), kind of funny huh.. having my own hardware, and reading lot's of ebooks (Thanks to amule.. hak hak hak!).&lt;br /&gt;&lt;br /&gt;Well,  up to now, even  the company  that I am  working  does not have that kind of program that enhance the skills of its employee, for almost three years working on them, they did'nt care... damn!, I have to update myself on anything related to my work, coz If you just wait on them, nahhh, I thinks its just the right thing for everyone to do, learn on yourself if you have that kind of chance, Internet and community forum really helps.&lt;br /&gt;&lt;br /&gt;So again, HAPPY BIRTHDAY TO ME!   &lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114143045446416513?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114143045446416513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114143045446416513' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114143045446416513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114143045446416513'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/03/linux-kde-kernel-new-release-oh-its-my.html' title='Linux, KDE, Kernel new release, oh!.. Its my Birthday today!!!'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114040273019251359</id><published>2006-02-20T10:08:00.000+08:00</published><updated>2006-07-21T11:34:12.270+08:00</updated><title type='text'>A quick how-to on installing Amavis Clamav and Spamassassin on Centos 4.2 with Postfix</title><content type='html'>&lt;b&gt;A quick how-to on Amavis and clamav with spamassassin&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;On my box, I have a running postfix mail server, secured as not an open-relay&lt;/li&gt;&lt;li&gt;I am running centos 4.2&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;hr style="width: 100%; height: 2px;"&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Adding DAG repo&lt;/li&gt;&lt;/ul&gt;     To install amavis and clamav, we need to add dag repositories since the packages mentioned are not available on the centos base repositories.To do this, we have to create a file named &lt;code&gt;/etc/yum.repos.d/dag.repo&lt;/code&gt; and have it contain the following lines:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;[dag]&lt;br /&gt;name=Dag-RHEL-Yum&lt;br /&gt;baseurl=http://dag.linux.iastate.edu/dag/redhat/el$releasever/en/$basearch/dag&lt;br /&gt;http://www.mirrorservice.org/sites/apt.sw.be/redhat/el$releasever/en/$basearch/dag&lt;br /&gt;http://mirrors.ircam.fr/pub/dag/redhat/el$releasever/en/$basearch/dag&lt;br /&gt;http://apt.sw.be/redhat/el$releasever/en/$basearch/dag&lt;br /&gt;enabled=1&lt;br /&gt;gpgcheck=1&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Ok, after doing that, we need to import dag rpm-gpg-key with the command below:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Now we are ready to install.&lt;/li&gt;&lt;/ul&gt;Do it as root with the command below.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;yum install amavisd-new clamav clamd&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and also&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;yum install perl-Archive-Tar.noarch&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt; I dunno but it is supposed to be considered as dependency during install since if its not install, you will encounter problem on running "amavis debug"&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;After the installation:&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt; Create a /var/log/amavis.log to be owned by amavis user and group with the command below.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;touch /var/log/amavis.log &amp;&amp;amp; chown amavis.amavis /var/log/amavis.log&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Next, we have to edit the file &lt;code&gt;/etc/amavis.conf&lt;/code&gt;, then set the $domain and $hostname to our own value and then uncomment the following:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;$forward_method = 'smtp:127.0.0.1:10025'; # where to forward checked mail&lt;br /&gt;$notify_method = $forward_method; # where to submit notifications&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Disable virus quarantines: change the value of $QUARANTINEDIR the line:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;$QUARANTINEDIR = undef;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;If we dont want our system to notify those senders that we did not accept their email attachement or we found out that their email has virus, uncomment the ff: below.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt; # $final_virus_destiny      = D_DISCARD;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt; # $final_banned_destiny     = D_BOUNCE;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt; # $final_spam_destiny       = D_BOUNCE;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt; # $final_bad_header_destiny = D_PASS;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Next, find and uncomment the Clam AV section. Comment out all virus scanners you are not using:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;### http://www.clamav.net/&lt;br /&gt;['Clam Antivirus-clamd',&lt;br /&gt;\&amp;ask_daemon, ["CONTSCAN {  }\n", "/var/run/clamav/clamd.ctl"],&lt;br /&gt;qr/\bOK$/, qr/\bFOUND$/,&lt;br /&gt;qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Make sure amavis is not currently running, do the command:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/etc/init.d/amavis stop&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;then do the command&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;amavis debug&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;( if you found error, then troubleshoot)&lt;br /&gt;&lt;br /&gt;Start amavis now:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/etc/init.d/amavis start&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Try to &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;telnet 127.0.0.1 10024 &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and you should get the response below showing that amavis has been running.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;Trying 127.0.0.1...&lt;br /&gt;Connected to 127.0.0.1.&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;220 [127.0.0.1] ESMTP amavisd-new service ready&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Next, configure Postfix to use Amavisd-new, which will now function as an SMTP proxy server. Add this to the end of &lt;code&gt;/etc/postfix/master.cf&lt;/code&gt;:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;smtp-amavis unix -   -     n   -    2  smtp&lt;br /&gt;-o smtp_data_done_timeout=1200&lt;br /&gt;-o disable_dns_lookups=yes&lt;br /&gt;127.0.0.1:10025 inet n - n - - smtpd&lt;br /&gt;-o content_filter=&lt;br /&gt;-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks&lt;br /&gt;-o local_recipient_maps=&lt;br /&gt;-o relay_recipient_maps=&lt;br /&gt;-o smtpd_restriction_classes=&lt;br /&gt;-o smtpd_client_restrictions=&lt;br /&gt;-o smtpd_helo_restrictions=&lt;br /&gt;-o smtpd_sender_restrictions=&lt;br /&gt;-o smtpd_recipient_restrictions=permit_mynetworks,reject&lt;br /&gt;-o mynetworks=127.0.0.0/8&lt;br /&gt;-o smtpd_authorized_xforward_hosts=127.0.0.0/8&lt;br /&gt;-o strict_rfc821_envelopes=yes&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Then add this line to /etc/postfix/main.cf:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;content_filter = smtp-amavis:[127.0.0.1]:10024&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;then restart postfix by the command below:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/etc/init.d/postfix restart&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Now open &lt;code&gt;/etc/clamav.conf&lt;/code&gt; and &lt;code&gt;/etc/amavisd.conf&lt;/code&gt;, and make sure that amavisd.conf references the &lt;code&gt;LocalSocket&lt;/code&gt; file:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;## /etc/clamav/clamav.conf&lt;br /&gt;LocalSocket /var/run/clamav/clamd.ctl&lt;br /&gt;----------------------------------------&lt;br /&gt;## /etc/amavis/amavisd.conf&lt;br /&gt;### http://www.clamav.net/&lt;br /&gt;['Clam Antivirus-clamd',&lt;br /&gt;\&amp;ask_daemon, ["CONTSCAN {  }\n", "/var/run/clamav/clamd.ctl"],&lt;br /&gt;qr/\bOK$/, qr/\bFOUND$/,&lt;br /&gt;qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Note:&lt;br /&gt;It might happen that &lt;code&gt;/var/run/clamav/clamd.ctl&lt;/code&gt; does not exist and when you will try to start clamd, it won't start since it did'nt find that file or does not have the right to create or use the file so we can do the command:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;touch /var/run/clamav/clamd.ctl&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;and then&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;chown amavis.amavis /var/run/clamav/clamd.ctl&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Now we need to change some lines on &lt;code&gt;clamd.conf&lt;/code&gt; and &lt;code&gt;freshclam.conf&lt;/code&gt;..see below:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#/etc/clamd.conf&lt;br /&gt;User amavis #orig user is clamav&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Also change some default settings below&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;# Path to a local socket file the daemon will listen on.&lt;br /&gt;# Default: disabled&lt;br /&gt;LocalSocket /var/run/clamav/clamd.sock&lt;br /&gt;#note, the default is that LocaSocket was commented so have to uncomment it&lt;br /&gt;#Below, the default is that TCPSocket has no comment so you have to comment it&lt;br /&gt;#because if you forget to comment that line, when you restart Clamav, the error would be&lt;br /&gt;#Starting Clam AntiVirus Daemon: ERROR: You can select one mode only (local/TCP).&lt;br /&gt;# TCP port address.&lt;br /&gt;# Default: disabled&lt;br /&gt;#TCPSocket 3310&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;#/etc/freshclam&lt;br /&gt;DatabaseOwner amavis    #orig is clamav&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Now try to chown some clamav folder to amavis.amavis&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;LogFile /var/log/clamav/clamav.log&lt;br /&gt;PidFile /var/run/clamav/clamd.pid&lt;br /&gt;DatabaseDirectory /var/clamav/&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Finally, hunt down any files belonging to Clam AV in &lt;code&gt;/etc/logrotate.d/&lt;/code&gt;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/etc/logrotate.d/clamav&lt;br /&gt;/etc/logrotate.d/freshclam&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;The filenames may vary. Inside each file, find this line:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;create 640 clamav adm&lt;br /&gt;Change it to:&lt;br /&gt;create 640 clamav amavis&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Save the changes and reload clamav and that's it! You can now check the maillog of by the command:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;tail -f /var/log/maillog&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;You can also try to check if CLAMV anti-virus really functioning. Try to create a file in you name test.com ( do this inside your linux box ) paste the line of characters below without the quotes.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;"X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* "&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;This is the eicar anti-virus test file. Email this file as attachement to the user on that box or from that box to outside and you will see messages something like below, saying that it did detected this file as a sort of infected file.&lt;br /&gt;&lt;br /&gt;log file below:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;Feb 20 10:24:22 pacland amavis[3786]: (03786-06) Blocked INFECTED&lt;br /&gt;(Eicar-Test-Signature), &lt;&gt; -&gt; , Message-ID:&lt;br /&gt;&lt;20060220022421.ga25880@test.net&gt;, mail_id: qvSy9GYSCarX,&lt;br /&gt;Hits: -, 614 ms&lt;br /&gt;Feb 20 10:24:22 pacland postfix/smtp[25890]: C564C4A665:&lt;br /&gt;to=, relay=127.0.0.1[127.0.0.1], delay=1,&lt;br /&gt;status=sent (250 2.7.1 Ok, discarded, id=03786-06 - VIRUS: Eicar-Test-Signature)&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;If you find this in your log files, it means that the installation has been functioning well basically.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Installing and configuring spamassassin&lt;/li&gt;&lt;/ul&gt;     On Centos, "yum install spamassassin.i386 or check if might be already installed. After the installation, edit &lt;code&gt;/etc/amavis.conf&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Uncomment and set&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;$final_spam_destiny = D_PASS; # (defaults to D_REJECT)&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;D_PASS allow the message to be delivered to the recipient and let the recipient decide what to do.&lt;br /&gt;D_DISCARD will drop the message at smtp level, avoiding extra usage of bandwidth. Set the following:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;$sa_tag_level_deflt = -999; # add spam info headers if at, or above that level&lt;br /&gt;$sa_tag2_level_deflt = 5.0; # add 'spam detected' headers at that level&lt;br /&gt;$sa_kill_level_deflt = -999; # triggers spam evasive actions&lt;br /&gt;# string to prepend to Subject header field when message exceeds tag2 level&lt;br /&gt;$sa_spam_subject_tag = '***SPAM*** ';&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Then chown the spamassassin folders and files, as root, do the command.&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;chown -R amavis:amavis /usr/share/spamassassin&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Now, to test your system if it really filters spam, at least basically, try to email a certain account on the host that has been installed with spamassassin with a message that contains "penis enlargement, viagra" and I'm sure it will be block as spam.&lt;br /&gt;&lt;br /&gt;Then restart amavis-new &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;/etc/init.d/amavisd restart&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;check this out -/&lt;a href="http://www.yrex.com/spam/spamconfig.php"&gt;spamassassin autoconfigurator&lt;/a&gt;/-&lt;br /&gt;&lt;br /&gt;---/CHEERS!/---&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114040273019251359?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114040273019251359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114040273019251359' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114040273019251359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114040273019251359'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/02/quick-how-to-on-installing-amavis.html' title='A quick how-to on installing Amavis Clamav and Spamassassin on Centos 4.2 with Postfix'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-114006839926111410</id><published>2006-02-16T13:05:00.000+08:00</published><updated>2006-07-21T12:57:27.390+08:00</updated><title type='text'>Sending email from CLI on linux with attachment</title><content type='html'>&lt;b&gt;Sending email from CLI on linux with attachment&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Email clients to be used:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;nail&lt;br /&gt;email - http://email.cleancode.org/&lt;br /&gt;mutt&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;These is a quick guide on how to send email via Linux CLI, with attachement and can be run as cron job.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;On Mandriva:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Install nail &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;urpmi nail&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Now, to send an email with attachment, the command will be &lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;nail -s test -a file-to-be-attached.tar.gz user@email.com&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;where:&lt;br /&gt;-s = subject&lt;br /&gt;-a = attached file&lt;br /&gt;&lt;br /&gt;or see manpage of nail for more commands &lt;code&gt;man nail&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;After you hit the enter doing that command, it will wait for you to type a message and end with . (dot) so that it will execute and exit. It will not work when intended as cron jobs, so we have to change that command.. see below&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;echo "this is a little message" | nail -s test -a file-to-be-attached.tar.gz user@email.com&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;It will now send the email with attached file without prompting you to write a message.&lt;br /&gt;&lt;br /&gt;Enabling to send email with attachment, we can write a little script and run it as cron job.&lt;br /&gt;&lt;br /&gt;On Centos: ( I did not find a package "nail" on centos so the alternative, which also a good one is "email")&lt;br /&gt;&lt;br /&gt;Download "email" from http://email.cleancode.org/?pid=download. Choose the right package for your distro, if RPM, download it then install:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;rpm -ivh email.xxx.rp&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;then edit /etc/email.conf&lt;br /&gt;&lt;br /&gt;send email with attched file with the command below&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;email -s "test" -b -f sendername -a file.tar.gz user@emailme.com&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;where:&lt;br /&gt;-s = subject&lt;br /&gt;-b = sending blank email&lt;br /&gt;-f = sender's name&lt;br /&gt;-a = attached file&lt;br /&gt;&lt;br /&gt;Ohhh...! I realized that doing above with mutt is also possible, the command should be like below:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br /&gt;echo "this is a test" | mutt -a file-2-attach.tar.gz user-email@domain.tld -s my subject&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;Since mutt works, I dont need to install the mentioned package above.. &lt;code&gt;email&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-114006839926111410?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/114006839926111410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=114006839926111410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114006839926111410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/114006839926111410'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/02/sending-email-from-cli-on-linux-with.html' title='Sending email from CLI on linux with attachment'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113747479297201891</id><published>2006-01-17T12:53:00.000+08:00</published><updated>2006-03-06T09:53:52.326+08:00</updated><title type='text'>Mysql, Courier-Imap and POP - make them listen to localhost</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;-MYSQL-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit the the file /etc/my.cnf and add "bind-address = 127.0.0.1" with out the quote, and will look like that below....&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;datadir=/var/lib/mysql&lt;br /&gt;socket=/var/lib/mysql/mysql.sock&lt;br /&gt;# Default to using old password format for compatibility with mysql 3.x&lt;br /&gt;# clients (those using the mysqlclient10 compatibility package).&lt;br /&gt;old_passwords=1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;bind-address = 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[mysql.server]&lt;br /&gt;user=mysql&lt;br /&gt;basedir=/var/lib&lt;br /&gt;&lt;br /&gt;[mysqld_safe]&lt;br /&gt;err-log=/var/log/mysqld.log&lt;br /&gt;pid-file=/var/run/mysqld/mysqld.pid&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Courier-IMAP and POP3 with SSL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit the file that can be located @ /usr/lib/courier-imap/etc. Those files are, for IMAP, imapd and imapd-ssl, for POP3, pop3d and pop3d-ssl. Make sure to change the entry that contains&lt;br /&gt;&lt;blockquote&gt;##NAME: ADDRESS:0&lt;br /&gt;#&lt;br /&gt;#  Address to listen on, can be set to a single IP address.&lt;br /&gt;#&lt;br /&gt;ADDRESS=127.0.0.1&lt;br /&gt;&lt;br /&gt;#ADDRESS=0&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;the default is ADDRESS=0, I just change 0 (zero) to 127.0.0.1 so that it is not accessible outside, do this only if you dont need your IMAP or POP3 server to be accessible from outside, so its applicable if you use a web based email client like that of squirrel mail, you can set it up this way for safety purposes...&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113747479297201891?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113747479297201891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113747479297201891' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113747479297201891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113747479297201891'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/01/mysql-courier-imap-and-pop-make-them.html' title='Mysql, Courier-Imap and POP - make them listen to localhost'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113714224663497682</id><published>2006-01-13T16:38:00.000+08:00</published><updated>2006-04-01T10:57:36.503+08:00</updated><title type='text'>Disabling ipv6 on Fedora core 4 new install</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/76/1594/1600/linuxpowered01.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/76/1594/320/linuxpowered01.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After installing FC4, I found out that when I do #/sbin/ifconfig, it shows that IPv6 has been enabled on any eth interface on my box... see below..&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;eth0      Link encap:Ethernet  HWaddr 0D:60:97:6A:98:F4&lt;br /&gt;      inet addr:2xx.xx.xxx.xx2  Bcast:2xx.xx.xxx.xx3  Mask:255.255.255.0&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;          inet6 addr: f580::290:97ft:faaa:f6d4/64 Scope:Link&lt;/span&gt;&lt;br /&gt;      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;      RX packets:126557 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;      TX packets:77565 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;      collisions:0 txqueuelen:1000&lt;br /&gt;      RX bytes:155429479 (148.2 MiB)  TX bytes:5770590 (5.5 MiB)&lt;br /&gt;      Interrupt:10 Base address:0xdc00&lt;br /&gt;&lt;br /&gt;eth1      Link encap:Ethernet  HWaddr D0:81:42:86:GD:84&lt;br /&gt;      inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;          inet6 addr: fe88::201:25f:f883:cd74/64 Scope:Link&lt;/span&gt;&lt;br /&gt;      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;      RX packets:21897 errors:6 dropped:0 overruns:1 frame:9&lt;br /&gt;      TX packets:146 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;      collisions:24 txqueuelen:1000&lt;br /&gt;      RX bytes:5363531 (5.1 MiB)  TX bytes:9099 (8.8 KiB)&lt;br /&gt;      Interrupt:11 Base address:0xe000&lt;br /&gt;&lt;br /&gt;lo        Link encap:Local Loopback&lt;br /&gt;      inet addr:127.0.0.1  Mask:255.0.0.0&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;          inet6 addr: ::1/128 Scope:Host&lt;/span&gt;&lt;br /&gt;      UP LOOPBACK RUNNING  MTU:16436  Metric:1&lt;br /&gt;      RX packets:201 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;      TX packets:201 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;      collisions:0 txqueuelen:0&lt;br /&gt;      RX bytes:52924 (51.6 KiB)  TX bytes:52924 (51.6 KiB)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So, in order to disable it, I have to add the ff. on /etc/modprobe.conf file. [note: I found the Idea by googling]&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;alias net-pf-10 off&lt;br /&gt;alias ipv6 off&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;and then I rebooted, and here's the new result of #/sbin/ifconfig&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;eth0      Link encap:Ethernet  HWaddr 0D:60:97:6A:98:F4&lt;br /&gt;      inet addr:2xx.xx.xxx.xx2  Bcast:2xx.xx.xxx.xx3  Mask:255.255.255.0&lt;br /&gt;      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;      RX packets:126557 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;      TX packets:77565 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;      collisions:0 txqueuelen:1000&lt;br /&gt;      RX bytes:155429479 (148.2 MiB)  TX bytes:5770590 (5.5 MiB)&lt;br /&gt;      Interrupt:10 Base address:0xdc00&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The inet6 address has gone :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113714224663497682?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113714224663497682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113714224663497682' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113714224663497682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113714224663497682'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2006/01/disabling-ipv6-on-fedora-core-4-new.html' title='Disabling ipv6 on Fedora core 4 new install'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113573692409213959</id><published>2005-12-28T10:17:00.000+08:00</published><updated>2006-03-01T13:59:45.816+08:00</updated><title type='text'>How's my Christmas anyway.....</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/76/1594/1600/1001.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/76/1594/320/1001.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Ok, its 3 days after Christmas, and 3 days more before New Year. Well I celebrated my Christmas with my family of course, no party stuff, there should have been a street party on our place but the rain did not allow us to, the rain was heavy then and we have'nt prepared for that so... no party, we just stayed at home,  there were singing coz one of our neighbor rented a Video Karaoke machine supposedly for that party, so they just do singing till dawn. The foods..., no so much food, we just have a Special Buko salad and a common dinner, its special coz we've put several fruits stuff on it, so it'll taste much better. On December 25, it's a double special day coz its also the Birthday of my daughter, and of course, the Birth Day of our Jesus Christ. In the morning, we went to church and after church, just @ home preparing for a little celebration of my Daughters Birthday, inviting some children and giving food to some strangers that asking for PINASKOHAN ( Christmas Gift). We have a sort of childrens party, they have some games and prizes too to all kids. It's just a little childrens party, since there were only almost 10 kids attending, but the most important on that day is ... at least we were able to gave some foods, not only to the kids on that event but also to some strangers passing by.... and most of all, another Christmas for all of us and most especially another year to my lovely daughter.&lt;br /&gt;&lt;br /&gt;That's how I spend my Christmas... and MERRY CHRISTMAS TO ALL!!!!&lt;br /&gt;&lt;br /&gt;PEACE and GOD BLESS to US ALL!!!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113573692409213959?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113573692409213959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113573692409213959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113573692409213959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113573692409213959'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/12/hows-my-christmas-anyway.html' title='How&apos;s my Christmas anyway.....'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113342761177279040</id><published>2005-12-01T16:24:00.000+08:00</published><updated>2006-02-27T15:00:18.096+08:00</updated><title type='text'>Setting up Postfix, PostfixAdmin, Courier, SquirrelMail and Virtual Domain/Users and MYSQL as users Database</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;span style="font-family:times new roman;"&gt;I'll try to describe here my &lt;/span&gt;&lt;a style="font-family: times new roman;" href="http://centos.org/"&gt;Centos&lt;/a&gt;&lt;span style="font-family:times new roman;"&gt; 4.2 Mail server running postfix, courier, squrrelmail, and virtual users and domain using &lt;/span&gt;&lt;a style="font-family: times new roman;" href="http://www.mysql.com/"&gt;Mysql&lt;/a&gt;&lt;span style="font-family:times new roman;"&gt; as user database.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;If you don't like the way how I described it, you can visit &lt;a href="http://postfixwiki.org/index.php?title=Virtual_Users_and_Domains_with_Courier-IMAP_and_MySQL"&gt;here&lt;/a&gt;, the original and more detailed explanation on doing this.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Installing Centos 4.2, with Apache webserver, PHP and Mysql should be done first. I also install PHPMyadmin since I'm not good on Mysql CLI so have to depend on web based interface. After installing and configuring PHPmyadmin, I tried it and test if it does works well. Now that Im sure that PHP and mysql runs correctly, I'll now install Postfix, PostfixAdmin, and Courier-Imap.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Installing postfix:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;The default postfix rpm that can be installed by just typing "yum install postfix" does not support mysql, so I have to download postfix.src.rpm from the &lt;/span&gt;&lt;a style="font-family: times new roman;" href="http://mirror.centos.org/centos/4/os/SRPMS/postfix-2.1.5-4.2.RHEL4.src.rpm"&gt;source rpm mirror&lt;/a&gt;&lt;span style="font-family:times new roman;"&gt; and recompile it and enable mysql support.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Here's a little how-to:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="font-family: times new roman; text-align: left;"&gt;   &lt;li&gt;Download and install postfix source rpm from &lt;a href="http://mirror.centos.org/centos/4/os/SRPMS/postfix-2.1.5-4.2.RHEL4.src.rpm"&gt;here&lt;/a&gt;.&lt;/li&gt;   &lt;li&gt;Edit the postfix spec file, the line "%define MYSQL" should be followed by 1, the default is 0&lt;/li&gt;   &lt;li&gt;Then as root, issue the command "rpmbuild -bb /usr/src/redhat/SPECS/postfix.spec"&lt;/li&gt;   &lt;li&gt;It will prompt you to install those package needed by rebuilding POstfix, just install them one by one, anyway, you can just remove them after the installation has been rebuild.&lt;/li&gt;   &lt;li&gt;After the package has been rebuild, install the RPM file located at "/usr/src/redhat/RPMS/i386/"&lt;br /&gt;&lt;/li&gt; &lt;/ul&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Ok, make sure that sendmail has been remove before installing Postfix. Then try to configure it and make sure that the host where postfix resides should be able to send an email by using localhost as an smtp server. If it does, then we will proceed to installing courier-imap...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;The Courier-Imap that comes with Centos, by default does not support mysql so we have to build Courier-Imap from source to produce RPM package. First, I thought of it as its a hard to do, but I was wrong then, its not that hard.. google and the docs and FAQ from Courier's website really helps. Here's how I did it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="font-family: times new roman; text-align: left;"&gt;   &lt;li&gt;Download the only needed Courier-Imap packages. What we need are the courier-imap and courier-authlib packages. You can download from &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=5404"&gt;here&lt;/a&gt; the needed packages.&lt;/li&gt;   &lt;li&gt;Build the rpm as a regular user, not as root, follow the steps below, or you can visit this &lt;a href="http://www.courier-mta.org/?FAQ.html%7Erpm"&gt;page&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt; &lt;/ul&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;ol style="font-family: times new roman; text-align: left;"&gt;   &lt;li&gt;     &lt;pre style="margin-bottom: 0.2in;"&gt;mkdir $HOME/rpmmkdir $HOME/rpm/SOURCES&lt;br /&gt;mkdir $HOME/rpm/SPECS&lt;br /&gt;mkdir $HOME/rpm/BUILD&lt;br /&gt;mkdir $HOME/rpm/SRPMS&lt;br /&gt;mkdir $HOME/rpm/RPMS&lt;br /&gt;mkdir $HOME/rpm/RPMS/i386&lt;/pre&gt;   &lt;/li&gt;   &lt;li&gt;     &lt;pre style="margin-bottom: 0.2in;"&gt;echo "%_topdir    $HOME/rpm" &gt;&gt; $HOME/.rpmmacros&lt;/pre&gt;   &lt;/li&gt;   &lt;li&gt;     &lt;pre&gt;rpmbuild -ta courier-imap-0.40.tar.bz2   # For RPM 4.1, and higher (Red Hat 8.0)&lt;br /&gt;rpmbuild -ta courier-authlib-*.tar.bz2&lt;/pre&gt;&lt;/li&gt; &lt;/ol&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;ul style="text-align: left;font-family:times new roman;" &gt;   &lt;li&gt;After doing what should have to be done, installing those needed additional packages to install and assuming that it has been successfully build, you can find those rpm on your $home/rpm/RPMS/i386/ and install it as root.&lt;/li&gt; &lt;/ul&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family:times new roman;"&gt; Now that we have installed those required packages, we need to install and setup &lt;/span&gt;&lt;a style="font-family: times new roman;" href="http://high5.net/postfixadmin/"&gt;PostfixAdmin&lt;/a&gt;&lt;span style="font-family:times new roman;"&gt;.   Postfix Admin is a Web Based Management tool created for &lt;/span&gt;&lt;a style="font-family: times new roman;" target="_blank" href="http://www.postfix.org/"&gt;Postfix&lt;/a&gt;&lt;span style="font-family:times new roman;"&gt;. It is a &lt;/span&gt;&lt;a style="font-family: times new roman;" target="_blank" href="http://www.php.net/"&gt;PHP&lt;/a&gt;&lt;span style="font-family:times new roman;"&gt; based application that handles Postfix Style Virtual Domains and Users that are stored in &lt;/span&gt;&lt;a style="font-family: times new roman;" target="_blank" href="http://www.mysql.com/"&gt;MySQL&lt;/a&gt;&lt;span style="font-family:times new roman;"&gt;. Below is the content of Install.txt that can be found together with the postfixadmin package.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Postfix Admin&lt;br /&gt;# by Mischa Peters&lt;br /&gt;# Copyright (c) 2002 - 2005 High5!&lt;br /&gt;# License Info: http://www.postfixadmin.com/?file=LICENSE.TXT&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;REQUIRED!!&lt;br /&gt;----------&lt;br /&gt;- You are using Postfix 2.0 or higher.&lt;br /&gt;- You are using Apache 1.3.27 or higher.&lt;br /&gt;- You are using PHP 4.1 or higher.&lt;br /&gt;- You are using MySQL 3.23 or higher.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;READ THIS FIRST!&lt;br /&gt;----------------&lt;br /&gt;When this is an upgrade from Postfix Admin 1.5.4 please read UPGRADE.TXT!!&lt;br /&gt;&lt;br /&gt;If you need to setup Postfix to be able to handle Virtual Domains and Virtual&lt;br /&gt;Users check out http://high5.net/howto/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Unarchive new Postfix Admin&lt;br /&gt;------------------------------&lt;br /&gt;Make sure that you are in your WWW directory and then unarchive the&lt;br /&gt;Postfix Admin archive (whatever the filename is):&lt;br /&gt;&lt;br /&gt;$ tar -zxvf postfixadmin-2.0.0.tgz&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Change permissions&lt;br /&gt;----------------------&lt;br /&gt;Since the database  password is stored in the config.inc.php it's a good idea&lt;br /&gt;to have change the permissions for Postfix Admin.&lt;br /&gt;&lt;br /&gt;$ cd /usr/local/www/postfixadmin&lt;br /&gt;$ chmod 640 *.php *.css&lt;br /&gt;$ cd /usr/local/www/postfixadmin/admin/&lt;br /&gt;$ chmod 640 *.php .ht*&lt;br /&gt;$ cd /usr/local/www/postfixadmin/images/&lt;br /&gt;$ chmod 640 *.gif *.png&lt;br /&gt;$ cd /usr/local/www/postfixadmin/languages/&lt;br /&gt;$ chmod 640 *.lang&lt;br /&gt;$ cd /usr/local/www/postfixadmin/templates/&lt;br /&gt;$ chmod 640 *.tpl&lt;br /&gt;$ cd /usr/local/www/postfixadmin/users/&lt;br /&gt;$ chmod 640 *.php&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Create the Database Tables&lt;br /&gt;--------------------------&lt;br /&gt;In DATABASE_MYSQL.TXT you can find the table structure for MySQL that you need&lt;br /&gt;in order to configure Postfix Admin and Postfix in general to work with&lt;br /&gt;Virtual Domains and Users.&lt;br /&gt;&lt;br /&gt;In DATABASE_PGSQL.TXT you can find the table structure for PostgreSQL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Configure&lt;br /&gt;------------&lt;br /&gt;Check the config.inc.php file. There you can specify settings that are&lt;br /&gt;relevant to your setup.&lt;br /&gt;&lt;br /&gt;Postfix Admin contains 3 views of administration.&lt;br /&gt;There is the Site Admin view, located at http://domain.tld/postfixadmin/admin/.&lt;br /&gt;There is the Domain Admin view, located at http://domain.tld/postfixadmin/.&lt;br /&gt;And there is the User Admin View, located at http://domain.tld/postfixadmin/users/.&lt;br /&gt;&lt;br /&gt;In order to do the initial configuration you have to go to the Site Admin view.&lt;br /&gt;&lt;br /&gt;The default password for the Site Admin view of Postfix Admin is admin/admin.&lt;br /&gt;&lt;br /&gt;This is specified in the .htpasswd file in the /admin directory. Make sure&lt;br /&gt;that the location of the .htpasswd file matches your path.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Done&lt;br /&gt;-------&lt;br /&gt;This is all that is needed. Fire up your browser and go to the site that you&lt;br /&gt;specified to host Postfix Admin.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6. More information&lt;br /&gt;-------------------&lt;br /&gt;For more information you can go to the Postfix Admin forums.&lt;br /&gt;http://forums.high5.net/index.php?showforum=22&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Now assuming that postfix admin has been installed successfully, we will now try to reconfigure postfix for it to work as been expected.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;Edit "/etc/postfix/main.cf" and add the txt below:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_alias_maps =    mysql:/etc/postfix/mysql_virtual_alias_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_gid_maps    = static:89&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_mailbox_base =    /home/virtualmail&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_mailbox_domains =    mysql:/etc/postfix/mysql_virtual_domains_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_mailbox_limit    = 51200000&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_mailbox_maps =    mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_minimum_uid    = 89&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_transport = virtual&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_uid_maps =    static:89&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;# Additional for quota    support&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_create_maildirsize =    yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_mailbox_extended = yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_mailbox_limit_maps    =    mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_mailbox_limit_override    = yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_maildir_limit_message = Sorry, the user's maildir    has overdrawn his diskspace quota, please try again    later&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;virtual_overquota_bounce = yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;Notes:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: left;" face="times new roman"&gt;   &lt;li&gt;&lt;span style="font-size:85%;"&gt;"virtual_mailbox_base = /home/virtualmail" - The "virtualmail" folder under /home should be created manually. Also it is not necessarily that the folder should be inside the /home, It could also be at /var or /var/mail&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li&gt;&lt;span style="font-size:85%;"&gt;The uid that has an 89 value is the same as the usi of user postfix.&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family:times new roman;"&gt; Then, we have to manually create the file "myql_virtual_alias_maps.cf" and the others as defined on the main.cf file under /etc/postfix. Below are the entries that we should put on those files.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;#filename:mysql_virtual_alias_maps.cf,    and below are the contents of this file&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;user    = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;password    = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;hosts =    localhost&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;dbname    = postfix&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;table    = alias&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;select_field    = goto&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;where_field    = address&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;#mysql_virtual_domains_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;user    = postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;password = postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;hosts = localhost&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;dbname =    postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;table = domain&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;select_field =    description&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;where_field = domain&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;#mysql_virtual_mailbox_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;user    = postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;password = postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;hosts = localhost&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;dbname =    postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;table = mailbox&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;select_field = maildir&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;where_field    = username&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;#mysql_virtual_mailbox_limits_maps.cf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;user    = postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;password = postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;hosts = localhost&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;dbname =    postfix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;table = mailbox&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;select_field = quota&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;where_field    = username&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;Now that we've finished creating those files, we need to reload postfix to apply those changes we made.. (#/etc/init.d/postfix restart). We shall now try to open the url where we can access the postfixadmin page. If we won't encounter any problem at all, we should be able to add any virtual domain and virtual users. Those individual folders will be automatically created under the "/home/virtualmail" directory.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;Opps! when encountered a problem during adding a domain, thus that postfix admin will just prompt that the domain already exist, try to edit the php.ini file. The line that contains "&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;magic_quote_gpc" should be changed to "ON". The default is off. Then try to reboot. If you can't afford to reboot, reload all the services that uses PHP.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;Now we will make some changes on /etc/authlib/authdaemonrc.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;The default is the commented authmodulelist below. I changed it to the value of the uncommented one, thus that contains only "authpam and authmysql"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;#///////////////////////////////&lt;/span&gt;&lt;br /&gt;&lt;pre style="text-align: left;"&gt;&lt;span style="font-size:85%;"&gt;#/etc/authlib/authdaemonrc&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;#authmodulelist="authuserdb authpam authpgsql authldap authmysql authcustom authpipe"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;authmodulelist="authmysql authcustom authpam"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;#if authpam is not included here, your local users wont be able to &lt;/span&gt;&lt;span style="font-size:85%;"&gt;access IMAP or POP3 server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;authmodulelistorig="authuserdb authpam authpgsql authldap authmysql authcustom authpipe"&lt;/span&gt;&lt;/pre&gt; &lt;span style=";font-family:times new roman;font-size:100%;"  &gt;#///////////////////////////////&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;Then edit /etc/authlib/authmysqlrc the same as described below.&lt;/span&gt;&lt;br /&gt;&lt;pre style="text-align: left;"&gt;&lt;span style="font-size:85%;"&gt;#/etc/authlib/authmysqlrc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;##NAME: LOCATION:0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# The server name, userid, and password used to log in.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_SERVER            localhost&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_USERNAME          postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_PASSWORD          postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_SOCKET            /var/lib/mysql/mysql.sock&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;#MYSQL_PORT             3306&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_OPT               0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_DATABASE          postfix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_USER_TABLE        mailbox&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_CRYPT_PWFIELD     password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;#MYSQL_CLEAR_PWFIELD    password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_UID_FIELD         '89'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_GID_FIELD         '89'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_LOGIN_FIELD       username&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_HOME_FIELD        '/home/virtualmail'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_NAME_FIELD        name&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;MYSQL_MAILDIR_FIELD     maildir&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# MYSQL_QUOTA_FIELD     quota&lt;/span&gt;&lt;/pre&gt; Note:&lt;br /&gt;I assign the name postfix as mysql username and the password is also postfix, so you can change it to any name you like as long as you gave that name enough rights to access the database postfix on your mysql database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ok, after installing those described above, I then install and configure &lt;a href="http://www.squirrelmail.org/"&gt;squirrelmail&lt;/a&gt; to test that my webserver really run as I want it to be... I got my domain from http://dyndns.org. I point several subdomain to the IP assigned to the host act as the mail server and manage the the multiple subdomains and virtual email accounts  via postfixadmin.&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113342761177279040?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113342761177279040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113342761177279040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113342761177279040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113342761177279040'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/12/setting-up-postfix-postfixadmin.html' title='Setting up Postfix, PostfixAdmin, Courier, SquirrelMail and Virtual Domain/Users and MYSQL as users Database'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113331554349767925</id><published>2005-11-30T09:24:00.000+08:00</published><updated>2006-02-27T15:10:25.386+08:00</updated><title type='text'>Using LINUX as NAT gateway</title><content type='html'>&lt;div style="text-align: left;"&gt;Share your internet connection in your LAN by using Linux and IPTABLES. First, create a script and put it in your /etc/rc.d/ then name it gateway.sh like below..&lt;br /&gt;&lt;br /&gt;root@localhost#vi /etc/rc.d/gateway.sh&lt;br /&gt;&lt;/div&gt;&lt;p style="text-align: left;"&gt; then enter the following:&lt;br /&gt;#!/bin/sh&lt;br /&gt;echo “1″ &gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE&lt;br /&gt;&lt;br /&gt;where eth1 is your interface connected to internet and eth0 is the interface connected to LAN. Then the ip address of your eth0 should be the ip gateway of the hosts connected to your LAN.&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;After you made that little script, put that in your rc.local file so it will run everytime the pc starts-up. Do it like this:&lt;br /&gt;&lt;br /&gt;root@localhost#vi /etc/rc.d/rc.local&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt; #at the end of all the script, enter the ff. line&lt;br /&gt;/etc/rc.d/gateway.sh&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt; then save it&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;Opps, we have not yet made that gateway.sh executable, so to make it, do it like this:&lt;br /&gt;root@localhost#chmod +x /etc/rc.d/gateway.sh&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;now you can run that script or when you restart, it will just start.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113331554349767925?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113331554349767925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113331554349767925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113331554349767925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113331554349767925'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/11/using-linux-as-nat-gateway.html' title='Using LINUX as NAT gateway'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113331378705330691</id><published>2005-11-30T09:20:00.000+08:00</published><updated>2006-02-27T15:06:09.626+08:00</updated><title type='text'>Basic Cisco Router SNMP Config</title><content type='html'>&lt;div style="text-align: left;" class="entry"&gt;       &lt;p&gt;Basic &lt;a href="http://www.cisco.com/"&gt;Cisco&lt;/a&gt; Router SNMP Configuration&lt;/p&gt;  &lt;p&gt;To enable read-only SNMP services, use the following configuration command:&lt;/p&gt; &lt;p&gt; Router#configure terminal&lt;br /&gt;Enter configuration commands, one per line.  End with CNTL/Z.&lt;br /&gt;Router(config)#snmp-server community thisisatest ro&lt;br /&gt;Router(config)#end&lt;br /&gt;Router#&lt;br /&gt;&lt;/p&gt; thisisatest is the read-only community string&lt;br /&gt;&lt;p&gt;To enable read-write SNMP services, use the following command:&lt;/p&gt; &lt;p&gt; Router#configure terminal&lt;br /&gt;Enter configuration commands, one per line.  End with CNTL/Z.&lt;br /&gt;Router(config)#snmp-server community thisisatest rw&lt;br /&gt;Router(config)#end&lt;br /&gt;Router# &lt;/p&gt;      &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113331378705330691?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113331378705330691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113331378705330691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113331378705330691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113331378705330691'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/11/basic-cisco-router-snmp-config.html' title='Basic Cisco Router SNMP Config'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113331350550459031</id><published>2005-11-30T09:14:00.000+08:00</published><updated>2006-06-28T09:04:01.163+08:00</updated><title type='text'>The CHMOD command</title><content type='html'>&lt;p style="text-align: left;"&gt;Note: $ signifies user prompt, # signifies root prompt&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt;&lt;br /&gt;The chmod command changes permissions on files and directories. Type $man chmod in your linux console for further info. If you would like to see what permission a file has, you may type in your console the command   &lt;br /&gt;$ls -l testfile.txt&lt;br /&gt;-rw-rw-r–  1 ken ken 0 May 16 11:21 testfile.txt&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt; # the file has a permission of 664… see table below&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;Table 001&lt;br /&gt;Illustrates the eight possible combinations of numbers used for changing permissions.&lt;br /&gt;Decimal—–Binary—–Permissions&lt;br /&gt;0      000     none&lt;br /&gt;1      001     –x&lt;br /&gt;2      010     -w-&lt;br /&gt;3      011     -wx&lt;br /&gt;4      100      r–&lt;br /&gt;5      101      r-x&lt;br /&gt;6      110      rw-&lt;br /&gt;7      111      rwx&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;The symbolic notation for chmod is as follows: r = read; w = write; x = execute; u = user;&lt;br /&gt;g = group; o = others; a = all.&lt;br /&gt;&lt;br /&gt;ex. for chmod command&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt; $chmod 777 testfile.txt     - would make the permission of the file rwx-rwx-rwx&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt; $chmod g-x testfile.txt      - would change the file permission to rwx-rw-rwx&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt;                                             the command g-x removes the x permission to the g(group)&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt; &lt;/div&gt;&lt;p style="text-align: left;"&gt; $chmod g+x testfile.txt     - would again add the x permission to the group rwx-rwx-rwx&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;In MO, its easier to remember and to use symbolic notation to add or remove a file permissions.&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;$chmod og-x -R /home/user/bin    - would remove all the x permission on other users and the group on all the&lt;br /&gt;files inside the /home/user/bin directory - rwx-rw-rw assuming the original file permission was 777 or rwx-rwx-rwx&lt;/p&gt;&lt;div style="text-align: left;"&gt;    &lt;/div&gt;&lt;p style="text-align: left;"&gt;reference book: &lt;span style="font-weight: bold;"&gt;UNIX Shells by example 4th Edition&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113331350550459031?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113331350550459031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113331350550459031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113331350550459031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113331350550459031'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/11/chmod-command.html' title='The CHMOD command'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-113141813922146029</id><published>2005-11-08T03:14:00.000+08:00</published><updated>2006-03-03T15:22:10.003+08:00</updated><title type='text'>Mandriva Linux 10.1 Dial-in Server</title><content type='html'>&lt;div style="text-align: left;"&gt;Here' s my Dial-in Server setup on my mandrake 10.1 using US Robotics 56 K Data Fax External Modem&lt;br /&gt;&lt;br /&gt;Below are the steps and configs:&lt;br /&gt;&lt;br /&gt;1. Make sure that the host acting as Dial-in server has a working internet connection.&lt;br /&gt;&lt;br /&gt;2. Download and install mgetty. [on my system, #urpmi mgetty]&lt;br /&gt;&lt;br /&gt;3. After installing mgetty, edit the inittab [#vi /etc/inittab ], and I added the text below on the last line of my iniitab. My modem is on Com2 and so its ttyS1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;    S1:2345:respawn:/sbin/mgetty -s 57600 -D ttyS1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. My /etc/mgetty+sendfax/mgetty.config&lt;br /&gt;&lt;br /&gt;   data-only yes&lt;br /&gt;   speed 57600&lt;br /&gt;   modem-type auto&lt;br /&gt;     modem-check-time 1800&lt;br /&gt;     init-chat "" AT&amp;F1M0&lt;br /&gt;   port ttyS1&lt;br /&gt;     debug 9&lt;br /&gt;&lt;br /&gt;5. My /etc/mgetty+sendfax/login.config.&lt;br /&gt;[actually, I just commented it out from the original login.config file, be sure to comment the lastline portion of that file.]&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;/AutoPPP/ -     a_ppp   /usr/sbin/pppd auth -chap +pap login debug&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.  I just disregard dialin.config, all of the text inside were commented, I did'nt touch anything in here.&lt;br /&gt;&lt;br /&gt;7. Install ppp [#urpmi ppp] and below are my /etc/ppp/*configs&lt;br /&gt;     &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#/etc/ppp/options&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;asyncmap 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;crtscts&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;nodetach&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deflate 15&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;debug&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;lock&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;login&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;modem&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ms-dns 202.71.176.2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ms-dns 202.71.176.3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;require-pap&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;refuse-chap&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#note: the word "login" above means that I will use the username and password of the existing users of this box&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#/etc/ppp/options.ttyS1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; 192.168.1.101:192.168.1.102&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#note: *.101 is the assigned local IP, *.101 will be the remote IP&lt;br /&gt;#These IP are not yet assigned to any host connected to LAN&lt;br /&gt;#----------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;#/etc/ppp/pap-secrets&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;# Secrets for authentication using PAP&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;# client        server  secret                  IP addresses&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;* * "" *&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;8. The eth0 of this box is directly connected to the internet, so I have to do a masquerading on IPtables to share the internet it has on the connected ppp interface. I added the text below on my rc.firewall script for the said purpose, NAT.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#NAT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;echo "1" &gt; /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9. As of now, I am using windows XP and 2000 on the dialing client side and it works fine, I can connect up to 40 kbps (eh, very slow) but at least, I can check emails and do some slow browsing. I'd tried a linux client but it wont connect, it has some sort of errors, and I have to investigate further so I can use linux at home.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-113141813922146029?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/113141813922146029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=113141813922146029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113141813922146029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/113141813922146029'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/11/mandriva-linux-101-dial-in-server.html' title='Mandriva Linux 10.1 Dial-in Server'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-112721037222074297</id><published>2005-09-21T09:20:00.000+08:00</published><updated>2006-03-07T10:48:20.523+08:00</updated><title type='text'>Linux Migration on workstation</title><content type='html'>&lt;div style="text-align: left;"&gt;Started last week, I'd been busy migrating some our PC to linux, well, that was due to the anti piracy campaign of M$ and other Proprietary software. Several Internet Cafe' here in our place  had been raided and closed and their PC's were confiscated because of the BIG piracy issue. Thanks for the OpenSource Software that save the company some amount of dollars, though not all PC were able to convert to Linux OS due to the application being used, but the majority are now using linux. The distro that I choose is Mandrake 10.1, its because, I find it more stable than those new version of Mandriva, and other thatn that, I am more familiar on it than those other distro, though there are lots of distros to choose to, but it can save me time to choose the one that I am more familiar with.&lt;br /&gt;&lt;br /&gt;After several days, I am almost finished, and all linux users are now able to print to our Minolta Di610. All shared files on windows box are being automounted on their desktop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;later... its late.. I have to go :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-112721037222074297?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/112721037222074297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=112721037222074297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/112721037222074297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/112721037222074297'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/09/linux-migration-on-workstation.html' title='Linux Migration on workstation'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-112667078324504608</id><published>2005-09-15T03:25:00.000+08:00</published><updated>2006-02-27T14:56:12.756+08:00</updated><title type='text'>My Linux Desktop</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/76/1594/1600/mydesktop09142005.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/76/1594/320/mydesktop09142005.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;This is my desktop, I'm using &lt;a href="http://www.mandrivalinux.com/"&gt;Mandrake 10.1&lt;/a&gt; as my OS and KDE 3.4, I started using Linux for almost  2 years now, and  I had never experienced  like that  on  a  MS box, well, I'm not saying that I totally leave windows behind, my wife ( in the background) still using Windows for her Desktop Publishing hobby or shall I say income generator at home. The beauty of using linux is that I dont encounter any virus and spyware anymore, and its free... if you dont have a CD installer yet, you can check this linux distro that will ship the CD for you  for free (http://www.ubuntulinux.org/). I have so much more to say about Linux Desktop, so later..... I'll add more&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-112667078324504608?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aioshin.blogspot.com/feeds/112667078324504608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=16710470&amp;postID=112667078324504608' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/112667078324504608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/112667078324504608'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/09/my-linux-desktop.html' title='My Linux Desktop'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-16710470.post-112666611571772426</id><published>2005-09-15T02:09:00.000+08:00</published><updated>2006-03-10T12:42:09.536+08:00</updated><title type='text'>My first post</title><content type='html'>Ok, This is my first post here, I just wann try to be a blogger, actually, I have tried it many times, but on my own server and due to I dont know, I just stop posting, but I'll try it here to be consistent... don't know yet exactly what kind of blogs I am going to put here.... se yah later..:)&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16710470-112666611571772426?l=aioshin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/112666611571772426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/16710470/posts/default/112666611571772426'/><link rel='alternate' type='text/html' href='http://aioshin.blogspot.com/2005/09/my-first-post.html' title='My first post'/><author><name>aioshin</name><uri>http://www.blogger.com/profile/10732776545706118032</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
