<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Linux stuffs</title><link>http://radcom.ir/weblog/hamid/category/55.aspx</link><description>My expreiences in Linux, Redhat, FreeBSD OS</description><managingEditor>Hamid</managingEditor><dc:language>fa</dc:language><generator>SAMPA Weblogs</generator><item><dc:creator>Hamid</dc:creator><title>Security issue on installing your own Tucows/OpenSRS Reseller Client Library </title><link>http://radcom.ir/weblog/hamid/archive/2005/11/16/11528.aspx</link><pubDate>Wed, 16 Nov 2005 19:30:00 GMT</pubDate><guid>http://radcom.ir/weblog/hamid/archive/2005/11/16/11528.aspx</guid><wfw:comment>http://radcom.ir/weblog/hamid/comments/11528.aspx</wfw:comment><comments>http://radcom.ir/weblog/hamid/archive/2005/11/16/11528.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://radcom.ir/weblog/hamid/comments/commentRss/11528.aspx</wfw:commentRss><trackback:ping>http://radcom.ir/weblog/hamid/services/trackbacks/11528.aspx</trackback:ping><description>&lt;P dir=ltr&gt;There is a security issue when&amp;nbsp;you are install your RCL to manage your own domain registered with Tucows/OpenSRS.&lt;/P&gt;
&lt;P dir=ltr&gt;/cgi-bin/manage.cgi has the feature like "Forgot&amp;nbsp;Password?" which will send the password to the owner or admin of the domain name. &lt;/P&gt;
&lt;P dir=ltr&gt;The following flags in OpenSRS.conf mange this feature:&lt;/P&gt;
&lt;P dir=ltr&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # setting this will allow your customers to request their username /&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # password be sent to them through main manage.cgi screen.&amp;nbsp; The&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # password that is sent can be either that for the main user or the&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # subuser of the domain, and it can be sent to either the admin&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # contact, or the owner (registrant) of the domain.&amp;nbsp; Note that if&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # set to sub-user, and sub-user doesn't exist, an error will be&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # returned.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow_password_requests =&amp;gt; 0,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password_send_to_admin =&amp;gt;&amp;nbsp; 0,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password_send_to_owner =&amp;gt; 0,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password_send_subuser =&amp;gt; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 1 to send sub-user password&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enable_cira_email_pwd =&amp;gt; 0,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;
&lt;P dir=ltr&gt;Suppose you have a single account profile in OpenSRS and you register all your domains in this profile and also suppose&amp;nbsp;the&amp;nbsp;send password flags are turned ON( setting to 1).&lt;/P&gt;
&lt;P dir=ltr&gt;One day one of your customer ask you to enable him to manage his domain by himself so you create a SUBUSER&amp;nbsp;account in his domain name with the ability to change the ADMIN or OWNER data and sent it to him.&lt;/P&gt;
&lt;P dir=ltr&gt;This customer will go to your /cgi-bin/manage.cgi and change the ADMIN email and then logout and reenter to the /cgi-bin/manage.cgi and enter his password incorrectly, the system will offer you to send his password back to Admin email of the domain and he only tell OK. &lt;BR&gt;Unfortunately the OpenSRS will send the account profile password to the SUBUSER, he can then login to the your profile and God knows what will going on then.&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;STRONG&gt;So turning off this flags are strongly recommended.&lt;/STRONG&gt;&lt;/P&gt;&lt;img src ="http://radcom.ir/weblog/hamid/aggbug/11528.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Hamid</dc:creator><title>Plesk 7.5 and Redhat Enterprise Linux(RHEL) Problems</title><link>http://radcom.ir/weblog/hamid/archive/2005/11/07/10866.aspx</link><pubDate>Mon, 07 Nov 2005 12:45:00 GMT</pubDate><guid>http://radcom.ir/weblog/hamid/archive/2005/11/07/10866.aspx</guid><wfw:comment>http://radcom.ir/weblog/hamid/comments/10866.aspx</wfw:comment><comments>http://radcom.ir/weblog/hamid/archive/2005/11/07/10866.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://radcom.ir/weblog/hamid/comments/commentRss/10866.aspx</wfw:commentRss><trackback:ping>http://radcom.ir/weblog/hamid/services/trackbacks/10866.aspx</trackback:ping><description>&lt;P dir=ltr&gt;&lt;FONT size=2&gt;I&amp;nbsp;installed Redhat Linux Enterprise (RHEL) in virtual machine and without any manual changes I went to install Plesk 7.5 Reloaded.&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;Plesk successfully installed on this box.But when&amp;nbsp;I logined to plesk, I found that DNS server (BIND)&amp;nbsp;in "server management" failed connect and start it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;I had the same story with my RHEL box which I leased from &lt;/FONT&gt;&lt;A href="http://www.netnation.com"&gt;&lt;FONT size=2&gt;NetNation&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;. They installed and delivered Plesk 7.5 in my box and When I logined to Plesk, I found that DNS Server (BIND) stopped and failed to start.&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;I asked NetNation support to resolve the problem and after two day they told me:&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;"&lt;FONT color=#808000&gt;&lt;FONT color=#808080&gt;It looks like manual changes have been made to the bind configuration on your server. With custom changes done outside of Plesk, we are unable to guarentee Plesk will be able to operate as a front end to the service.&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;So I decide to follow the case by myself&amp;nbsp;. &lt;BR&gt;I dig into &lt;FONT color=#0000ff&gt;/va/log/message&lt;/FONT&gt; and the error was:&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT color=#ff0000 size=2&gt;Nov 3 11:59:35 lnn197 kernel: audit(1131006575.886:492): avc: denied { getattr } for pid=18156 comm="rndc"name="rndc.conf" dev=md2 ino=3753157 scontext=user_u:system_r:ndc_t tcontext=user_u:object_r:named_zone_t tclass=file&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;The command "&lt;FONT color=#0000ff&gt;service named start&lt;/FONT&gt;" failed but I could run "named" from the &lt;FONT color=#0000ff&gt;/usr/sbin/&lt;/FONT&gt; with the following command:&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT color=#0000ff size=2&gt;#/usr/sbin/named -u named -c /etc/named.cong -t /var/named/run-root/&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;The above command successfully ran the named and everything was OK.&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;But I baffled why "&lt;FONT color=#0000ff&gt;service named restart&lt;/FONT&gt;" fails? So I asked Plesk support and fortunatly they told me something helpful:&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT color=#808080 size=2&gt;"RedHat distributes RHEL with SElinux enabled by default. So default SElinux policy denies apache to manage bind (named). You should edit some boleans of selinux or switch selinux off for resolving of your issue."&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;I disabled the SElinux by editing /etc/sysconfig/selinux and setting SELINUX flag to Permissive.&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;And the problem resolved. &lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;If you want to your SElinux enabled in enforing mode you should&amp;nbsp;run&amp;nbsp;the fillowing commands to tun&lt;/FONT&gt;&lt;FONT size=2&gt;e some&amp;nbsp;Booleans:&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT color=#0000ff size=2&gt;# setsebool -P named_write_master_zones=1&lt;BR&gt;# setsebool -P named_disable_trans=1&lt;BR&gt;# setsebool -P httpd_disable_trans=1&lt;BR&gt;# setsebool -P mysql_disable_trans=1&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;Standard configuration of Red Hat® Enterprise Linux 4.0 (AS/ES) goes with enabled SElinux. &lt;/FONT&gt;&lt;FONT color=#000000&gt;Unfortunately Installer of current version of Plesk doesn't set selinux booleans correctly. This issue is fixed for the next version of Plesk which is targeted for release on the December 2005. &lt;BR&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT size=2&gt;You can see the &lt;/FONT&gt;&lt;FONT size=2&gt;following link for something related to this problem:&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;A href="http://radcom.ir/weblog/majid/archive/2005/11/06/10788.aspx"&gt;http://radcom.ir/weblog/majid/archive/2005/11/06/10788.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P dir=rtl&gt;&lt;FONT face="Times New Roman" size=2&gt;چند کلمه هم&amp;nbsp;به فارسی:&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=rtl&gt;&lt;FONT face="Times New Roman" size=2&gt;طعم پشتیبانی اینها را هم نچشیده بودیم که چشیدیم، بیخودی کلی الاف و معطلمون کردند.خیلی رو دارند به خدا، همین طوری یه مزخرفی را نصب می کنند و تحویل می دهند بدون اینکه یه بار هم آن را تست کنند، ببیند کار می کنه یا نه.&lt;BR&gt;بعد هم که بهشون میگی "مشکل داره حلش کنید"، جواب سربالا می دهند. &lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=rtl&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://radcom.ir/weblog/hamid/aggbug/10866.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Hamid</dc:creator><title>How to find out the version of BIND running</title><link>http://radcom.ir/weblog/hamid/archive/2005/11/05/10694.aspx</link><pubDate>Sat, 05 Nov 2005 10:34:00 GMT</pubDate><guid>http://radcom.ir/weblog/hamid/archive/2005/11/05/10694.aspx</guid><wfw:comment>http://radcom.ir/weblog/hamid/comments/10694.aspx</wfw:comment><comments>http://radcom.ir/weblog/hamid/archive/2005/11/05/10694.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://radcom.ir/weblog/hamid/comments/commentRss/10694.aspx</wfw:commentRss><trackback:ping>http://radcom.ir/weblog/hamid/services/trackbacks/10694.aspx</trackback:ping><description>&lt;P dir=ltr&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir=ltr&gt;To determine the version of BIND using &lt;STRONG&gt;nslookup&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT face="Courier New"&gt;&amp;gt;nslookup -q=txt -class=CHAOS version.bind 192.168.0.1&lt;BR&gt;Server:&amp;nbsp;&amp;nbsp;&amp;nbsp;servername&lt;BR&gt;Address:&amp;nbsp; 192.168.0.1&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT face="Courier New"&gt;version.bind&amp;nbsp;&amp;nbsp;&amp;nbsp; text =&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "9.2.1"&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;-----------------------------------&lt;BR&gt;To determine the verison of BIND using &lt;STRONG&gt;dig&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P dir=ltr&gt;[&lt;A href="mailto:root@as4"&gt;&lt;FONT face="Courier New"&gt;root@as4&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;~]# dig @192.168.0.1 version.bind chaos txt&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT face="Courier New"&gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.2.4 &amp;lt;&amp;lt;&amp;gt;&amp;gt; @192.168.0.1 version.bind chaos txt&lt;BR&gt;;; global options:&amp;nbsp; printcmd&lt;BR&gt;;; Got answer:&lt;BR&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 13916&lt;BR&gt;;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT face="Courier New"&gt;;; QUESTION SECTION:&lt;BR&gt;;version.bind.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TXT&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT face="Courier New"&gt;;; ANSWER SECTION:&lt;BR&gt;version.bind.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TXT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "9.2.1"&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&lt;FONT face="Courier New"&gt;;; Query time: 428 msec&lt;BR&gt;;; SERVER: 192.168.0.1#53(192.168.0.1)&lt;BR&gt;;; WHEN: Sat Nov&amp;nbsp; 5 10:28:09 2005&lt;BR&gt;;; MSG SIZE&amp;nbsp; rcvd: 48&lt;/FONT&gt;&lt;/P&gt;
&lt;P dir=ltr&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://radcom.ir/weblog/hamid/aggbug/10694.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Hamid</dc:creator><title>نحوه تنظیم ساعت و منطقه زمانی در لینوکس</title><link>http://radcom.ir/weblog/hamid/archive/2005/04/13/229.aspx</link><pubDate>Wed, 13 Apr 2005 14:56:00 GMT</pubDate><guid>http://radcom.ir/weblog/hamid/archive/2005/04/13/229.aspx</guid><wfw:comment>http://radcom.ir/weblog/hamid/comments/229.aspx</wfw:comment><comments>http://radcom.ir/weblog/hamid/archive/2005/04/13/229.aspx#Feedback</comments><slash:comments>14</slash:comments><wfw:commentRss>http://radcom.ir/weblog/hamid/comments/commentRss/229.aspx</wfw:commentRss><trackback:ping>http://radcom.ir/weblog/hamid/services/trackbacks/229.aspx</trackback:ping><description>&lt;P align=right&gt;&lt;STRONG&gt;&lt;FONT color=#3366ff&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align=right&gt;&lt;STRONG&gt;&lt;FONT color=#3366ff&gt;نحوه تنظیم ساعت لینوکس &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align=right&gt;برای نمایش ساعت و تاریخ سیستم از دستور date استفاده می شود:&lt;/P&gt;
&lt;P dir=ltr align=left&gt;# date&lt;BR&gt;Wed Apr 13 14:48:50 IRDT 2005&lt;BR&gt;&lt;/P&gt;
&lt;P dir=rtl align=right&gt;برای نمایش زمان به ساعت گرینویچ دستور زیر را استفاده می کنیم:&lt;/P&gt;
&lt;P dir=ltr align=left&gt;# date --utc&lt;BR&gt;Wed Apr 13 10:20:42 UTC 2005&lt;/P&gt;
&lt;P dir=rtl align=right&gt;از دستور date برای تنظیم ساعت سیستم&amp;nbsp;نیز می توان استفاده کرد:&lt;/P&gt;
&lt;P dir=ltr align=left&gt;# date -s "15:30:25"&lt;BR&gt;Wed Apr 13 15:30:25 IRDT 2005&lt;/P&gt;
&lt;P dir=rtl align=right&gt;نکته ای که باید توجه کرد که با&amp;nbsp;روش بالا&amp;nbsp;تنها ساعت سیستم لینوکس&amp;nbsp;(Kernel) تغییر می کند.&amp;nbsp;علاوه براین ساعت&amp;nbsp;خو.د ماشین&amp;nbsp;(CMOS) هم&amp;nbsp;وجود دارد که باید&amp;nbsp;تنظیم شود. شما با دستور زیر می توانید ساعت ماشین را ببینید:&lt;/P&gt;
&lt;P dir=ltr align=left&gt;# hwclock --show&lt;BR&gt;Wed Apr 13 14:55:59 2005&amp;nbsp; -0.962467 seconds&lt;BR&gt;&lt;/P&gt;
&lt;P dir=rtl align=right&gt;&lt;BR&gt;برای تنظیم ساعت ماشین&amp;nbsp;به وقت سیستم از دستور&amp;nbsp;زیر می توانید استفاده کنید:&lt;/P&gt;
&lt;P dir=ltr align=left&gt;&amp;nbsp; hwclock --systohc&lt;/P&gt;
&lt;P dir=rtl align=right&gt;&lt;STRONG&gt;&lt;FONT color=#3366ff&gt;&amp;nbsp;نحوه تیظیم منطقه زمانی یا Time Zone&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P dir=rtl align=right&gt;کره زمین در 15 درجه طول جغرافیایی یک نصف النهار داریم. در واقع خورشید فاصله بین دو نصف النهار را در یک ساعت طی میکند. نصف النهار مبدا نیز نصف النهاری است که در گرینویج عبور می کند.&amp;nbsp;از ساعت این منظقه به عنوان ساعت جهانی UTC و یا ساعت گرینویج GMT یاد می شود.&lt;/P&gt;
&lt;P dir=rtl align=right&gt;بنابراین به راحتی اختلاف ساعت هرجایی را می توان با توجه به نصف النهاری که در آن قرار گرفته با گرینویچ محاسبه کرد. تنها مساله ای که می ماند و باید در نظر گرفته شود،&amp;nbsp; مساله Daylight Saving Time است که برای هر کشور و منطقه متفاوت است.&lt;/P&gt;
&lt;P dir=rtl align=right&gt;برا تنظیم Time Zone&amp;nbsp; در لینوکس می توانید از روال زیر استفاده کنید:&lt;/P&gt;
&lt;P dir=ltr align=left&gt;&amp;nbsp;&lt;FONT face=Helvetica&gt;1. Select the appropriate time zone from the &lt;FONT color=#000099&gt;/usr/share/zoneinfo&lt;/FONT&gt; directory. Time zone names are relative to that directory. In this case, we will select "America/Denver"&lt;BR&gt;&lt;BR&gt;2. Edit the &lt;FONT color=#660000&gt;&lt;FONT color=#000099&gt;/etc/sysconfig/clock&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SMALL&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/SMALL&gt;&lt;FONT face="Helvetica, Arial, sans-serif"&gt;text file so that it looks like this:&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;ZONE="Iran"&lt;BR&gt;UTC=true&lt;BR&gt;ARC=false&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Helvetica, Arial, sans-serif"&gt;Of course, this assumes that your hardware clock is running UTC time...&lt;/FONT&gt;&lt;SMALL&gt;&lt;BR&gt;&lt;BR&gt;&lt;/SMALL&gt;&lt;FONT face="Helvetica, Arial, sans-serif"&gt;3. Delete the following file: &lt;FONT color=#000099&gt;/etc/localtime&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;4. Create a new soft link for &lt;FONT color=#000099&gt;/etc/localtime&lt;/FONT&gt;. Here is an example of step 3 and step 4:&lt;/FONT&gt;&lt;SMALL&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;# &lt;B&gt;cd /etc&lt;/B&gt;&lt;BR&gt;# &lt;B&gt;ls -al localtime&lt;/B&gt;&lt;BR&gt;lrwxrwxrwx 1 root root 39 Mar 28 07:00 localtime -&amp;gt; /usr/share/zoneinfo/America/Los_Angeles&lt;BR&gt;&lt;BR&gt;# &lt;B&gt;rm /etc/localtime&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;# &lt;B&gt;ln -s /usr/share/zoneinfo/Iran /etc/localtime&lt;/B&gt;&lt;BR&gt;# &lt;B&gt;ls -al localtime&lt;/B&gt;&lt;BR&gt;lrwxrwxrwx 1 root root 34 Mar 28 08:59 localtime -&amp;gt; /usr/share/zoneinfo/Iran&lt;BR&gt;&lt;BR&gt;# &lt;B&gt;date&lt;/B&gt;&lt;BR&gt;Wed Apr 13 14:48:50 IRDT 2005&lt;/FONT&gt;&lt;/SMALL&gt;&lt;/P&gt;&lt;img src ="http://radcom.ir/weblog/hamid/aggbug/229.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>