<?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-6771968058432623559</id><updated>2012-02-17T01:52:41.071+05:30</updated><title type='text'>theres nowhere like 127.0.0.1</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-3836603328543913497</id><published>2008-06-30T12:35:00.003+05:30</published><updated>2008-06-30T13:00:03.770+05:30</updated><title type='text'>Restricting downloads with squid!</title><content type='html'>Many times you may want to deny users from downloading huge files&lt;br /&gt;using the proxy server. This blog will help you do that with squid&lt;br /&gt;in GNU/Linux.&lt;br /&gt;&lt;br /&gt;To Readers: All those starting with # are run by root user and ;'s are comments inside the configuration files&lt;br /&gt;&lt;br /&gt;Here we are using reply_body_max_size TAG in squid.conf&lt;br /&gt;&lt;br /&gt;#vim /etc/squid/squid.conf&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;acl limitme src 10.0.0.1-10.0.0.50&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;reply_body_max_size 2097152 allow limitme&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;reply_body_max_size 0 allow all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;By default, there is no restriction on the maximum&lt;br /&gt;file that can be downloaded.&lt;br /&gt;&lt;br /&gt;Here limitme acl is allowed only a maximum&lt;br /&gt;of 2 MB download.&lt;br /&gt;&lt;br /&gt;2097152 bytes = 2097152/1024 Kbytes =&gt; 2048 KB =&gt; 2 MB&lt;br /&gt;&lt;br /&gt;~mj0vy (sreejith dot anujan at gmail dot com)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-3836603328543913497?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/3836603328543913497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=3836603328543913497' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/3836603328543913497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/3836603328543913497'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2008/06/restricting-downloads-with-squid.html' title='Restricting downloads with squid!'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-4799312954288285876</id><published>2008-06-30T12:07:00.006+05:30</published><updated>2008-06-30T12:33:07.792+05:30</updated><title type='text'>Use your bandwidth effectively</title><content type='html'>This blog tries to help you use your ISP bandwidth wisely! You might be the system administrator of a company who always wanted to limit your fellow workers from downloading the media files, limiting the access of streaming videos which are available in YouTube and wanted to share adequate bandwidth to your SMTP and HTTP Servers. This blog is for those persons.&lt;br /&gt;&lt;br /&gt;To Readers: All those starting with # are run by root user and ;'s are comments inside the configuration files&lt;br /&gt;&lt;br /&gt;We are going to use the delay_pools TAG in squid.&lt;br /&gt;Before going straight into the configuration, I would like to write some theory.&lt;br /&gt;&lt;br /&gt;What exactly are delay pools?&lt;br /&gt;&lt;br /&gt;They are simply pools which make a delayed response.&lt;br /&gt;They are essentially bandwidth buckets!&lt;br /&gt;Some of you might have quizzically raised your eyebrows when you read buckets, I know! I too was very much confused about this bucket concept! But I think I can clarify the whole concept for you!&lt;br /&gt;&lt;br /&gt;Imagine bandwidth bucket has a normal plastic bucket used to storing water! Instead of water these buckets store bandwidth! Initially it will be full! Initially means when no one is using your bandwidth. When a user requests a page, he will get the respone only if theres enough bandwidth available from the bucket he is using. Bucket actually stores traffic! Bandwidth is expressed in terms of how much data is available in one second, like 1Mb/s (1Mbps)&lt;br /&gt;Traffic is expressed in terms of total data, like 1MB.&lt;br /&gt;&lt;br /&gt;Size of bucket determines how much bandwidth is available to a client(s). If a bucket starts out full, a client can take as much traffic as it needs until the bucket becomes empty. Client then recieves bucket allotment at the 'fill rate'. (I will tell about the fill rate later, just remember that word in mind).&lt;br /&gt;&lt;br /&gt;There are three types of delay pools.&lt;br /&gt;&lt;br /&gt;Class 1 =&gt; Single aggregate bucket (Totally shared among the members of the bucket)&lt;br /&gt;&lt;br /&gt;Class 2 =&gt; To understand it better, assume its applied to Class C networks.&lt;br /&gt;Theres one bucket for each network and 256 individual buckets for each ips of every network. Size of individual bucket cannot exceed the network bucket!&lt;br /&gt;&lt;br /&gt;Class 3 =&gt; One aggregate bucket, 256 network buckets, 65536 individual buckets. (Class B networks)&lt;br /&gt;&lt;br /&gt;Now into configuration,&lt;br /&gt;&lt;br /&gt;Firstly we need to define how many delay pools we are doing to declare.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_pools 2&lt;/span&gt;&lt;br /&gt;This means that we have two delay pools.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_class 1 3&lt;/span&gt;&lt;br /&gt;This means that the first pool is a class 3 pool (Class B networks)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_class 2 1&lt;/span&gt;&lt;br /&gt;This means that the second pool is a class 1 pool (Single aggregate bucket)&lt;br /&gt;&lt;br /&gt;For each pool we should have a delay_class line.&lt;br /&gt;&lt;br /&gt;Now we need to define each pools parameters, like the capacity of each pool and fill rate.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 1 7000/15000 3000/4000 1000/2000&lt;/span&gt;&lt;br /&gt;this is delay pool parameters for the pool 1&lt;br /&gt;Pool 1 was a class 3 pool. Class 3 pool has 3 buckets, one aggregate bucket, one for 256 networks and one for 65536 individual ips!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 2 2000/8000&lt;/span&gt;&lt;br /&gt;The second pool of type class 1. Class 1 has only one aggregate bucket!&lt;br /&gt;&lt;br /&gt;Now whats this 2000/8000?&lt;br /&gt;Each bucket is recognized by its rate/size&lt;br /&gt;Here 8000 means that the maximum capacity of the bucket!&lt;br /&gt;And it refills at the rate of 2000 bytes/second&lt;br /&gt;This means that if the bucket is empty, it takes 4 seconds for the bucket to get full if no clients are accessing it!&lt;br /&gt;&lt;br /&gt;If you find a declaration like this,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_paramters 2 -1/-1&lt;/span&gt;&lt;br /&gt;This means theres no limitation to the bucket!&lt;br /&gt;&lt;br /&gt;Now lets take an example.&lt;br /&gt;&lt;br /&gt;Our ISP connection is 12Mbps and we want our machines to have a maximum of 4 Mbps at peak time.&lt;br /&gt;The rest we dedicate for SMTP or other production servers. We are going to define only one delay pool of class 1&lt;br /&gt;&lt;br /&gt;What is actually 12Mbps?&lt;br /&gt;&lt;br /&gt;1Mbps = 1 Megabits per second =&gt; 1/8 Megabytes per second (8 bits = 1 byte)&lt;br /&gt;1/8 Megabytes per second =&gt; 1/8 * 1024 Kilobytes per second =&gt; 128Kilobytes per second =&gt; 128KBps&lt;br /&gt;so 1 Mbps =&gt; 128 KBps&lt;br /&gt;so 12 Mbps =&gt; 128 * 12 = 1536 KBps =&gt; 1.5 MBps&lt;br /&gt;To sum up&lt;br /&gt;so 12 Mbps = 12/8 MBps =&gt; 1.5 MBps&lt;br /&gt;&lt;br /&gt;So with this ISP connection we can download a 6 MB file in 4 seconds!&lt;br /&gt;&lt;br /&gt;So here the maximum bandwidth available to machines must be 4 Mbps only! (4Mbps ~ 0.5 MBps ~ 512 KBps)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_pools 1&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;delay_class 1 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 1 524288/1048576&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;524288 =&gt; 524288/1024 KB =&gt; 512 KB =&gt; 512/1024 MB =&gt; 0.5 MB =&gt; 0.5*8 =&gt; 4Mb&lt;br /&gt;&lt;br /&gt;1048576 =&gt; 1048576/1024 KB =&gt; 1024 KB =&gt; 1 MB&lt;br /&gt;&lt;br /&gt;Initially the bucket will be full (1 MB traffic). Now a client makes a request to download a 5 MB file.&lt;br /&gt;It will get the maximum speed(12 Mbps) until it downloads 1 MB, but after that it gets only 0.5 MBps&lt;br /&gt;For 1 MB, it takes 1 second as full bucket is available at first. As the bucket drains, it fills at the rate of 0.5 MBps only.&lt;br /&gt;So 0.5 MBps will only be available after 1 MB has been downloaded!&lt;br /&gt;So the file will get downloaded in 9 seconds. (This is all in theory :P)&lt;br /&gt;&lt;br /&gt;There another TAG associated with delay_pools.&lt;br /&gt;delay_initial_bucket_level =&gt; this parametes expects a value in percentage(%)&lt;br /&gt;This parameter specifies how much bandwidth is put in each bucket when squid service starts.&lt;br /&gt;By default, the value will be 50%, which means that in the previous example, the client will&lt;br /&gt;download at full speed till the download reaches 0.5 MB&lt;br /&gt;&lt;br /&gt;eg:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;acl throttled src 10.0.0.1-10.0.0.50&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_pools 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_class 1 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_parameters 1 524288/1048576&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;delay_access 1 allow throttled&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: delay_access is very similar to http_access. It determines which delay pool a request falls into!&lt;br /&gt;&lt;br /&gt;Hope this was useful for you!&lt;br /&gt;&lt;br /&gt;~mj0vy (sreejith dot anujan at gmail dot com)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-4799312954288285876?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/4799312954288285876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=4799312954288285876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4799312954288285876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4799312954288285876'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2008/06/use-your-bandwidth-effectively.html' title='Use your bandwidth effectively'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-4467757490973957865</id><published>2008-06-28T16:32:00.002+05:30</published><updated>2008-06-28T16:39:14.390+05:30</updated><title type='text'>User/Group authentication in squid</title><content type='html'>User authentication in squid:&lt;br /&gt;------------------------------------------&lt;br /&gt;To Readers: All those starting with # are run by root user and ;'s are comments inside the configuration files&lt;br /&gt;&lt;br /&gt;User authentication can be done with the help of the ncsa_auth module and with PAM&lt;br /&gt;&lt;br /&gt;With ncsa_aith:&lt;br /&gt;----------------------&lt;br /&gt;This module resides in /usr/lib/squid/ in the name nsca_auth.&lt;br /&gt;&lt;br /&gt;edit squid.conf and add the following entries&lt;br /&gt;&lt;br /&gt;#vim /etc/squid/squid.conf&lt;br /&gt;&lt;br /&gt;acl all src 0.0.0.0/0.0.0.0&lt;br /&gt;;inbuilt acl in squid.conf&lt;br /&gt;&lt;br /&gt;acl clients src 10.0.0.1-10.0.0.150&lt;br /&gt;;Here we are declaring an acl in the name&lt;br /&gt;;clients which catches all the ip from 10.0.0.1 to 10.0.0.150&lt;br /&gt;&lt;br /&gt;acl users proxy_auth REQUIRED&lt;br /&gt;;another acl in the name users of type proxy_auth&lt;br /&gt;;REQUIRED =&gt; accept any valid user.&lt;br /&gt;;proxy_auth works only with the help of external authenticators.&lt;br /&gt;;Here we are going to try, ncsa_auth and PAM.&lt;br /&gt;&lt;br /&gt;http_access allow clients users&lt;br /&gt;;Logical AND-ing here, both acls must be satisfied&lt;br /&gt;;for access to be allowed.&lt;br /&gt;&lt;br /&gt;http_access deny clients&lt;br /&gt;;If the criteria is not met, deny clients immediately&lt;br /&gt;;instead of traversing till acl 'all'&lt;br /&gt;&lt;br /&gt;http_access deny all&lt;br /&gt;;eventually deny all&lt;br /&gt;;Note: by default squid denies all with the acl 'all'&lt;br /&gt;&lt;br /&gt;auth_param basic program /var/lib/squid/ncsa_auth /etc/squid/.passwd&lt;br /&gt;;Here we are using the authentication program nsca_auth&lt;br /&gt;;basic =&gt; scheme which is used.&lt;br /&gt;;/var/lib/squid/ncsa-auth =&gt; external authenticator&lt;br /&gt;;/etc/squid/.passwd =&gt; file which contains&lt;br /&gt;; username/password credentials.&lt;br /&gt;&lt;br /&gt;save squid.conf and exit&lt;br /&gt;&lt;br /&gt;Check the syntax of squid.conf&lt;br /&gt;#squid -k parse /etc/squid/squid.conf&lt;br /&gt;If it shows some problem, rectify it :P&lt;br /&gt;&lt;br /&gt;Now we need to make the file which acts as the&lt;br /&gt;username/password database!&lt;br /&gt;Use the htpasswd command from httpd-tools-* rpm.&lt;br /&gt;&lt;br /&gt;#htpasswd -c /etc/squid/.passwd mj0vy&lt;br /&gt;&lt;br /&gt;enter the password for user mj0vy&lt;br /&gt;when htpasswd is done for the first time we need to give the -c flag so that&lt;br /&gt;it would create the password file. For adding more users to this password file&lt;br /&gt;we should not give the -c flag as it would overwrite the existing users'&lt;br /&gt;accounts.&lt;br /&gt;&lt;br /&gt;#htpasswd /etc/squid/.passwd sreejith&lt;br /&gt;&lt;br /&gt;restart the squid service and configure clients' browser to listen to squid server&lt;br /&gt;and check whether username and password are prompted while accessing the sites.&lt;br /&gt;Note: Squid is a very heavy service. So instead of going for restarting the squid&lt;br /&gt;with init script, do it like this&lt;br /&gt;#squid -k reconfigure&lt;br /&gt;&lt;br /&gt;With PAM Module:&lt;br /&gt;---------------------------&lt;br /&gt;One of the beauty with using PAM is that we can group level deny too!&lt;br /&gt;&lt;br /&gt;#vim /etc/squid/squid.conf&lt;br /&gt;&lt;br /&gt;auth_param basic program /usr/lib/squid/pam_auth&lt;br /&gt;;Here we dont need to specify the username/password file as its declared&lt;br /&gt;;in the PAM file associated with squid.&lt;br /&gt;&lt;br /&gt;#vim /etc/pam.d/squid&lt;br /&gt;Its a single line&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;auth    required    pam_listfile.so    item=user sense=allow &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;file=/etc/squid/squid_users onerr=fail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Make sure that /usr/lib/squid/pam_auth is setUID to root!&lt;br /&gt;If not do it&lt;br /&gt;#chmod +s /usr/lib/squid/pam_auth&lt;br /&gt;&lt;br /&gt;Now add the UNIX users' name to /etc/squid/squid_users who you want to allow proxy access!&lt;br /&gt;&lt;br /&gt;If you want to grant access using UNIX groups, change the PAM file as&lt;br /&gt;&lt;br /&gt;Its a single line&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;auth    required    pam_listfile.so    item=group sense=allow &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;file=/etc/squid/squid_groups onerr=fail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Make the file /etc/squid/squid_groups and enter the groups who you want to allow access!&lt;br /&gt;Note: Make sure the users who are trying to connect MUST be member of this UNIX group!&lt;br /&gt;&lt;br /&gt;Note: As PAM checks /etc/passwd, /etc/group and /etc/shadow, the authentication process will be a bit slow!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-4467757490973957865?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/4467757490973957865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=4467757490973957865' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4467757490973957865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4467757490973957865'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2008/06/usergroup-authentication-in-squid.html' title='User/Group authentication in squid'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-4559607059876386575</id><published>2008-06-28T15:18:00.003+05:30</published><updated>2008-06-28T15:22:47.503+05:30</updated><title type='text'>chroot vsFTPd</title><content type='html'>Restricting FTP Users in a chroot-ed Jail:&lt;br /&gt;----------------------------------------------------------&lt;br /&gt;We can specify an explicit list of local users to&lt;br /&gt;chroot to their home directories by specifying,&lt;br /&gt;&lt;br /&gt;chroot_list_enable=YES&lt;br /&gt;&lt;br /&gt;in /etc/vsftpd/vsftpd.conf&lt;br /&gt;more over we need to specify the list of&lt;br /&gt;users which are to be chroot-ed,&lt;br /&gt;in a file specified by&lt;br /&gt;&lt;br /&gt;chroot_list_file.&lt;br /&gt;&lt;br /&gt;If chroot_list_file=/etc/vsftpd/chroot_users&lt;br /&gt;&lt;br /&gt;then we need to enter the users' names in /etc/vsftpd/chroot_users.&lt;br /&gt;Restart the ftp server and login as those users.&lt;br /&gt;Check whether they CD to other&lt;br /&gt;directories. Theres an additional syntax in vsftpd.conf&lt;br /&gt;which just reverse the default configuration just like&lt;br /&gt;userlist_deny=NO does for access rights.&lt;br /&gt;If, chroot_local_user=YES,&lt;br /&gt;then users who are NOT listed in /etc/vsftpd/chroot_users would only be chrooted.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-4559607059876386575?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/4559607059876386575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=4559607059876386575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4559607059876386575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4559607059876386575'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2008/06/chroot-vsftpd.html' title='chroot vsFTPd'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-7764028510204660618</id><published>2008-06-16T14:34:00.005+05:30</published><updated>2008-06-16T17:16:48.843+05:30</updated><title type='text'>GNU/Linux as an ADC member</title><content type='html'>Configuring GNU/Linux as an active directory member:&lt;br /&gt;-----------------------------------------------------------------------------&lt;br /&gt;This time we are doing the reverse of what we did in the last blog. Adding a GNU/Linux machine (RHEL 5.0) to an Win 2k3 Domain Controller.&lt;br /&gt;&lt;br /&gt;Configure a M$ Windows 2003 Server as a Domain Controller(DC)&lt;br /&gt;for the domain JOINME.COM. The Active Directory Server name is ads.joinme.com with an ip address of 172.24.10.1&lt;br /&gt;Note: Active Directory howto can be found &lt;a href="http://www.petri.co.il/how_to_install_active_directory_on_windows_2003.htm"&gt;here&lt;/a&gt;&lt;br /&gt;Samba server machine is RHEL 5.0 with SELinux in permissive mode.&lt;br /&gt;&lt;br /&gt;To Readers: All those starting with # are run by root user and ;'s are comments inside the configuration files&lt;br /&gt;&lt;br /&gt;#vim /etc/samba/smb.conf&lt;br /&gt;;for better performance add this&lt;br /&gt;socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192&lt;br /&gt;&lt;br /&gt;;name of the domain we want to join&lt;br /&gt;workgroup = JOINME&lt;br /&gt;server string = Member of JOINME.COM&lt;br /&gt;&lt;br /&gt;;this samba server is not the local master browser&lt;br /&gt;;for the subnet. local master browser stores all the&lt;br /&gt;;NetBIOS names of all other machines in the subnet.&lt;br /&gt;local master = no&lt;br /&gt;&lt;br /&gt;;this server does not act as a Domain Master Browser too.&lt;br /&gt;;DMB stores the NetBIOS names of all&lt;br /&gt;;machines in the network. DMB collates&lt;br /&gt;;browselists from all local master browsers.&lt;br /&gt;domain master = no&lt;br /&gt;&lt;br /&gt;;never force an election on startup of the&lt;br /&gt;;machine to become local/domain master browser.&lt;br /&gt;preferred master = no&lt;br /&gt;&lt;br /&gt;;do not act as a wins server. Let some other host take up that burden.&lt;br /&gt;wins support = no&lt;br /&gt;&lt;br /&gt;;then who is the WINS Server?&lt;br /&gt;wins server = 172.24.10.1&lt;br /&gt;&lt;br /&gt;;never try DNS queries when an unregistered NetBIOS name has been found.&lt;br /&gt;dns proxy = no&lt;br /&gt;&lt;br /&gt;;the kerberos realm to use&lt;br /&gt;realm = JOINME.COM&lt;br /&gt;&lt;br /&gt;;make this machine a member of domain&lt;br /&gt;;in an ADS realm. Kerberos should be installed&lt;br /&gt;;and properly configured.&lt;br /&gt;;join to ADS using the 'net' command&lt;br /&gt;security = ADS&lt;br /&gt;&lt;br /&gt;;do username/password validation using the ADS&lt;br /&gt;password server = 172.24.10.1&lt;br /&gt;&lt;br /&gt;;the seperator to be used between the&lt;br /&gt;;domain name and the username.&lt;br /&gt;;used in conjuction with pam_winbind.so&lt;br /&gt;winbind separator = +&lt;br /&gt;&lt;br /&gt;;winbind should operate without domain component.&lt;br /&gt;;JOINME/mj0vy should be treated as mj0vy.&lt;br /&gt;winbind use default domain = yes&lt;br /&gt;&lt;br /&gt;;userid/grpid allocation for mapping&lt;br /&gt;;windows SIDs to unix userids/grpids&lt;br /&gt;idmap uid = 27000-33000&lt;br /&gt;idmap gid = 27000-33000&lt;br /&gt;&lt;br /&gt;;donot know why this parameters are used. Will do some&lt;br /&gt;;R&amp;amp;D and come up with the solution soon.&lt;br /&gt;winbind enum users = yes&lt;br /&gt;winbind enum groups = yes&lt;br /&gt;&lt;br /&gt;;home directory to be used by the domain users&lt;br /&gt;;when winbind creates the unix password&lt;br /&gt;;database from the windows SIDs.&lt;br /&gt;template homedir = /home/%U&lt;br /&gt;template shell = /bin/bash&lt;br /&gt;log file = /var/log/samba/%m.log&lt;br /&gt;&lt;br /&gt;;maximum log file size in KB (5 MB here)&lt;br /&gt;max log size = 5120&lt;br /&gt;printcap name = /etc/printcap&lt;br /&gt;load printers = no&lt;br /&gt;&lt;br /&gt;These are the default shares configured already.&lt;br /&gt;&lt;br /&gt;[homes]&lt;br /&gt;comment = Home directories for the users.&lt;br /&gt;browseable = no&lt;br /&gt;writeable = yes&lt;br /&gt;&lt;br /&gt;[printers]&lt;br /&gt;comment = Connected Printers&lt;br /&gt;path = /var/spool/samba&lt;br /&gt;browseable = no&lt;br /&gt;guest ok = no&lt;br /&gt;writeable = no&lt;br /&gt;printable = yes&lt;br /&gt;&lt;br /&gt;Kerberos Configuration:&lt;br /&gt;----------------------------------&lt;br /&gt; The Kerberos system authenticates individual users in a network environment. After authenticatin yourself to kerberos, we can use network facilities (rcp,rsh) without having to present passwords to remote hosts, provided the remote hosts support Kerberos system.When we authenticate with kerberos, we will get an initial kerberos ticket. Kerberos uses this ticket for network utilies as rlogin and rcp. However the tickets expire, privileged tickets, those with 'root' instance expire in a few minutes, others might live for more than a day depending on the policy.&lt;br /&gt;Commands 'kinit' and 'kdestroy' are used to initiate and destroy tickets respectievely.&lt;br /&gt;&lt;br /&gt;#vim /etc/krb5.conf&lt;br /&gt;[logging]&lt;br /&gt;default = FILE:/var/log/krb5libs.log&lt;br /&gt;kdc = FILE:/var/log/krb5libs.log&lt;br /&gt;admin_server = FILE:/var/log/kadmind.log&lt;br /&gt;&lt;br /&gt;[libdefaults]&lt;br /&gt;default_realm = JOINME.COM&lt;br /&gt;dns_lookup_realm = yes&lt;br /&gt;dns_lookup_kdc = yes&lt;br /&gt;ticket_lifetime = 24h&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;br /&gt;Adding the GNU/Linux machine to Active Directory:&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;Start the samba service.&lt;br /&gt;#/etc/init.d/smb start&lt;br /&gt;&lt;br /&gt;Initiate a kerberos ticket&lt;br /&gt;#kinit ADMINISTRATOR@JOINME.COM&lt;br /&gt;enter the administrator password in the DC.&lt;br /&gt;Note: Make sure the GNU/Linux machine and the ADS are&lt;br /&gt;having the same time. Othewise some clock skew error&lt;br /&gt;message may throw up!&lt;br /&gt;&lt;br /&gt;Now join the machine to ADS.&lt;br /&gt;#net ads join&lt;br /&gt;&lt;br /&gt;Winbind Configuration:&lt;br /&gt;----------------------&lt;br /&gt;#vim /etc/nsswitch.conf&lt;br /&gt;passwd: files winbind&lt;br /&gt;shadow: files&lt;br /&gt;hosts: files winbind&lt;br /&gt;&lt;br /&gt;#vim /etc/sysconfig/samba&lt;br /&gt;WINBINDOPTIONS = "-B"&lt;br /&gt;&lt;br /&gt;Tweak The Name Service Caching Daemon(NSCD):&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;enable-cache passwd no&lt;br /&gt;enable-cache group no&lt;br /&gt;enable-cache hosts no&lt;br /&gt;&lt;br /&gt;Now restart the network service&lt;br /&gt;#/etc/init.d/network restart&lt;br /&gt;&lt;br /&gt;Configure the pam aware services to use the pam_winbind.so shared object.&lt;br /&gt;&lt;br /&gt;#vim /etc/pam.d/login&lt;br /&gt;auth sufficient pam_winbind.so&lt;br /&gt;account sufficient pam_winbind.so&lt;br /&gt;session required pam_mkhomedir.so skel=/etc/skel umask=0022&lt;br /&gt;&lt;br /&gt;Now restart the samba and winbind daemon.&lt;br /&gt;#/etc/init.d/smb restart&lt;br /&gt;#/etc/init.d/winbind restart&lt;br /&gt;#chkconfig smb on ; chkconfig winbind on&lt;br /&gt;&lt;br /&gt;Testing the whole configuration:&lt;br /&gt;--------------------------------&lt;br /&gt;#getent passwd&lt;br /&gt;#getent group&lt;br /&gt;#wbinfo -u&lt;br /&gt;this will display the domain users&lt;br /&gt;#wbinfo -g&lt;br /&gt;this will display the domain groups&lt;br /&gt;Note: The domain and the users/groups will be&lt;br /&gt;separated by a '+' sign which we specified&lt;br /&gt;with 'winbind separator'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-7764028510204660618?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/7764028510204660618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=7764028510204660618' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/7764028510204660618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/7764028510204660618'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2008/06/gnulinux-as-adc-member.html' title='GNU/Linux as an ADC member'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-5956782350668093834</id><published>2008-06-16T13:50:00.011+05:30</published><updated>2008-06-28T16:46:32.206+05:30</updated><title type='text'>GNU/Linux as PDC for M$ Windows with samba</title><content type='html'>&lt;span style="font-family:verdana;"&gt;This blog throws light on configuring Samba as PDC for M$ Windows machines on your network. The Linux distribution used is RHEL 5.0.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Eventhough, this works quite well, samba developers need to work more to make it compatible with M$ Windows ADC. Hope all will enjoy this...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;To Readers: All those starting with # are run by root user and ;'s are comments inside the configuration files&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#vim /etc/samba/smb.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;start global configuration section.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;[global]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;netbios name = TIKANGA&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this samba machine is given a NETBIOS name.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;workgroup = PSEUDO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this samba server acts a PDC for the domain PSEUDO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;encrypt passwords = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;encrypted password negotiation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;domain master = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;the samba server handles browsing elections for the&lt;br /&gt;;domain across multiple subnets&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;local master = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this makes samba force an election when it starts up.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this 'oc level' (follows below) parameters makes it win&lt;br /&gt;;the election, as this value is higher&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; than any other&lt;br /&gt;;M$ server implementations.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;Note: Make sure no other samba machine is set with higher&lt;br /&gt;;'os level' value than this.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;preferred master = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this also forces the election at startup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;os level = 65&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;security = user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;samba will prompt for a username and password.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;security = domain | ads is used if another DC&lt;br /&gt;;handles the logons.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;domain logons = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this makes samba handle domain logons.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;logon path = \\%L\profiles\%u&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this parameter is necessay if we want to support&lt;br /&gt;;roaming profiles for ;win200x/XP/NT clients.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;;this actually expands to \\PSEUDO\profiles\username&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;we have a sharename profiles coming later&lt;br /&gt;;in the configuration file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;logon script = logon.bat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;name of the MS-DOS batch file which must be executed&lt;br /&gt;;when client logs&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; on to the domain. The path&lt;br /&gt;;specified is relative to the [netlogon] share&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;;specified later.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;logon drive = L:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this allows the home directory (if exists) of the user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;to be connected to L: drive under My Computer on client.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;time server = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this samba machine advertises itself as a&lt;br /&gt;;time server for the domain.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;admin users = mj0vy&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this list of users who have administrative&lt;br /&gt;;privilege in this domain, &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;such as joining clients&lt;br /&gt;;to the domain and make work the&lt;br /&gt;;machine add script&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; on the fly.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;each client is considered as a user and&lt;br /&gt;;are added on the fly as each client tries&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;to connect with the administrative user account.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;Start of shares&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;[netlogon]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;path = /etc/samba/netlogon&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;writable = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;browseable = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;the [netlogon] share is necessary for samba&lt;br /&gt;;to handle domain logons as&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;M$ clients need to contact it during the&lt;br /&gt;;logon process and if this share is not&lt;br /&gt;;present&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; logon process would fail.&lt;br /&gt;;For security reason, writable and&lt;br /&gt;;browseable permissions are removed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;[profiles]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;path = /etc/samba/profiles&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;browseable = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;writeable = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;create mask = 0600&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;directory mask = 0700&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;the [profiles] share is used to store&lt;br /&gt;;the roaming profiles of the&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; users.&lt;br /&gt;;The path points to a directory on the samba&lt;br /&gt;;server where the updated profiles are saved&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;;on each individual user logons.&lt;br /&gt;;Clients must read and write&lt;br /&gt;;to this share.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;[homes]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;read only = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;browseable = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;guest ok = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;map archive = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;guest logons are disabled and there will&lt;br /&gt;;be no path parameter as it will be&lt;br /&gt;;fetched from /etc/passwd.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;[backups]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;comment = A Test share to check logon scripts!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;path = /backups/samba&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;valid users = mj0vy sujith sreejith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;writeable = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;create mask = 0765&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;;this share is actually used to check whether&lt;br /&gt;;the logon script has worked successfully or not!&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;;In logon.bat file, we will be scpecifying to make&lt;br /&gt;;this share available as K: drive in the&lt;br /&gt;;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;My Computer of every client. Sticky Bit file&lt;br /&gt;;permissions are recommended for file security.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Making the users and shares:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;----------------------------&lt;/span&gt;--------------&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Add the administrator (mj0vy) who could add machine users on the fly. [admin users = mj0vy]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#useradd -d /dev/null -s /sbin/nologin mj0vy&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Lock down his unix accound password for security reasons.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#passwd -l mj0vy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Make him a samba user.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -a mj0vy&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -e mj0vy (this is not required in higher samba versions)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Make the domain users.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#useradd sujith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#passwd -l sujith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -a sujith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -e sujith&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#useradd sreejith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#passwd -l sreejith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -a sreejith&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -e sreejith&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now make the directories for [netlogon], [profiles] and [backups] shares.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mkdir -m 777 /etc/samba/{netlogon,profiles}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mkdir -p -m 1777 /backups/samba&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now make logon.bat file inside /etc/samba/netlogon and make it executable by the root user.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Note: Running dos2unix against this file is recommended.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#vim /etc/samba/netlogon/logon.bat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;net use K: \\TIKANGA\backups&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now start the samba service&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#/etc/init.d/smb start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#chkconfig smb on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Note: running smbtree command gives you a tree like view of all the domains, servers and shares on the servers.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Adding Windows clients:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;-----------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Right click My Computer, Take Computer Name, click change.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;In the 'Member of' field enter the samba domain 'PSEUDO'. This will prompt a username and password who could&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;add this machine to the domain. (mj0vy here). You will be prompted to restart the machine once you joined the Domain.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;When the machine comes up, press Ctrl+Alt+Del (hardcore M$ Windows users must be used to this TRAP) and select PSEUDO insead of This Machine.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Try logging in as the samba users.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Hope you enjoyed reading...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;~mj0vy&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-5956782350668093834?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/5956782350668093834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=5956782350668093834' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5956782350668093834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5956782350668093834'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2008/06/gnulinux-as-pdc-for-m-windows-with.html' title='GNU/Linux as PDC for M$ Windows with samba'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-1763183309895690786</id><published>2007-12-31T14:58:00.000+05:30</published><updated>2008-01-01T17:46:07.127+05:30</updated><title type='text'>Mask Me...!?!!!</title><content type='html'>&lt;span style="font-family:verdana;"&gt;echo "2007" &gt; /dev/null&lt;br /&gt;Years are going by... so does my age...! wish i could execute "&lt;span style="font-style: italic;"&gt;chage -E never mj0vy&lt;/span&gt;"&lt;br /&gt;In a way, 2007 was good for me...! Atleast i have started blogging. This year i could really catch up with linux to some extend...! Nothing more to say..!&lt;br /&gt;&lt;br /&gt;Lets get into the matter,&lt;br /&gt;Last week me and my friend Gigith were checking the mask flag in setfacl command...! we did some experimentation and finally came up with a good solution.&lt;br /&gt;&lt;br /&gt;I assume you all know how to do basic things with setfacl.&lt;br /&gt;&lt;br /&gt;i am starting by creating an empty file&lt;br /&gt;&lt;br /&gt;#touch /myfile&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Note: &lt;span style="color: rgb(0, 0, 0);"&gt;touch is used to update the timestamp of a file.&lt;br /&gt;#chmod 750 /myfile&lt;br /&gt;I have given the permission for group as read and write ( 4 + 1 )&lt;br /&gt;I am granting full permission for the user tux in that file.&lt;br /&gt;&lt;br /&gt;#setfacl -m u:redhat:rwx /myfile&lt;br /&gt;Now the mask of the file would be assigned the maximum value , is rwx(7), but still the owning group's permission would still be read and write only.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;#chmod 700 /myfile&lt;br /&gt;Now i negated the permission of group from that file, resulting in the change of mask value from rw to null. But the important thing to note here is that, the owning groups permission would still be 5(r-x), as it was the permission given at the beginning of this setfacl testing operation. But the effective permission of the owning group and the named user would be the permission common between the owning group and the mask. So here, the effective permission would be  - - - for both the owning group and named user.&lt;br /&gt;Here the owning group is the group affiliated to /myfile and the named user is the user tux.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;br /&gt;Note: &lt;span style="color: rgb(0, 0, 0);"&gt;whenever the setfacl command is invoked on the file /myfile, the mask is again changed to its maximum value.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-1763183309895690786?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/1763183309895690786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=1763183309895690786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/1763183309895690786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/1763183309895690786'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/12/mask-me.html' title='Mask Me...!?!!!'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-3280224285356642211</id><published>2007-12-03T10:45:00.000+05:30</published><updated>2007-12-03T11:52:07.610+05:30</updated><title type='text'>file: DRAG me into CD/RW :)</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: verdana;"&gt;Its high time we must bid bye-byes to cdrecord and growisofs...!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Until yesterday were were using the ISO9660 filesystem for burning the CDs and DVDs. But from now, its an oblivion.... welcome UDF.. Universal Disk Format..!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;UDF lets us write datas incrementally to a mounted filessytem.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;For this to work you should have the udftools package installed on your system, one blank cdrw, distribution of linux with a 2.6 kernel ( i tested in RHEL 5.0 ).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;you can get the udftools package from &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://rpmfind.net/linux/rpm2html/search.php?query=udftools"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;here we goooooooo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Step 1:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Insert the blank cdrw into the drive and using the &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic; font-family: verdana;"&gt;cdrwtool&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; command which&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;we got from the udftools package, we are doing to blank the cdrw first..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Assuming your cd-burner is connected as secondary master..(/dev/hdc)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;#cdrwtool -d /dev/hdc -t 4 -l 3 -q&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;( man cdrwtool )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;this would blank the cdrw. Please be patient, it might take SOME time..!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Step 2:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;We need to associate the blank formatted media with a packet device using the command &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic; font-family: verdana;"&gt;pktsetup&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#pktsetup dragme /dev/hdc&lt;br /&gt;&lt;br /&gt;Step 3:&lt;br /&gt;Now we need to format the media with the udf filesystem,&lt;br /&gt;&lt;br /&gt;#mkudffs --media-type=cdrw --udfrev=0x0150 /dev/pktcdvd/dragme&lt;br /&gt;&lt;br /&gt;Step 4:&lt;br /&gt;Now we need to make a mountpoint, let me give it as /drag-n-drop&lt;br /&gt;#mkdir /drag-n-drop&lt;br /&gt;&lt;br /&gt;#mount -t udf -o rw /dev/pktcdvd/dragme /drag-n-drop&lt;br /&gt;&lt;br /&gt;#chmod 777 /drag-n-drop&lt;br /&gt;(If you want local uses also to drag-n-drop something into it)&lt;br /&gt;&lt;br /&gt;Now try some drag and dropping into that mountpoint&lt;br /&gt;&lt;br /&gt;Now about the unmounting,&lt;br /&gt;&lt;br /&gt;Its always safe to sync before unmouting,&lt;br /&gt;So,&lt;br /&gt;#sync&lt;br /&gt;#umount /dev/pktcdvd/dragme&lt;br /&gt;&lt;br /&gt;Then we can release the device /dev/pktcdvd/dragme from the packet device association.&lt;br /&gt;&lt;br /&gt;#pktsetup -d /dev/pktcdvd/dragme&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;NOTE: Its always good to mount the packet device with noatime mount option if you want to ignore the number of rewrites in your media.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now if you want to mount this media in other machine,&lt;br /&gt;make a packet device with pktsetup and associate it with the device of your cd-drive&lt;br /&gt;&lt;br /&gt;#pktsetup dragger /dev/hdd&lt;br /&gt;&lt;br /&gt;This will map /dev/pktcdvd/dragger with /dev/hdd&lt;br /&gt;Now you can mount the packet device and use it&lt;br /&gt;#mount -t udf /dev/pktcdvd/dragger /mnt&lt;br /&gt;&lt;br /&gt;~mj0vy&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-3280224285356642211?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/3280224285356642211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=3280224285356642211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/3280224285356642211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/3280224285356642211'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/12/file-drag-me-into-cdrw.html' title='file: DRAG me into CD/RW :)'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-5379846791185099896</id><published>2007-11-21T10:46:00.000+05:30</published><updated>2007-12-28T23:28:38.958+05:30</updated><title type='text'>LOG ME IN....!</title><content type='html'>&lt;span style="font-family: verdana;font-family:webdings;" &gt;This article just illustrates the use of the expect command used for automatic logging to a remote machine&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;without using the complex ssh key pair exchange and all...!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;Make sure you have the expect package installed in your machine...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;lets try for telnet login...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;make a file by name telnetme&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;$vi telnetme&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;#!/usr/bin/expect&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;eval spawn telnet 10.0.0.27&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;set timeout 30&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;expect login:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;send "&lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;font-family:webdings;" &gt;&lt;username&gt;&lt;/username&gt;&lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;font-family:webdings;" &gt;username&lt;/span&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;\r"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;expect password:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;send "&lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;font-family:webdings;" &gt;&lt;password&gt;&lt;/password&gt;&lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;font-family:webdings;" &gt;password&lt;/span&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;\r"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;interact&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;Now set execute permission to the script and copy it to any of the directories in your PATH variable&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;For SSH Login theres a little change...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;I am here making a file by nane sshme&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;$vi sshme&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;#!/usr/bin/expect&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;eval spawn ssh 10.0.0.27&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;set timeout 30&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;expect password:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;send "&lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;font-family:webdings;" &gt;&lt;password&gt;&lt;/password&gt;&lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;font-family:webdings;" &gt;password&lt;/span&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;\r"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;interact&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-family: verdana;font-family:webdings;" &gt;NOTE&lt;/span&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;: change the italicised strings with appropriate username and password&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0); font-style: italic; font-family: verdana;font-family:webdings;" &gt;It is recommended that you give read permission only to the user who is using this script , otherwise all users could read the plain password entered&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;font-family:webdings;" &gt;PS: Please extend the features of expect if someone knows it...&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-5379846791185099896?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/5379846791185099896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=5379846791185099896' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5379846791185099896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5379846791185099896'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/11/log-me-in.html' title='LOG ME IN....!'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-8805725667712756966</id><published>2007-10-26T15:25:00.001+05:30</published><updated>2008-02-23T09:08:08.829+05:30</updated><title type='text'>#mv cds DVD</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;Hollaaaaaaaa....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Yesterday i was trying to make a DVD out of my 5 RHEL 5.0 CDs. During the process i ended up losing my two plain DVD's.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;But the most interesting thing is that i finally found the solution :). And i thought i must publish it cause i dont want&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;any other person to have the same difficulties i encountered.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;alrights, lets get started...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I am creating a directory to copy all the RHEL 5.0 CDs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mkdir /tmp/RHEL5_DVD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Loop mount the individual ISO images to any directory&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mount -o loop /path/to/iso1.iso /mnt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;then copy the first CD contents to /tmp/RHEL5_DVD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#cd /mnt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#cp -r * /tmp/RHEL5_DVD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;make sure you copied the .discinfo file also&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);font-family:verdana;" &gt;#cp .discinfo /tmp/RHEL5_DVD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;now unmount /mnt and mount the second iso.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mount -o loop /path/to/iso2.iso /mnt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;then copy all the rpm files inside /mnt/Server to /tmp/RHEL5_DVD/Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#cp /mnt/Server/*.rpm /tmp/RHEL5_DVD/Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;we need to append the contents of the TRANS.TBL file found inside /mnt/Server to that inside /tmp/RHEL5_DVD/Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);font-family:verdana;" &gt;#cat /mnt/Server/TRANS.TBL &gt;&gt; /tmp/RHEL5_DVD/Server/TRANS.TBL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;NOTE&lt;/span&gt;:We are going to make a single TRANS.TBL file with all the TRANS.TBL files inside every isos.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Do the same thing for third, fourth and fifth iso files.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;while copying the fifth iso file's contents, you should copy the rpm files under /mnt/VT/ to /tmp/RHEL5_DVD/VT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;and append the TRANS.TBL file found under /mnt/Server/VT to /tmp/RHEL5_DVD/VT/TRANS.TBL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now edit the .discinfo file inside the directory /tmp/RHEL5_DVD&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;to change the fourth line from 1 to 1,2,3,4,5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;NOTE&lt;/span&gt;: If you miss any cd number, then installation would prompt you to insert that cd.&lt;br /&gt;So you must include all the cd numbers correctly!&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now we must create the ISO image of the /tmp/RHEL5_DVD directory.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Free some 3 GB space in your HDD as the entire build would make an iso file of size&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;no less than 2.6 GB.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#cd /tmp/RHEL5_DVD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I assume you are creating the iso image inside /DVD directory.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);font-family:verdana;" &gt;#mkisofs -o /DVD/rhel5dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);font-family:verdana;" &gt;-no-emul-boot -boot-load-size 4 -boot-info-table -J -r .&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:verdana;" &gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;NOTE&lt;/span&gt; the . at the end of the previous command which specifies the current directory.&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);font-family:verdana;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;the -b flag to mkisofs command specifies the path and filename of the boot&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;image to be used when making the bootable iso.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;the -c flag specifies the path and filename of the boot&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;catalog.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now to burn the DVD, use the growisofs command.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 204, 0);font-family:verdana;" &gt;#growisofs -dvd-compat -Z /dev/dvdwriter-hdc=/DVD/rhel5dvd.iso&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;NOTE&lt;/span&gt;: dd (disk duplicator) command can also be used to burn the iso image.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;#dd if=/DVD/rhel5dvd.iso of=/dev/dvdwriter-hdc obs=32k seek=0&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(plain DVDs and DVD burners are not that cheap here in my locality.. :D)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;consult the man page of dd for more information.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;make changes to the DVD device. I have plugged the DVD as secondary master in&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;my desktop PC.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;the = sign used in the growisofs command finalized the DVD disc.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;linuxly yours....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;~mj0vy&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-8805725667712756966?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/8805725667712756966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=8805725667712756966' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/8805725667712756966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/8805725667712756966'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/10/mv-cds-dvd.html' title='#mv cds DVD'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-1428437104908581346</id><published>2007-09-09T15:59:00.000+05:30</published><updated>2007-09-09T16:09:22.075+05:30</updated><title type='text'>Encrypted File Systems</title><content type='html'>&lt;span style="font-family:verdana;"&gt;The need to encrypt filesystems is to make ur data more secure and safe.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The whole steps include&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;1) Creating a partition with the fdisk utility ( &lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;p&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;re&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;-&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;requisite :-(&lt;/span&gt; )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;2) Selecting a cipher.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;3) Setting up a loop device using the losetup command.&lt;/span&gt;&lt;br /&gt;4) &lt;span style="font-family:verdana;"&gt;Detaching the loop  back device&lt;br /&gt;5) Mouting the parition&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;alright... lets get started..!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;let me assume u have created the partition /dev/hda7&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;first of all we need to shred the partition&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#shred -n 1 /dev/hda7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;this command would overwrite /dev/hda7 only once!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;                -OR-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;we can use the dd command to overwrite the device..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#dd if=/dev/urandom of=/dev/hda7 bs=1M&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now we need to select a cipher for the encyption&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;u can list the available ciphers by cat /proc/crypto&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;here i am using the serpent cipher&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;make sure u have got the serpent cipher modules inbuilt in ur kernel!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;otherwise try&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#&lt;span style="color: rgb(51, 204, 0); font-style: italic;"&gt;modprobe serpent&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#&lt;span style="font-style: italic; color: rgb(51, 204, 0);"&gt;modprobe cryptoloop&lt;/span&gt; ( to setup the loop device described in the next step )&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;the next step is to setup a loop device using the losetup command.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#losetup -e serpent /dev/loop0 /dev/hda7&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;It prompts u for a passphrase. &lt;span style="font-weight: bold; color: rgb(255, 102, 102);"&gt;DONOT forget the passphrase as its not easy to change&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;the passphrase as it is hashed to create the encryption key.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now create a filesystem on the loopback device and mount it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mke2fs -j /dev/loop0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mkdir /cryptfs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mount -t ext3 /dev/loop0 /cryptfs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;once we have mounted the partition, we can then detach the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;loop back device frm the partition.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#umount /cryptfs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#losetup -d /dev/loop0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now mount the partition,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#mount -o encryption=serpent /dev/hda7 /cryptfs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;the passphrase which we have given during the loop device setup will be asked&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;and u need to enter it correctly to mount the device.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-1428437104908581346?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/1428437104908581346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=1428437104908581346' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/1428437104908581346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/1428437104908581346'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/encrypted-file-systems.html' title='Encrypted File Systems'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-141125456647532393</id><published>2007-09-08T07:38:00.000+05:30</published><updated>2007-09-08T10:56:58.863+05:30</updated><title type='text'>COPY FROM LINUX TO M$ and vice-versa</title><content type='html'>&lt;span style="font-family:verdana;"&gt;SAMBA:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Samba acts as a fileserver for windows/linux using the SMB protocol&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;(Server Message Block), SMB is sometimes referred to as CIFS (Common Internet&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;File System).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Server Side:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The directory to be shared from a linux server has to be given a sharename.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Clients access server's directory by referring to this sharename.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;We can have user level access list and host level access list in samba.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Those users to whom server is granting access shuld be a unix server user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;as well, and those users shuld be converted to samba users by giving them a&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;seperate samba password also. The samba users password database is located&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;inside /etc/samba directory in the name smbpasswd.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;ie, /etc/samba/smbpasswd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;There is a directory in the server named /backups.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;These directory needs to be shared to clients which use windows OS.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;First of all we need to give /backups a sharename, by which the windows clients&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;access our /backups. Let it be UNIXBAKUP.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;We are planning to give access to this share only for windows clients&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;192.168.0.3 and 192.168.0.2 only.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;More over, they shuld be granted access if and only if they login as users&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;jack or jane.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Open the samba configuration file using an editor,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;-------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#vi /etc/samba/smb.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;[UNIXBAKUP]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt; comment = Share for windows clients&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt; path = /backups&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt; valid users = jane jack&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt; hosts allow = 192.168.0.3 192.168.0.2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt; writeable = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt; create mask = 0765&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;-------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now we need to add the allowed users&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#useradd jane&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#useradd jack&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#passwd -l jack ; passwd -l jane&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;this is done to lock their unix password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now we need to convert these unix users to samba users.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -a jane&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;now u will be prompted for a password.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;this step only adds the user to the samba password database.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;we need to allow this user to use our samba server.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbpasswd -e jane&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;same way add the user jack also.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;now we need to give permission to users jane and jack the write permission in&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;our share&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#chmod 777 /backups&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#/etc/init.d/smb start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#chkconfig smb on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;to make our samba server persistent across reboots.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;now we can test whether our samba configuration is correct or not with the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;command testparm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#testparm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;if any errors are there it will be reported.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;--------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Client Side: (in 192.168.0.2 and 192.168.0.3)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbclient //&lt;samabashareaddress&gt;&lt;span style="font-style: italic;"&gt;sambaserveraddress&lt;/span&gt;/&lt;sharename&gt;&lt;span style="font-style: italic;"&gt;sharename&lt;/span&gt; -U &lt;span style="font-style: italic;"&gt;username&lt;/span&gt;&lt;username&gt;&lt;/username&gt;&lt;/sharename&gt;&lt;/samabashareaddress&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;here&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#smbclient //192.168.0.4/UNIXBAKUP -U jane/jack&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;enter the password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;u will be put into a samba shell&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;smb: \&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;now u are inside 192.168.0.4's /backups directory&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;frm here if u want to get some files, frm with in samba shell issue&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;smb: \&gt;mget &lt;span style="font-style: italic;"&gt;filename&lt;/span&gt;&lt;filename&gt;&lt;/filename&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;file is now copied frm samba server to the client directory frm where we logged into the samba server.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;instead if u want to put some files frm the folder where u logged into the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;samba server, issue&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;smb: \&gt;mput &lt;file&gt;&lt;/file&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;file-frm-the-client&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;smb: \&gt;ls&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;you will be listed with the file u have just copied frm client to the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;samba server.&lt;br /&gt;&lt;br /&gt;Using GUI:&lt;br /&gt;------------&lt;br /&gt;Take run in KDE/Gnome and try&lt;br /&gt;smb://&lt;span style="font-style: italic;"&gt;sambaserverip&lt;/span&gt;&lt;br /&gt;then u will be prompted for the samba username and password!&lt;br /&gt;&lt;br /&gt;In &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;M$ Windows&lt;/span&gt; u can access the Linux samba share by taking Start&gt;Run and issuing&lt;br /&gt;\\&lt;span style="font-style: italic;"&gt;sambaserverip&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;upon opening any directory u will be asked the samba username and password...!&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-141125456647532393?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/141125456647532393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=141125456647532393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/141125456647532393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/141125456647532393'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/copy-from-linux-to-m-and-vice-versa.html' title='COPY FROM LINUX TO M$ and vice-versa'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-7015731316479755526</id><published>2007-09-08T07:23:00.000+05:30</published><updated>2007-09-08T07:31:51.959+05:30</updated><title type='text'>Manage Logical Volumes</title><content type='html'>&lt;span style="font-family:verdana;"&gt;LVM Creation:&lt;br /&gt;-------------&lt;br /&gt;Create a linux partition, make it a LVM by toggling the linux partitions id to&lt;br /&gt;8e.&lt;br /&gt;Convert it to a physical volume by issuing the command&lt;br /&gt;#pvcreate &lt;span style="font-style: italic;"&gt;devicename&lt;/span&gt;&lt;device&gt;&lt;br /&gt;Then, make the volume group in that physical volume,&lt;br /&gt;#vgcreate &lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;&lt;vgname&gt; &lt;device&gt;&lt;span style="font-style: italic;"&gt;devicename&lt;/span&gt;&lt;br /&gt;Then make logical volumes in the volume group,&lt;br /&gt;#lvcreate -L &lt;span style="font-style: italic;"&gt;size&lt;/span&gt;&lt;size&gt;M -n &lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt; &lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;&lt;vgname&gt;&lt;br /&gt;Make a linux filesystem in the logical volume,&lt;br /&gt;#mkfs.ext3 /dev/&lt;vgname&gt;&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;/&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt;&lt;br /&gt;This device is a softlink to the device /dev/mapper/&lt;span style="font-style: italic;"&gt;vgname-lvname&lt;/span&gt;&lt;vgname&gt;&lt;lvname&gt;&lt;br /&gt;Then mount that logical volume,&lt;br /&gt;#mount /dev/&lt;vgname&gt;&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;/&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt; &lt;mountpoint&gt;&lt;br /&gt;&lt;br /&gt;LVM Resizing:&lt;br /&gt;-------------&lt;br /&gt;LVM format 2.0 is now implemented which supports online resizing of filesystems.&lt;br /&gt;check the current size of the filesystem by 'df -h'&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 204, 0);"&gt;Extend&lt;/span&gt; the above created logical volume &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;BY&lt;/span&gt; X MB,&lt;br /&gt;#lvextend -L +XM /dev/&lt;vgname&gt;&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;/&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt;&lt;br /&gt;we are doing it without unmounting the filesystem&lt;br /&gt;Now to make the extension effective, issue&lt;br /&gt;#resize2fs /dev/&lt;vgname&gt;&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;/&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt;&lt;br /&gt;now recheck the filesystem size by 'df -h',&lt;br /&gt;now the filesystem will be extended by X MB.&lt;br /&gt;&lt;br /&gt;Now if u want to &lt;span style="font-style: italic; color: rgb(51, 204, 0);"&gt;reduce&lt;/span&gt; the logical volume &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;TO&lt;/span&gt; X MB,&lt;br /&gt;u must first umount the device, online reducing of logical volumes cannot be done..!&lt;br /&gt;#umount &lt;mountpoint&gt;&lt;br /&gt;then u need to scan the filesystem for integrity.&lt;br /&gt;#e2fsck -f /dev/&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;&lt;vgnam&gt;/&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt;&lt;br /&gt;now resize the filesystem&lt;br /&gt;#resize2fs /dev/&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;&lt;vgname&gt;/&lt;lvname&gt;&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt; X MB&lt;br /&gt;then reduce the volume with lvreduce and mount it..&lt;br /&gt;#lvreduce -L XM /dev/&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;&lt;vgname&gt;/&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt;&lt;br /&gt;#mount /dev/&lt;span style="font-style: italic;"&gt;vgname&lt;/span&gt;&lt;vgname&gt;/&lt;span style="font-style: italic;"&gt;lvname&lt;/span&gt;&lt;lvname&gt; &lt;mountpoint&gt;&lt;/mountpoint&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/lvname&gt;&lt;/vgnam&gt;&lt;/mountpoint&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/mountpoint&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/lvname&gt;&lt;/vgname&gt;&lt;/vgname&gt;&lt;/lvname&gt;&lt;/size&gt;&lt;/device&gt;&lt;/vgname&gt;&lt;/device&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-7015731316479755526?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/7015731316479755526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=7015731316479755526' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/7015731316479755526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/7015731316479755526'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/manage-logical-volumes.html' title='Manage Logical Volumes'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-444057928676398702</id><published>2007-09-05T07:10:00.000+05:30</published><updated>2007-09-06T05:48:58.647+05:30</updated><title type='text'>init--&gt;xinetd</title><content type='html'>&lt;span style="font-family: verdana;"&gt;this is how we can convert the init based service ftp to an xinetd service..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;1) First of all we need to make FTP not to listen on port 21 by making 'listen=NO' in&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;/etc/vsftpd/vsftpd.conf.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;2) Then, make a file named ftp inside /etc/xinetd.d&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;  the contents of /etc/xinetd.d/ftp should look like this&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;  service ftp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;     {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             disable = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             socket_type = stream&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             wait = no&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             user = root&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             server = /usr/sbin/vsftpd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             server_args = /etc/vsftpd/vsftpd.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             nice = 10&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;             flags = IPv4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;     }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;3) then restart the xinetd service by&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;#/etc/init.d/xinetd restart&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;#chkconfig xinetd on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;now if u 'nmap localhost', u can see that the port 21 is now open...!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-444057928676398702?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/444057928676398702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=444057928676398702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/444057928676398702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/444057928676398702'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/init-xinetd.html' title='init--&gt;xinetd'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-3755744250025862117</id><published>2007-09-04T22:43:00.000+05:30</published><updated>2007-09-05T07:01:31.033+05:30</updated><title type='text'>Services - XINETD and INIT</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Services in Linux:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Services in linux are classified into TWO.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;XINETD and INIT based services.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;XINETD is itself an INIT based service.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;All INIT based services are invoked by the command,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#/etc/init.d/&lt;/span&gt;&lt;servicename  style="font-family:verdana;"&gt;&lt;span style="font-style: italic;"&gt;service&lt;/span&gt; start&lt;br /&gt;XINETD services' configuration file resides in /etc/xinetd.d directory.&lt;br /&gt;All the services are made persistent across reboots by&lt;br /&gt;#chkconfig &lt;span style="font-style: italic;"&gt;servicename&lt;/span&gt;&lt;servicename&gt; on , for all init based services.&lt;br /&gt;#chkconfig xinetd on , for all xinetd based services.&lt;br /&gt;&lt;br /&gt;XINETD services: e(X)tended (I)(N)tern(E)(T) services (D)aemon&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;xinetd service is called a super server as it serves as the daemon for a number of seperate services.&lt;br /&gt;For all the services which use xinetd, we need to start the xinetd daemon only. xinetd services' configuration files can be found at /etc/xinetd.d/&lt;span style="font-style: italic;"&gt;service&lt;/span&gt;&lt;servicename&gt;&lt;span style="font-style: italic;"&gt;name&lt;/span&gt;&lt;br /&gt;All the xinetd services are having the same syntax facilitating the administration of xinetd services very easy.&lt;br /&gt;Extensive logging and fine grained access control can be implemented with xinetd&lt;br /&gt;Xinetd service forks process ids only when a client requests the service.&lt;br /&gt;Only one process is necessary to invoke process ids for individual xinetd services, ie the xinetd super daemon itself.&lt;br /&gt;Logging based on hostname are not supported in XINETD&lt;br /&gt;&lt;br /&gt;INIT based services:&lt;br /&gt;--------------------&lt;br /&gt;INIT based services are having individual configuration files under&lt;br /&gt;/etc/&lt;servicename&gt;&lt;span style="font-style: italic;"&gt;service&lt;/span&gt;/&lt;configfile&gt;&lt;span style="font-style: italic;"&gt;servicename&lt;/span&gt;.&lt;br /&gt;Their starting scripts are placed under /etc/init.d/&lt;servicename&gt;&lt;span style="font-style: italic;"&gt;servicename&lt;/span&gt;.&lt;br /&gt;Each individual services can be started by&lt;br /&gt;#/etc/init.d/&lt;servicename&gt;&lt;span style="font-style: italic;"&gt;servicename&lt;/span&gt; start&lt;br /&gt;&lt;br /&gt;and to sum up... the more the processes .. the lesser the performance of the machine..&lt;br /&gt;so it is advisable to have more xinetd based services than init based ones..!&lt;/servicename&gt;&lt;/servicename&gt;&lt;/configfile&gt;&lt;/servicename&gt;&lt;/servicename&gt;&lt;/servicename&gt;&lt;/servicename&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-3755744250025862117?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/3755744250025862117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=3755744250025862117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/3755744250025862117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/3755744250025862117'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/services-xinetd-and-init.html' title='Services - XINETD and INIT'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-5747941051521086135</id><published>2007-09-03T22:45:00.001+05:30</published><updated>2007-09-03T23:44:36.705+05:30</updated><title type='text'>INODES,LINKS</title><content type='html'>&lt;span style="font-family: verdana;"&gt;Inode Table:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;All files in linux are having an inode number which is residing inside the inode table of a partition. For every partition there is an inode table, so an inode number will be unique for a partition, and thats the reason why we cannot hardlink between two partitions. Inode number contains a file's uid, gid, access time, modification time, change time and size of the file. inode number DOESNT hold a file's NAME. we can retrieve the contents of a file even if the file is deleted unless and until the inode number corresponding to that file is overwritten.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The inode number can be viewed with the -i switch with the 'ls' command..!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;$ls -i &lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;"&gt;filename&lt;/span&gt;&lt;file style="font-family: verdana;"&gt;&lt;br /&gt;&lt;br /&gt;softlinks:&lt;br /&gt;softlinks are similar to shortcuts in Microsoft Windows. softlinks' size is determined by the number of characters in the absolute path to the original file it is linking to. Softlinks are apparently having full permissions. Soft links are effective as we can link files among different partitions. If the orignal file is removed ( or renamed )the soft links become dead, meaning softlinks refer only to the NAME of the original file. Soft links will be having a different inode number frm the original file. Soft links cannot be touched (means... their timestamps cannot be updated).&lt;br /&gt;hardlinks:&lt;br /&gt;hardlinks are pointers to the inode number of a file. hardlink will be having the same inode number as that of the original file. The contents will be there in the hardlink if we delete the original file as hardlink points to the same inode number in the inode table. We cannot hardlink between two partitions. same way... we cannot hardlink a directory. if some updates are done in the original file, it is reflected to hardlinks also as the updates are done in the inode number. Hardlink is not at all an overhead as they are pointers to the same inode number.&lt;file&gt;&lt;file&gt;&lt;br /&gt;&lt;/file&gt;&lt;/file&gt;&lt;/file&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-5747941051521086135?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/5747941051521086135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=5747941051521086135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5747941051521086135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5747941051521086135'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/inodeslinks.html' title='INODES,LINKS'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-8343689785758451597</id><published>2007-09-02T21:16:00.000+05:30</published><updated>2007-09-02T21:21:16.377+05:30</updated><title type='text'>SSL - Concepts Simplified...!?!!!</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Secure Socket Layer:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;--------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The Secure Socket Layer protocol was first introduced by Netscape to ensure secure transations between&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;webservers and browsers. The protocol uses a third party Certificate Authority (CA) to identify the both end&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;of the transactions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;SSL philosophy:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;---------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;1. Client using some browser requests a secure page (https://www.gmail.com)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;2. www.gmail.com sends its public key with its certificate&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;   signed by (Thawte Consulting Pty Limited) (dated: 02/09/2007, 20:48)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;3. Our browser checks that the certificate was issued by a trusted party (Thawte here), that the certificate is&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;   still valid and the certificate is related to site we just contacted (www.gmail.com here).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;4. The Browser then uses the public key send by www.gmail.com to encrypt some random symmetric&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;   encryption key and sends it to www.gmail.com along with the encrypted URL requested as well as other&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;   encrypted data.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;5. www.gmail.com decrypts the encrypted symmetric key send by the browser (in step 4) with its private key and uses this&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;   symmetric key to decrypt the URL and http data.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;6. www.gmail.com sends back the requested html data encrypted with the symmetric encrytion key send by the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;   browser in step 4.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;7. Our browser decrypts the http data and html document using symmetric key and displays the information.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;With this symmetric key the further communication between www.gmail.com and our browser takes place.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Here asymmetric encryption machanism is taking place between browser and www.gmail.com.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Our browser encrypted some key with public key of www.gmail.com and www.gmail.com on recieval of&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;this encrypted key, decrypted it with its private key. This mechanisms works with public/private key pairs.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;This way www.gmail.com sends its public key to every browser requesting its first page and SSL mechanism&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;undergoes like the above 7 steps.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-8343689785758451597?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/8343689785758451597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=8343689785758451597' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/8343689785758451597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/8343689785758451597'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/ssl-concepts-simplified.html' title='SSL - Concepts Simplified...!?!!!'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-9033790061040869224</id><published>2007-09-02T20:47:00.000+05:30</published><updated>2007-09-02T20:52:09.025+05:30</updated><title type='text'>vsFTPd configuration in RHEL 5.0</title><content type='html'>&lt;span style="font-family: verdana;"&gt;FTP:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;conf file: /etc/vsftpd/vsftpd.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Unlike SSH we are having two files to allow/deny users via FTP ( in SSH we did it in the main configuration file itself by AllowUsers/DenyUsers)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The main file for denial is /etc/vsftpd/ftpusers&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The other file is /etc/vsftpd/user_list&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;But if we need to make our FTP check user_list file we need to say it in the main configuration file, like&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;userlist_enable=YES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;If, userlist_enable=NO, ftp doesnt check user_list file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The behaviour of user_list depends upon the declaration inside the vsftpd.conf file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;if its declared like,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;userlist_deny=YES , those usernames inside user_list is denied even without prompting for a password&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;if its declared like,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;userlist_deny=NO, those in user_list are ONLY allowed to login.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Whatever the behaviour of user_list, FTP searches for ftpusers file for users that are DENIED!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-9033790061040869224?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/9033790061040869224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=9033790061040869224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/9033790061040869224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/9033790061040869224'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/vsftpd-configuration-in-rhel-50.html' title='vsFTPd configuration in RHEL 5.0'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-8464023707790171772</id><published>2007-09-02T15:21:00.000+05:30</published><updated>2007-09-02T15:29:07.888+05:30</updated><title type='text'>ipv4 to ipv6 and vice-versa...</title><content type='html'>&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: verdana;"&gt;its been quite a some time that i have started thinking abt switching to ipv6 frm ipv4.... and finally im into configuring an ipv6 dhcp server...&lt;br /&gt;as i was not that good at ipv6... wat i did was to convert the ipv4 addresses to ipv6 using a kool sexy tool available with Red Hat Enterprise editions... 'ipv6calc'&lt;br /&gt;&lt;br /&gt;and here it goes...&lt;br /&gt;i need to conver the ipv4 address 172.24.0.7 to ipv6... lets do it now..&lt;br /&gt;$ipv6calc --in ipv4addr 172.24.0.7 --action conv6to4 --out ipv6addr&lt;br /&gt;it will output the ipv6 equivalent of 172.24.0.7&lt;br /&gt;and it will be..&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: verdana;"&gt;&lt;br /&gt;2002:ac18:7::&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: verdana;"&gt;suppose u want to convert this ipv6 address back to ipv4...&lt;br /&gt;here it goes...&lt;br /&gt;$ipv6calc --in ipv6addr 2002:ac18:7:: --action conv6to4 --out ipv4addr&lt;br /&gt;&lt;br /&gt;172.24.0.7&lt;br /&gt;&lt;br /&gt;have happy conversions..! :d&lt;br /&gt;~mj0vy&lt;br /&gt;:wq&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-8464023707790171772?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/8464023707790171772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=8464023707790171772' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/8464023707790171772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/8464023707790171772'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/09/ipv4-to-ipv6-and-vice-versa.html' title='ipv4 to ipv6 and vice-versa...'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-9029335166034920451</id><published>2007-05-06T08:04:00.000+05:30</published><updated>2007-05-06T08:07:28.541+05:30</updated><title type='text'>me is serious now..</title><content type='html'>i wasnt able to log into blogger for quite a sometime ... finally fixed the problem... upgraded to firefox 2.0 and did some tweaking.. now i have foxmarks installed...&lt;br /&gt;&lt;br /&gt;well.... today.. 6th of may 2007... me going to start a fresh linux session.... in desperate need to garner some advanced knowledge... will come with all in the blogs frm today onwards...&lt;br /&gt;&lt;br /&gt;~mj0vy&lt;br /&gt;:wq&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-9029335166034920451?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/9029335166034920451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=9029335166034920451' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/9029335166034920451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/9029335166034920451'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/05/me-is-serious-now.html' title='me is serious now..'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-2794810864928111901</id><published>2007-03-27T12:18:00.000+05:30</published><updated>2007-03-27T12:24:09.230+05:30</updated><title type='text'>theres no patch for human stupidity...!?!!!</title><content type='html'>hemmmmmmmmmm,&lt;br /&gt;something new is happening with my computer, bought a new DVD-RW and plugged in to my box...!?!!!&lt;br /&gt;well... realized the fact that i could even dload the youtube videos. But still, a remorse that i cannot concentrate on wat i am learning. i need a constant source of motivation.....&lt;br /&gt;it looks a bit jokin that everyday i end up telling abt my drawbacks... and i am not improving...!&lt;br /&gt;will come up with more in the next edition...!&lt;br /&gt;&lt;br /&gt;~mj0vy&lt;br /&gt;:wq&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-2794810864928111901?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/2794810864928111901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=2794810864928111901' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/2794810864928111901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/2794810864928111901'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/03/theres-no-patch-for-human-stupidity.html' title='theres no patch for human stupidity...!?!!!'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-4900702470084179800</id><published>2007-03-07T07:16:00.000+05:30</published><updated>2007-03-07T07:38:14.785+05:30</updated><title type='text'>Apache TOMCAT</title><content type='html'>just have a read abt Apache and TOMCAT  and how they could work together to get good web contents.....&lt;br /&gt;&lt;br /&gt;Apahe is a webserver. Tomcat is a java servlet container (J2EE compliant servlet container). Tomcat can independantely work as a webserver, it can be integrated with other webservers like Apache, IIS and NES servers. It facilitates a surface for java programs to run in co-operation with a webserver.&lt;br /&gt;&lt;br /&gt;will come up with more soon.......&lt;br /&gt;~mj0vy&lt;br /&gt;:wq&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-4900702470084179800?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/4900702470084179800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=4900702470084179800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4900702470084179800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4900702470084179800'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/03/apache-tomcat.html' title='Apache TOMCAT'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-4019413891676657463</id><published>2007-02-25T14:46:00.000+05:30</published><updated>2007-02-25T14:52:44.958+05:30</updated><title type='text'>undestanding what i understood was wrong...!?!!!</title><content type='html'>its quite amazing to understand that some files work just the opposite wat it was intended once we change the labels...&lt;br /&gt;i was referring to the FTP configuration file, some days back only i got the real usage of the user_list file..&lt;br /&gt;&lt;br /&gt;first of all we need to enable FTP service to  read the user_list file&lt;br /&gt;&lt;br /&gt;userlist_enable=YES&lt;br /&gt;userlist_deny=YES # means that the users inside the vsftpd.user_list are denied, which is the default&lt;br /&gt;userlist_deny=NO # means that the users inside the vsftpd.user_list are only allowed to login via FTP&lt;br /&gt;&lt;br /&gt;anyways.. nice to understand that even at this later stage...!?!!!&lt;br /&gt;&lt;br /&gt;~sreejith anujan....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-4019413891676657463?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/4019413891676657463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=4019413891676657463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4019413891676657463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/4019413891676657463'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/02/undestanding-what-i-understood-was.html' title='undestanding what i understood was wrong...!?!!!'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-527304249303302519</id><published>2007-02-21T06:32:00.000+05:30</published><updated>2007-02-21T06:37:29.965+05:30</updated><title type='text'>never mkfs an extended partition...!?!!!</title><content type='html'>i know im on the beginning stages of experience...&lt;br /&gt;&lt;br /&gt;and one did happen yday when i tried to mkfs an extended parition... it did try making a filesystem but ended up showing a Segmentation Fault ... and when i reinstalled ...it was gone....&lt;br /&gt;&lt;br /&gt;i made a 32 GB extended partition with no logical volumes in it.. it was made as such... and then i tried..&lt;br /&gt;&lt;br /&gt;#mke2fs /dev/hda4&lt;br /&gt;it did show me a message... something like its the full harddisk and am i sure abt the filesystem creation...something like that... i simply pressed the 'y' key and proceeded with the process...&lt;br /&gt;&lt;br /&gt;and at last.. a Segmentation Fault...&lt;br /&gt;&lt;br /&gt;anyways... put the first installation CD and performed an NFS installation...&lt;br /&gt;&lt;br /&gt;shell scripting on the process..........&lt;br /&gt;&lt;br /&gt;will be out with it soooon..........&lt;br /&gt;&lt;br /&gt;~mj0vy&lt;br /&gt;:wq&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-527304249303302519?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/527304249303302519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=527304249303302519' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/527304249303302519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/527304249303302519'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/02/never-mkfs-extended-partition.html' title='never mkfs an extended partition...!?!!!'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-5553881715771272509</id><published>2007-02-19T22:25:00.000+05:30</published><updated>2007-02-19T22:29:33.508+05:30</updated><title type='text'>dig mj0vy.blogspot.com</title><content type='html'>well...&lt;br /&gt;configured my pc as a DNS server... leaving me with all kinds of confusions...&lt;br /&gt;&lt;br /&gt;i made two zone files... mkfs.zone and reverse.zone for the domain mkfs.com&lt;br /&gt;&lt;br /&gt;initially moved the named.local and localhost.zone in /var/named to reverse.zone and mkfs.zone respectievely... making them symlinks to the files inside /var/named/chroot/var/named&lt;br /&gt;&lt;br /&gt;it didnt work out...&lt;br /&gt;&lt;br /&gt;then i moved the files into /var/named/chroot/var/named and named them as such... reverse.zone and mkfs.zone... and it worked kool..&lt;br /&gt;&lt;br /&gt;but.. i think /etc/named.conf fils specifies the zone files to be placed inside /var/named directory only.....&lt;br /&gt;&lt;br /&gt;i cant understand myself wat exactly is happening....!!!&lt;br /&gt;&lt;br /&gt;anyways... will come with the scripting references soon.............&lt;br /&gt;&lt;br /&gt;~mj0vy&lt;br /&gt;:wq&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-5553881715771272509?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/5553881715771272509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=5553881715771272509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5553881715771272509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/5553881715771272509'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/02/dig-mj0vyblogspotcom.html' title='dig mj0vy.blogspot.com'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-1962421287130243595</id><published>2007-02-19T07:59:00.000+05:30</published><updated>2007-02-19T08:01:48.492+05:30</updated><title type='text'>sreejith chrooted</title><content type='html'>DNS atlast worked fine here in nascent...&lt;br /&gt;did the same thing which i did last week before leaving to blore..&lt;br /&gt;at times linux behaves strangely... indeed strange...&lt;br /&gt;&lt;br /&gt;just copied the zone files to /var/named/chroot/var/named and made symlinks to them inside /var/named... exactly wat i did last week...&lt;br /&gt;&lt;br /&gt;anyways..its working fine now... and one more thing.........&lt;br /&gt;&lt;br /&gt;never use sendmail with IP.... always use hostnames... that wat i think now...&lt;br /&gt;&lt;br /&gt;mail mj0vy@mkfs.tux.com&lt;br /&gt;&lt;br /&gt;~mj0vy&lt;br /&gt;:wq&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-1962421287130243595?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/1962421287130243595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=1962421287130243595' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/1962421287130243595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/1962421287130243595'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/02/sreejith-chrooted.html' title='sreejith chrooted'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6771968058432623559.post-6015559816053480430</id><published>2007-02-18T20:30:00.000+05:30</published><updated>2007-02-18T20:34:57.176+05:30</updated><title type='text'>localhost localdomain</title><content type='html'>im back....&lt;br /&gt;was at blore...&lt;br /&gt;i know i am not homesick... rather i am trivandrum sick...or am i kerala sick?&lt;br /&gt;blore sucks big time...&lt;br /&gt;yeah u could kill time roaming around... but with the kinda traffic and polution rates... i felt like hell...&lt;br /&gt;&lt;br /&gt;unless u are very much interested in female anatomy ...u will lose urself at blore...&lt;br /&gt;&lt;br /&gt;and to the matter... im into blogging after a gap...&lt;br /&gt;&lt;br /&gt;trying to reestablish as a perseverant student...&lt;br /&gt;&lt;br /&gt;want to complete the basics of shell scripting...&lt;br /&gt;&lt;br /&gt;will be starting a series on shell scripting frm tomorrow onwards... its just a starting..... everything needs a start... no????&lt;br /&gt;&lt;br /&gt;~mj0vy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6771968058432623559-6015559816053480430?l=mj0vy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mj0vy.blogspot.com/feeds/6015559816053480430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6771968058432623559&amp;postID=6015559816053480430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/6015559816053480430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6771968058432623559/posts/default/6015559816053480430'/><link rel='alternate' type='text/html' href='http://mj0vy.blogspot.com/2007/02/localhost-localdomain.html' title='localhost localdomain'/><author><name>Sreejith Anujan</name><uri>http://www.blogger.com/profile/13176585459300737314</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_MTkDHkJXIi4/SQfXq1dGRRI/AAAAAAAAABg/XuJleJOTy1U/S220/DSC000391.JPG'/></author><thr:total>0</thr:total></entry></feed>
