<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<script type="text/javascript">(function() { var b=window,f="chrome",g="tick",k="jstiming";(function(){function d(a){this.t={};this.tick=function(a,d,c){var e=void 0!=c?c:(new Date).getTime();this.t[a]=[e,d];if(void 0==c)try{b.console.timeStamp("CSI/"+a)}catch(h){}};this[g]("start",null,a)}var a;b.performance&&(a=b.performance.timing);var n=a?new d(a.responseStart):new d;b.jstiming={Timer:d,load:n};if(a){var c=a.navigationStart,h=a.responseStart;0<c&&h>=c&&(b[k].srt=h-c)}if(a){var e=b[k].load;0<c&&h>=c&&(e[g]("_wtsrt",void 0,c),e[g]("wtsrt_","_wtsrt",h),e[g]("tbsd_","wtsrt_"))}try{a=null,
b[f]&&b[f].csi&&(a=Math.floor(b[f].csi().pageT),e&&0<c&&(e[g]("_tbnd",void 0,b[f].csi().startE),e[g]("tbnd_","_tbnd",c))),null==a&&b.gtbExternal&&(a=b.gtbExternal.pageT()),null==a&&b.external&&(a=b.external.pageT,e&&0<c&&(e[g]("_tbnd",void 0,b.external.startE),e[g]("tbnd_","_tbnd",c))),a&&(b[k].pt=a)}catch(p){}})();b.tickAboveFold=function(d){var a=0;if(d.offsetParent){do a+=d.offsetTop;while(d=d.offsetParent)}d=a;750>=d&&b[k].load[g]("aft")};var l=!1;function m(){l||(l=!0,b[k].load[g]("firstScrollTime"))}b.addEventListener?b.addEventListener("scroll",m,!1):b.attachEvent("onscroll",m);
})();</script>
<meta content='blogger' name='generator'/>
<link href='http://www.aboutlinux.info/favicon.ico' rel='icon' type='image/x-icon'/>
<link href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html' rel='canonical'/>
<!--[if IE]> <script> (function() { var html5 = ("abbr,article,aside,audio,canvas,datalist,details," + "figure,footer,header,hgroup,mark,menu,meter,nav,output," + "progress,section,time,video").split(','); for (var i = 0; i < html5.length; i++) { document.createElement(html5[i]); } try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {} })(); </script> <![endif]-->
<!-- change of title start -->
<title>How To Set File Attributes In Linux Using Chattr Command | All about Linux</title>
<!-- change of title end -->
<!-- Google webmaster tools site verification -->
<meta content='2OAvqtoaBwO9_T_odq6yj6j9iFeMkobmkpbVw5OZ_8U' name='google-site-verification'/>
<!-- Yahoo webmaster tools key -->
<META content='b5bd3a825202b11f' name='y_key'></META>
<META content='Linux Distributions, OS Reviews, Book Reviews,Tips and Tricks, Linux Support, Software Reviews, Help Videos, Open Source News, Desktop' name='Keywords'></META>
<META content='General' name='rating'></META>
<!--[if IE 6]> <style type="text/css"> #sidebar-wrapper { margin-left: -6px; overflow: hidden; } /* Resizes larger images to fit max-width of content: 577px to 576px */ .post-body img { width: expression(this.width > 577 ? 576: true); } * html .post-body img { height: 1%; margin-left: 0; } /* http://www.positioniseverything.net/explorer/creep.html */ blockquote, .post-body blockquote { width: 95%; } li.comment blockquote { width: 80%; } body .comment { border-left: 60px solid #f9fbfc; margin-bottom: -3px; } body .comment .comment-body { height: 1%; margin-left: 0; } /* Adds some minimum height to the navigation to show the background-color */ div.navigation { height: 1%; } </style> <![endif]-->
<link type='text/css' rel='stylesheet' href='https://www.blogger.com/static/v1/widgets/728935430-widget_css_bundle.css' />
<link type='text/css' rel='stylesheet' href='https://www.blogger.com/dyn-css/authorization.css?targetBlogID=7693232&zx=030e22cd-0383-4b9f-9de0-ea3545c550cc' />
<style id='page-skin-1' type='text/css'><!--
/*
/* **************************
Name: Cordobo Park 2
Bloggerized by: http://btemplates.com/
Designer: http://cordobo.com/
Date: Ago 09
Description: Lightweight fast-rendering theme with 2-3 column layout and right sidebar, Widget-ready (4 slots), built-in support for plugins (e.g. twitter), support for nested comments, fully localized, easy to customize via settings-page. By Artis Cordobo.
Tags: green, white, silver, black, light, two-columns, right-sidebar, fixed-width
*****************************
*//* Definicion de variables
====================
<Variable name="textocolor" description="Text Color"
type="color" default="#4D4D4D">
<Variable name="enlacecolor" description="Link Color"
type="color" default="#004D99">
<Variable name="colorenlaceencima" description="Hover Link Color"
type="color" default="#86180A">
<Variable name="colortituloblog" description="Blog Title Color"
type="color" default="#000000">
<Variable name="descripcioncolor" description="Blog Description Color"
type="color" default="#868F98">
<Variable name="colortituloentrada" description="Post Title Color"
type="color" default="#000000">
<Variable name="colorbordes" description="Color Menu"
type="color" default="#FFFFFF">
<Variable name="dateHeaderColor" description="Date Header Color"
type="color" default="#3E5867">
<Variable name="colortituloslateral" description="Sidebar Title Color"
type="color" default="#434343">
<Variable name="colortextolateral" description="Sidebar Text Color"
type="color" default="#C54E0B">
*/
/* MINIMUM RESET - based on work by Eric Meyer
------------------------------------------------------------------ */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { border: 0; font-size: 100%; margin: 0; outline: 0; padding: 0; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; }
#outer-wrapper {
}
#navbar-iframe {
height:0px;
visibility:hidden;
display:none
}
/*-- (Generales) --*/
*::-moz-selection { background: #51a201 none repeat scroll 0 0; color: #fff; }
html, body { color: #242626; }
html {
background: #D5DADD url(http://1.bp.blogspot.com/_73i0fjAB_Hw/TUwO8jOq0kI/AAAAAAAABPc/6pVv9UjcKbA/s000/bg-html.jpg) top left repeat-x;
height: 100%;
margin-bottom: 1px;
overflow-y: scroll;
}
body {
background: url(http://3.bp.blogspot.com/_73i0fjAB_Hw/TUwO8_5WoBI/AAAAAAAABPg/4sJSP7noXR4/s000/bg-body.png) 50% 74px no-repeat;
*background-position: 50% 84px;
font: 100%/1.5 "Lucida Grande", "Helvetica Neue", Arial, "Lucida Sans Unicode", sans-serif;
font-smooth: always;
text-align: center;
}
a { text-decoration: none; }
a:link, a:visited { color: #004D99; }
a:focus, a:hover, a:active { color: #86180A; }
#menu a:active, #submenu a:active { position: relative; top: 1px; }
#submenu a:focus { color: #111; }
#sidebar a, #sidebar a:link, #sidebar a:visited { border-bottom: 1px solid #fff; color: #C54E0B; }
#sidebar a:focus, #sidebar a:hover, #sidebar a:active { border-bottom-color: #C54E0B; color: #111; }
#sidebar .sb-tools a, #sidebar .sb-tools a:link, #sidebar .sb-tools a:visited { border: 0 none; color: #C54E0B; }
#sidebar .sb-tools a:active, #sidebar .sb-tools a:focus, #sidebar .sb-tools a:hover { border: 0 none; color: #000; }
#sidebar .textwidget a img, #sidebar .textwidget a:hover img { border: 0 none; }
abbr, acronym { border-bottom: 1px dashed #999; cursor: help; }
/*blockquote {
background-color: #f8f8f8;
border-left: 2px solid #eaeaea;
color: #111;
font-style: italic;
margin: 0 0 9px;
padding: 7px;
} */
blockquote {
background-color: #F2E8E6;
border-left: 2px solid #eaeaea;
color: #111;
width: 500px;
font-style: italic;
margin: 0 0 9px;
padding: 7px;
-webkit-border-radius: 10px; /*-- Edited by Ravi, rounded corners --*/
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 3px 3px 5px #888; /*-- Gives a shadow --*/
-webkit-box-shadow: 3px 3px 5px #888;
box-shadow: 3px 3px 5px #888;
quotes: "\201C" "\201D";
}
blockquote:before { content: open-quote; font-size:20px; font-weight: bold; }
blockquote:after { content: close-quote; font-size:20px; font-weight: bold; }
cite { font-style: italic; }
/*-- Edited by Ravi --*/
code, pre {
font-family: Consolas, "Lucida Console", Monaco, monospace;
/*font-size: 0.9em;*/
background-color: #F4F8F9;
border: 1px solid #99C2CA;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
code {
padding: 0 3px 0 3px;
}
pre {
overflow: auto;
width: 500px;
padding: 10px;
}
/*code {
background: #eaeaea;
font-family: Consolas, Monaco, monospace;
font-size: 0.9em;
padding: 1px 3px;
}*/
/*-- Edited by Ravi --*//*-- Info and Note message box --*/
.info,.note,.box {
border: 1px solid #eaeaea;
margin: 15px 0px;
padding:20px 15px 20px 75px;
width: 450px;
color: #111;
background-color: #F2E8E6;
line-height: 1.5em;
font-size: 1.1em;
background-repeat: no-repeat;
background-position: 10px center;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 5px 5px 5px #888;
-webkit-box-shadow: 5px 5px 5px #888;
box-shadow: 5px 5px 5px #888;
}
.info {
background-image: url('http://3.bp.blogspot.com/-IvbhN_sUpnA/T5tKEM3Vh3I/AAAAAAAAAHU/zUDf2j1z2K0/s1600/infoIcon.png');
}
.note {
background-image: url('http://1.bp.blogspot.com/-p8LbDqH9uE8/T5tKEbdCHxI/AAAAAAAAAHg/bFwy_C8vQic/s1600/note-icon.png');
}
.red {
color: red;
}
.blue {
color: blue;
}
.underline {
border-bottom : 2px solid #999999;
}
del { color: #8b0000; text-decoration: line-through; }
em { font-style: italic; }
h1, h2, h3, h4, h5, h6 {
color: #000;
display: block;
/* fixed for Non-PCs without Photoshop CS2+ */
font-family: "Myriad Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Lucida Grande", "Helvetica Neue", Arial, "Lucida Sans Unicode", sans-serif;
font-weight: normal;
}
h1 { font-size: 34px; line-height: 1.2; margin: 0.3em 0 10px; }
h2 { font-size: 28px; line-height: 1.3; margin: 1em 0 .2em; }
h3 { font-size: 24px; line-height: 1.3; margin: 1em 0 .2em; }
h4 { font-size: 19px; margin: 1.33em 0 .2em; }
h5 { font-size: 1.3em; margin: 1.67em 0; font-weight: bold; }
h6 { font-size: 1.15em; margin: 1.67em 0; font-weight: bold; }
h1 a, h2 a, h1 a:link, h2 a:link, h1 a:visited, h2 a:visited { color: #000; }
h1 a:active, h2 a:active, h1 a:focus, h2 a:focus, h1 a:hover, h2 a:hover { color: #669900; }
hr { display: none; }
input { vertical-align: middle; }
ins { color: #006400; text-decoration: none; }
small { font-size: 0.8em; }
strong { font-weight: bold; }
sub, sup { font-size: 0.7em; }
#main-wrapper {overflow:hidden;}
.clear {clear:both;}
#blog-pager-newer-link {float: left;}
#blog-pager-older-link {float: right;}
#blog-pager {text-align: center; }
/* Generic classes
------------------------------------------------------------------- */
/* Beautified ampersands */
.amp { font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman"; font-style: italic; }
/* Emphasize your name in the About-Box */
.smaller-caps { font-size: 110%; font-variant: small-caps; }
.hidden { display: none; }
.top-link { background: transparent url(http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO85FhXpI/AAAAAAAABPk/bRX0XvU7ZtU/s000/top-sprite.png) 0 5px no-repeat; padding-left: 12px; }
.top-link:hover { background-position: 0 -29px; }
/* Wordpress specific CSS
------------------------------------------------------------------- */
.aligncenter, div.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.aligncenter img, .aligncenter p.wp-caption-text {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.alignleft { float: left; }
.alignright { float: right; }
img.alignleft { display: inline; margin: 0 7px 2px 0; padding: 4px; }
img.alignright { display: inline; margin: 0 0 2px 7px; padding: 4px; }
.post div.alignleft { float: left; margin: 0 8px 7px 0; }
/*-- (Cabecera) --*/
#header-wrapper {
height: 146px; margin-top: 10px !important; position: relative;
}
#header {
display: block; position: absolute; top: 30px; left: 28px; width:600px;
}
#header-wrapper h1 {
font-size: 30px; line-height: 1.2; margin: 0; color:#000000 !important;
}
#header-wrapper h1 a{
color:#000000 !important;
}
#header-wrapper p,
#header-wrapper h1 {
float: left;
}
#header-wrapper p {
margin: 17px 0 0 10px;
color:#868F98;
}
/*-- (Menu) --*/
#accessibility li, #accessibility a,
#menu li, #menu a,
#submenu li, #submenu a { display: block; float: left; }
#accessibility { display: block; position: absolute; right: 28px; top: 40px; }
#accessibility a { background: transparent url(http://2.bp.blogspot.com/_73i0fjAB_Hw/TUwO9H0Bm9I/AAAAAAAABPo/q6NEoVml-Ec/s000/navigation.png) right -200px no-repeat; padding: 0 7px 0 4px; }
#accessibility .last-item a { background: none; padding-right: 0; }
#nav { position: absolute; top: 75px; left: 0; width: 985px; }
ul#menu {
background: #89CB11 url(http://2.bp.blogspot.com/_73i0fjAB_Hw/TUwO9H0Bm9I/AAAAAAAABPo/q6NEoVml-Ec/s000/navigation.png) top left repeat-x;
display: block;
height: 41px;
padding: 0 28px 0 18px;
width: 939px;
}
#menu a {
background: transparent url(http://2.bp.blogspot.com/_73i0fjAB_Hw/TUwO9H0Bm9I/AAAAAAAABPo/q6NEoVml-Ec/s000/navigation.png) left -150px no-repeat;
color: #FFFFFF;
font-weight: bold;
line-height: 40px;
padding: 0 8px 0 10px;
text-shadow: 0 1px 0 #555;
}
/* Removes the background separator in Opera 9+, Firefox 2+, Safari 3+ */
#menu .page-item-home a, #submenu li:first-child a { background: none; }
/*
FF3.5/Safari4/Chrome2/Opera10 - applies a darker text-shadow to the link for a seamless transition
http://cordobo.com/1119-provide-visual-feedback-css/
*/
#menu a:hover, #menu a:focus, #menu .current_page_item a {
/* Fallback - Adds more contrast to the navigation for IE6/7/8 */
color: #000\9;
text-shadow: 1px 1px 1px #000;
}
#submenu-bg { background: transparent url(http://2.bp.blogspot.com/_73i0fjAB_Hw/TUwO9hLcPuI/AAAAAAAABPs/6gjRTMNstNY/s000/bg-submenu.jpg) 0 0 repeat-x; height: 30px; width: 985px; }
#nav-search { display: block; height: 30px; line-height: 16px; position: absolute; top: 9px; right: 28px; }
#nav-search label { display: none; }
#s, #searchsubmit { border-radius: 3px 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
#s {
border: 1px solid #777;
font-size: 11px;
height: 15px;
padding: 4px 5px 2px;
width: 130px;
}
#nav-search #s { border-color: #69ab01; border-bottom-color: #548301; border-right-color: #548301; }
#searchsubmit {
background: #669900 url(http://3.bp.blogspot.com/_73i0fjAB_Hw/TUwO9yYwQrI/AAAAAAAABPw/SC1uShmYNfA/s000/button-style-input.png) center left repeat-x;
border: 1px solid #666;
color: #fff;
font-size: 11px;
height: 23px;
letter-spacing: 1px;
line-height: 20px;
padding: 0 5px;
-moz-box-shadow: 0px 0px 1px #fff;
-webkit-box-shadow: 0px 0px 1px #fff;
}
/* Fixes Firefox 2 and 3 */
#searchsubmit, x:-moz-any-link { padding: 0 5px 3px; *padding: 0 5px; }
/*-- (Contenedor) --*/
#header-wrapper, #content-wrapper, #footer-wrapper {
background-color: #fff;
text-align: left;
margin: 0 auto 3px;
width: 985px;
}
#header-wrapper, #footer-wrapper { font-size: 0.7em; }
#sidebar-wrapper { font-size: 0.8em; } /*-- Edited by Ravi --*/
/*-- (Principal) --*/
#main-wrapper {
float: left; margin: 0 -350px 0 0; width: 100%;
}
#main {
border-right: 3px solid #D5DADD; margin: 0 350px 0 0; overflow: hidden; padding: 19px 0 0;
}
.post {
padding: 0 28px;
}
.post { padding-bottom: 20px; }
.post { margin-bottom: 30px; }
h1.post-title, h1.post-title a {
color:#000000 !important;
}
.post-header-line-1 {
background-color: #F4F8F9;
border-bottom: 1px solid #E6F0F2;
border-top: 1px solid #E6F0F2;
color: #3E5867;
display: block;
font-size: 12px;
height: 19px;
line-height: 19px;
margin: 0 -28px;
padding: 6px 28px;
text-shadow: 0px 1px 0px #fff;
width: 576px;
}
.date-header {text-transform: capitalize;}
* html .post-header-line-1 { height: 1%; }
.post-header-line-1:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
a.button-style {
border: 1px solid #F4F8F9;
border-radius: 3px 3px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
display: inline-block;
height: 11px;
line-height: 11px;
padding: 4px 6px;
width: auto;
}
a.button-style:hover {
background: #5388b6 url(http://1.bp.blogspot.com/_73i0fjAB_Hw/TUwO-CBRQ_I/AAAAAAAABP0/h5fkdD9XIoo/s000/button-style.png) center left repeat-x;
border-color: #1b5a8d;
color: #fff;
text-shadow: 0 1px 0 #0f4570;
}
p strong, li strong { color: #2E2E2E; }
.post-body {
margin: 15px 0 5px; font-size: 14px; line-height: 20px; font-family:"Trebuchet MS" sans-serif;
}
.post-body p, .post-body ol, .post-body ul, .post-body dl { margin: 0 0 9px; color: #222;/*#4D4D4D;*/ }
.post-body blockquote p { margin: 0; }
.post-body ol { margin-left: 0.75em; padding-left: 12px; }
.post-body ul { margin-left: 0.5em; padding-left: 12px; }
.post-body ol li { list-style-type: decimal; }
.post-body ul li { list-style-type: disc; }
.post-body dl { }
.post-body dt { font-weight: bold; }
.post-body dd { background: transparent url(http://2.bp.blogspot.com/_73i0fjAB_Hw/TUwO-nx1nQI/AAAAAAAABP4/io58PyXl1CY/s000/dl-arrow.gif) 0 4px no-repeat; padding: 0 0 4px 1em; }
.post-body img {
max-width: 576px;
/* smooth image resizement in IE7+ */
-ms-interpolation-mode: bicubic;
}
/*- Inserted by Ravi --*/
.post-body h3 {
border-bottom: solid #f2eee6 2px;
}
.post-body h4 {
color: #0033CC;
}
.post-footer { border-bottom: 1px dotted #ddd; border-top: 1px dotted #D5D5D5; color: #999; font-size: 12px; margin-top: 20px; padding: 7px 2px; }
.post-footer a { color: #666; padding: 2px 4px; }
.post-footer a:hover { background-color: #efefef; }
#blog-pager {
border-bottom: 1px solid #E6F0F2; text-shadow: 0 1px 0 #fff;
}
#blog-pager {
background-color: #E6F0F2;
border-top: 1px solid #fff;
font-size: 11px;
height: auto;
line-height: 28px;
overflow: hidden;
padding: 0 28px;
}
.blog-pager-older-link {
}
.blog-pager-newer-link {
}
/*-- (Lateral) --*/
#sidebar-wrapper {
background-color: #fff; border-left: 3px solid #D5DADD; float: right; margin-left: -3px; padding: 15px 20px 15px 10px; width: 320px;
}
div.sb-list { margin-left: 10px; }
.sb-list div { border-bottom: 1px dotted #ddd; margin: 9px 0; padding: 0 8px 9px; }
.sb-tools li { display: block; min-height: 34px; }
.sb-tools a span {
color: #86180A;
display: block;
font-size: 12px;
padding-bottom: 3px;
text-transform: uppercase;
}
.sb-tools a:hover span { color: #C54E0B; }
#twitter_update_list li, .rss-icon {
padding-left: 65px;
color: #111;
display: block;
line-height: 1.25em;
}
#twitter_update_list li { background: transparent url(http://3.bp.blogspot.com/_73i0fjAB_Hw/TUwO-0FqKoI/AAAAAAAABP8/V6fK8imxwKM/s000/twitter_48.png) top left no-repeat; }
.rss-icon { background: transparent url(http://1.bp.blogspot.com/_73i0fjAB_Hw/TUwO-wLh6UI/AAAAAAAABQA/C7upJv3DXI0/s000/rss-icon.png) center left no-repeat; }
.sb-icon-text { padding: 3px 0 0 65px; }
#sidebar-wrapper ul{
}
#sidebar-wrapper a {
color:#C54E0B !important;
}
#sidebar-wrapper h2 {
color: #434343;
font-size: 14px;
padding-bottom: 1px;
text-transform: capitalize;
border-bottom:1px solid grey; /*-- Edited by Ravi --*/
}
#sidebar1 {
float:left;
width: 150px;
}
#sidebar2 {
float:right;
width: 150px;
}
.sidebar .widget {
border-bottom: 1px dotted #ddd; margin: 0 0 8px; padding: 0 8px 9px;
overflow: hidden;
}
/*-- (Pie de pagina) --*/
#footer-wrapper {
padding: 10px 28px; width: 929px;
}
#footer-wrapper .links {
}
#footer-wrapper a {
}
/*-- (Comentarios) --*/
#comments h4 {
border-bottom: 1px solid #E6F0F2; text-shadow: 0 1px 0 #fff;
margin: 0 0 5px; font-size: 34px;
background-color: #F4F8F9; border-top: 1px solid #E6F0F2; padding: 6px 28px;
}
#comments dl {
background-color: #f9fbfc;
border: 28px solid #f9fbfc;
border-top: 0 none;
font-size: 11px;
}
.comment {
background: transparent url(http://3.bp.blogspot.com/_73i0fjAB_Hw/TUwO_HisqpI/AAAAAAAABQE/oxeJN2Wcc7I/s000/bg-comment.png) 10px 19px no-repeat;
border-top: 28px solid #f9fbfc;
border-left: 40px solid #f9fbfc;
list-style:none;
}
.comment-body {
background-color: #f4f8f9;
color: #3e5867;
margin-left: 20px;
padding:17px 20px 11px;
position: relative;
}
.comment-author {
background:none !important;
padding:0 !important;
}
.comment-author cite, .comment-author cite a { font-style: normal; font-size: 12px; }
.comment-author cite {
background-color:#F9FBFC;
border-bottom:1px dotted #E6F0F2;
color:#666666;
display:block;
font-family:Georgia,serif;
font-style:italic;
line-height:16px;
margin:0 -7px 20px;
padding:3px 7px;
}
.comment-timestamp {
font-family:Georgia,serif;
font-size:11px;
font-style:italic;
position:absolute;
right:25px;
top:20px;
}
.comment-body img.avatar {
border: 1px solid #eee;
padding: 2px;
position: absolute;
left: -60px;
}
.comment-body p,
.comment-body blockquote { padding: 0 0 7px; }
.comment-body blockquote p,
.comment-body blockquote blockquote,
.comment-body blockquote blockquote p { margin: 5px; padding: 7px; }
.comment-form {
max-width:100% !important;
background-color: #F4F8F9;
margin-top: 1px;
overflow: hidden;
padding: 18px 28px;
}
.comment-form p {
}
h4.comment-post-message {
margin:18px 0 5px 28px;
font-size:18px;
line-height:1.3;
text-align:left !important;
border:0 !important;
}
p.comment-footer {
text-align:center;
}
dd.comment-footer, dd.comment-body {
margin:0;
}
html .clearfix { display: block; }
* html .clearfix { height: 1%; }
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
body#layout #content-wrapper {
margin: 0px;
}
body#layout #footer-wrapper p.links, body#layout #menu, body#layout #search, .feed-links {
display:none;
}
/* styling Div as tables */
.div-table{display:table; border:0px solid #003399;}
.div-table-caption{display:table-caption; background:#009999;}
.div-table-row{display:table-row;}
.div-table-col{display:table-cell; padding: 3px; border: 0px solid #003399; text-align:center;}
--></style>
<!-- Google Analytics Code Start -->
<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-285699-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Google Analytics Code End -->
<!-- Histats.com START (aync)-->
<script type='text/javascript'>var _Hasync= _Hasync|| [];
_Hasync.push(['Histats.start', '1,1879844,4,511,95,18,00000000']);
_Hasync.push(['Histats.fasi', '1']);
_Hasync.push(['Histats.track_hits', '']);
(function() {
var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
hs.src = ('http://s10.histats.com/js15_as.js');
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
})();</script>
<!-- Histats.com END -->
<script type="text/javascript">var a="indexOf",b="&m=1",e="(^|&)m=",f="?",g="?m=1";function h(){var c=window.location.href,d=c.split(f);switch(d.length){case 1:return c+g;case 2:return 0<=d[1].search(e)?null:c+b;default:return null}}var k=navigator.userAgent;if(-1!=k[a]("Mobile")&&-1!=k[a]("WebKit")&&-1==k[a]("iPad")||-1!=k[a]("Opera Mini")||-1!=k[a]("IEMobile")){var l=h();l&&window.location.replace(l)};
</script><script type="text/javascript">
if (window.jstiming) window.jstiming.load.tick('headEnd');
</script></head>
<body>
<div class='navbar section' id='navbar'><div class='widget Navbar' id='Navbar1'><script type="text/javascript">
function setAttributeOnload(object, attribute, val) {
if(window.addEventListener) {
window.addEventListener('load',
function(){ object[attribute] = val; }, false);
} else {
window.attachEvent('onload', function(){ object[attribute] = val; });
}
}
</script>
<div id="navbar-iframe-container"></div>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script type="text/javascript">
gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() {
if (gapi.iframes && gapi.iframes.getContext) {
gapi.iframes.getContext().openChild({
url: 'https://www.blogger.com/navbar.g?targetBlogID\0757693232\46blogName\75All+about+Linux\46publishMode\75PUBLISH_MODE_HOSTED\46navbarType\75LIGHT\46layoutType\75LAYOUTS\46searchRoot\75http://www.aboutlinux.info/search\46blogLocale\75en\46v\0752\46homepageUrl\75http://www.aboutlinux.info/\46targetPostID\075113175782234538655\46blogPostOrPageUrl\75http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html\46vt\75-6126962210378145584',
where: document.getElementById("navbar-iframe-container"),
id: "navbar-iframe"
});
}
});
</script><script type="text/javascript">
(function() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = '//pagead2.googlesyndication.com/pagead/js/google_top_exp.js';
var head = document.getElementsByTagName('head')[0];
if (head) {
head.appendChild(script);
}})();
</script>
</div></div>
<div id='outer-wrapper'><div id='wrap2'>
<!-- links para navegadores de texto -->
<span id='skiplinks' style='display:none;'>
<a href='#main'>ir a principal </a> |
<a href='#sidebar'>Ir a lateral</a>
</span>
<!-- (Cabecera) -->
<div id='header-wrapper'>
<ul id='accessibility'>
<li><a href='http://www.twitter.com/aboutlinux' target='_blank' title='Follow Twitter'><img src='http://4.bp.blogspot.com/-7nfh-G7BykQ/T5tKFMU-1_I/AAAAAAAAAH4/QKcS2HQHNis/s1600/twitter.png'/></a></li>
<li><a href='http://www.facebook.com/aboutlinux' target='_blank' title='Facebook page'><img src='http://1.bp.blogspot.com/-ZGlwnGh_syQ/T5tKD1ucheI/AAAAAAAAAHI/vQ1ob8lD808/s1600/facebook.png'/></a></li>
<!-- <li><a expr:href='data:blog.homepageUrl + "feeds/posts/default"'><img src='http://3.bp.blogspot.com/-GV2Kk2U-qXk/T5tKEmXngBI/AAAAAAAAAHs/Un99_Gwm5bQ/s1600/rss.png'/></a></li> -->
<li class='last-item'><a href='http://feeds.feedburner.com/AllAboutLinux'><img alt='' height='26' src='http://feeds.feedburner.com/~fc/AllAboutLinux?bg=FF9900&fg=000000&anim=0' style='border:0' width='88'/></a></li>
</ul>
<div class='header section' id='header'><div class='widget Header' id='Header1'>
<div id='header-inner'>
<a href='http://www.aboutlinux.info/' style='display: block'>
<img alt='All about Linux' height='30px; ' id='Header1_headerimg' src='http://2.bp.blogspot.com/-KqZKakd5W1w/T0ifRkr5GAI/AAAAAAAAAFg/OBQQojXgpKE/s1600/aboutlinux.png' style='display: block' width='235px; '/>
</a>
</div>
</div></div>
<div class='clearfix' id='nav'>
<div id='nav-search'>
<!-- Edited by Ravi -->
<form action='http://www.aboutlinux.info/search/' method='get' role='search'>
<div><label class='screen-reader-text' for='s'>Search for:</label>
<input id='s' name='q' type='text' value=''/>
<input id='searchsubmit' type='submit' value='Search'/>
</div>
</form>
</div>
<!-- Pages-based menu added by BTemplates.com -->
<!-- Pages -->
<div class='section' id='pages'><div class='widget PageList' id='PageList1'>
<div>
<ul id='menu'>
<li class='page_item'><a href='http://www.aboutlinux.info/'>Home</a></li>
<li class='page_item'><a href='http://www.aboutlinux.info/p/contact.html'>Contact</a></li>
<li class='page_item'><a href='http://www.aboutlinux.info/p/books.html'>Books</a></li>
</ul>
<div class='clear'></div>
<span class='widget-item-control'>
<span class='item-control blog-admin'>
<a class='quickedit' href='//www.blogger.com/rearrange?blogID=7693232&widgetType=PageList&widgetId=PageList1&action=editWidget§ionId=pages' onclick='return _WidgetManager._PopupConfig(document.getElementById("PageList1"));' target='configPageList1' title='Edit'>
<img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>
</a>
</span>
</span>
<div class='clear'></div>
</div>
</div></div>
<!-- /Pages -->
<div id='submenu-bg'>
</div>
</div>
</div>
<!-- (Contenedor) -->
<div id='content-wrapper'>
<!-- (Principal) -->
<div id='main-wrapper'>
<div class='main section' id='main'><div class='widget Blog' id='Blog1'>
<div class='blog-posts hfeed'>
<!-- google_ad_section_start(name=default) -->
<div class='post hentry uncustomized-post-template'>
<a name='113175782234538655'></a>
<h1 class='post-title entry-title'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html'>How To Set File Attributes In Linux Using Chattr Command</a>
</h1>
<small class='post-header-line-1'>
<span class='alignleft'>
<span class='date-header'>November 13, 2005</span>
<span class='post-author vcard'>
Posted by
<span class='fn'>U.A</span>
</span>
<span class='post-timestamp'>
</span>
</span>
</small>
<div class='post-body entry-content'>
Chattr is a command used to set / unset file attributes in Linux. Using <code>chattr</code> it is possible to make a file immutable. That is, even a root user will be prohibited from deleting the file.<br />
<br />
The trick lies in setting the appropriate attribute for the file.<br />
<br />
<p class="note"><code>chattr</code> command is similar to the <code>attrib</code> command in DOS but much more powerful and flexible.</p><a name='more'></a><br />
To prevent anyone - even a root user - from deleting a file, you set the immutable bit of the file using the <code>chattr</code> command as follows - <br />
<br />
<pre># chattr +i filename</pre><br />
<p class="note">The immutable bit option <code>+i</code> can only be set by the root user. So either you should have root priviledges or you need to use sudo to execute the command.</p><br />
Once the <code>+i</code> bit is set, even root user won't be able to delete or tamper with the file.<br />
<br />
To unset the immutable flag -<br />
<br />
<pre># chattr -i filename</pre><br />
Every file in Linux have a number of attributes associated with it. The immutable bit attribute being just one of them. To see what all attributes are set for a particular file, you run the <code>lsattr</code> command as follows.<br />
<br />
<pre># lsattr filename
----i-------- filename</pre><br />
If the immutable flag is set, there will be an <code>i</code> in the listing. <br />
<br />
<p class="note">The <code>chattr</code> command is used by system administrators to restrict the users from changing a file in a particular way or even the administrator can by mistake delete a critical file because of a mis-typed command. But if the immutable flag is set, these mistakes can be avoided.</p><br />
<code>chattr</code> can be used to set/unset many more file attributes. <br />
<br />
For example, if you want to allow everybody to just append data to a file and not change already entered data, you can set the append bit as follows:<br />
<br />
<pre># chattr +a filename</pre><br />
Now the filename can only be opened in append mode for writing data. You can unset the append attribute as follows:<br />
<br />
<pre># chattr -a filename</pre><br />
To know more about <code>chattr</code> command, check its man page.
<div style='clear: both;'></div>
</div>
<div class='post-footer'>
<div class='post-footer-line post-footer-line-1'>
<span class='reaction-buttons'>
</span>
<span class='star-ratings'>
</span>
<span class='post-backlinks post-comment-link'>
</span>
<span class='post-icons'>
<span class='item-control blog-admin pid-2005403986'>
<a href='http://www.blogger.com/post-edit.g?blogID=7693232&postID=113175782234538655&from=pencil' title='Edit Post'>
<img alt='' class='icon-action' height='18' src='http://img2.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/>
</a>
</span>
</span>
</div>
<div class='post-footer-line post-footer-line-2'>
<span class='post-labels'>
Labels:
<a href='http://www.aboutlinux.info/search/label/commands' rel='tag'>commands</a>,
<a href='http://www.aboutlinux.info/search/label/linux' rel='tag'>linux</a>
</span><br/>
</div>
<div class='post-footer-line post-footer-line-3'>
<span class='post-location'>
</span>
</div>
</div>
</div>
<div class='comments' id='comments'>
<a name='comments'></a>
<h4>
25
comments:
</h4>
<dl class='avatar-comment-indent' id='comments-block'>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113190289273965656'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113190289273965656'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131902880000#c113190289273965656' title='comment permalink'>
11/13/2005 10:58:00 PM
</a>
<span class='item-control blog-admin pid-533845670'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113190289273965656' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>of course remember this only works with ext2/3</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113190706589107075'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113190706589107075'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131907020000#c113190706589107075' title='comment permalink'>
11/14/2005 12:07:00 AM
</a>
<span class='item-control blog-admin pid-1972156979'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113190706589107075' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Can't root just change the sysimmu flag?</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113190778359302619'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113190778359302619'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131907740000#c113190778359302619' title='comment permalink'>
11/14/2005 12:19:00 AM
</a>
<span class='item-control blog-admin pid-154365751'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113190778359302619' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Yep, but most scriptkiddies won't even know about chattr/lsattr :)</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113191037897313621'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113191037897313621'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131910320000#c113191037897313621' title='comment permalink'>
11/14/2005 01:02:00 AM
</a>
<span class='item-control blog-admin pid-236204946'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113191037897313621' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Which is exactly why so many root-kits include tools that set the immutable bit.<BR/><BR/>Idea is to make it so the system owner, root, can't un-kit his box.<BR/><BR/>Seems to me the kiddies are more aware of this than most operators are.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113191556364142027'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113191556364142027'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131915540000#c113191556364142027' title='comment permalink'>
11/14/2005 02:29:00 AM
</a>
<span class='item-control blog-admin pid-1816874036'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113191556364142027' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Under FreeBSD you use the following to make a file immutable:<BR/><BR/> chflags schg file.name<BR/><BR/>And to make things normal (make the file mutable again):<BR/><BR/> chflags noschg file.name<BR/><BR/>Of course if you're running your system multi-user at a secure level where root can change flags at will, it really doesn't buy you anything more than accidental deletion prevention.<BR/><BR/>To be secure with FreeBSD, once you've set all the flags how you want 'em, you'll want your system to run at securelevel 1 or higher, which prevents the flags from being changed.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113191727711880641'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113191727711880641'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131917220000#c113191727711880641' title='comment permalink'>
11/14/2005 02:57:00 AM
</a>
<span class='item-control blog-admin pid-2019143326'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113191727711880641' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>you can still bypass the restriction by mounting another filesystem over the top<BR/><BR/>http://www.networkpenetration.com/layer.html</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113192194302021081'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113192194302021081'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><a href="http://www.apreche.net" rel="nofollow" onclick=""><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Apreche">
</a></span></div>
</div>
<cite><a href='http://www.apreche.net' rel='nofollow'>Apreche</a></cite>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131921900000#c113192194302021081' title='comment permalink'>
11/14/2005 04:15:00 AM
</a>
<span class='item-control blog-admin pid-1413752762'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113192194302021081' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Wow, I'm surprised there is something about *nix I didn't know. You learn something every day. But I probably only didn't know about it because I use reiserfs and xfs. Oh well. I guess I'm save from the kiddies then.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113192523067522482'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113192523067522482'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="w7">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131925200000#c113192523067522482' title='comment permalink'>
11/14/2005 05:10:00 AM
</a>
<span class='item-control blog-admin pid-864639793'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113192523067522482' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>correct me if i am wrong, but wouldn't something like just blow this into nowhere?<BR/><BR/><BR/>for file in *<BR/>do<BR/> chattr -i $file<BR/>done</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113192920331962586'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113192920331962586'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131929160000#c113192920331962586' title='comment permalink'>
11/14/2005 06:16:00 AM
</a>
<span class='item-control blog-admin pid-352823410'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113192920331962586' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>w7: ooooh you're smart.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113193791806125039'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113193791806125039'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131937860000#c113193791806125039' title='comment permalink'>
11/14/2005 08:41:00 AM
</a>
<span class='item-control blog-admin pid-209650383'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113193791806125039' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>...or perhaps just chattr -R -i *</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113194097752639736'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113194097752639736'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><a href="http://www.blogger.com/profile/17137296207331662047" rel="nofollow" onclick="" class="avatar-hovercard" id="av-10-17137296207331662047"><img src="http://img2.blogblog.com/img/b16-rounded.gif" width="16" height="16" alt="" title="trungson">
</a></span></div>
</div>
<cite><a href='http://www.blogger.com/profile/17137296207331662047' rel='nofollow'>trungson</a></cite>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131940920000#c113194097752639736' title='comment permalink'>
11/14/2005 09:32:00 AM
</a>
<span class='item-control blog-admin pid-1517445668'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113194097752639736' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>As this command become widely known, it's less of an immutable solution.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113194297997119085'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113194297997119085'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><a href="http://blog.art-app.com" rel="nofollow" onclick=""><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="miscblogger">
</a></span></div>
</div>
<cite><a href='http://blog.art-app.com' rel='nofollow'>miscblogger</a></cite>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131942960000#c113194297997119085' title='comment permalink'>
11/14/2005 10:06:00 AM
</a>
<span class='item-control blog-admin pid-1137013335'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113194297997119085' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>this is so cool! does anyone know if there is there a way to do that for windows?</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113197673772381840'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113197673772381840'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1131976680000#c113197673772381840' title='comment permalink'>
11/14/2005 07:28:00 PM
</a>
<span class='item-control blog-admin pid-1511692851'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113197673772381840' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>miscblogger: lol<BR/>I think all you've got on MSFSs is the Read-Only attrib.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113209458625324320'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113209458625324320'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1132094580000#c113209458625324320' title='comment permalink'>
11/16/2005 04:13:00 AM
</a>
<span class='item-control blog-admin pid-253283012'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113209458625324320' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Perhaps someone very smart could write something similar to chattr which demands a password before the change could be made. I'm sure it would involve just a few changes to the kernel file system code and modifying the chattr and lsattr commands ;o)<BR/><BR/>Perhaps a module for Reiser4 could do it nicely? Something at the file system level which would password protect any files system objects and their attributes.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113217569903274405'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113217569903274405'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1132175640000#c113217569903274405' title='comment permalink'>
11/17/2005 02:44:00 AM
</a>
<span class='item-control blog-admin pid-1624148861'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113217569903274405' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Of course if /bin /boot and /etc are on an el torito bootable CD created on the bench system for the server...</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113227490815803955'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113227490815803955'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1132274880000#c113227490815803955' title='comment permalink'>
11/18/2005 06:18:00 AM
</a>
<span class='item-control blog-admin pid-1927744301'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113227490815803955' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>immutable isn't the only flag you can use, you can set append only, for instance on a log file so that if the service doing the logging gets compromised it can't erase log entries.<BR/><BR/>the whole thing is much more useful in freebsd and such things as it has security levels, in which nobody, even root, can change these flags. additional steps can be taken to ensure that an administrator must have physical access or authenticate in some other way to change security levels.<BR/><BR/>on top of that, not all filesystems support these flags, most notably, no version of reiserfs supports them.<BR/>these attributes also have many more uses, but they don't really make sense most of the time. the things just aren't very useful on linux. other unix based operating systems found better uses for such things, but on linux you'll mostly have to use other means to secure your system.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113227527503438400'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113227527503438400'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1132275240000#c113227527503438400' title='comment permalink'>
11/18/2005 06:24:00 AM
</a>
<span class='item-control blog-admin pid-37102000'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113227527503438400' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>You wanna make the immutable bit un-changeable? Look up a little tool called 'lcap'. You may wall have to install it, my FC4 boxen don't seem to include it.<BR/><BR/>Here's a script I used back when to 'lock down' my boxen. It was more of a pain in the ass in the long run and there are other, more manageable methods to achieve similar goals:<BR/><BR/>#!/bin/bash<BR/># Files with i bit set can't be altered - even by root.<BR/>#<BR/>chattr -R +i /bin /boot /etc /lib /sbin /usr/bin /usr/include /usr/lib /usr/sbin /root/fw<BR/># chattr +a /var/log/mysqld.*.* /var/log/boot*.* /var/log/cron*.* /var/log/messages*.* /var/log/secure*.*<BR/>#<BR/># This following will make it so not even root can change the i bits.<BR/># Once set - this can not be undone without re-booting!!<BR/>#<BR/># You *must* reboot the system from the console to restore<BR/># the capability to use chattr to place and remove a or i bits.<BR/>#<BR/>lcap CAP_LINUX_IMMUTABLE<BR/>#<BR/># The following will prevent raw I/O access to change a or i bits, but<BR/># will break a few things - not suggested.<BR/>#<BR/># lcap CAP_SYS_RAWIO<BR/>#<BR/>echo "Done - system lock down complete"<BR/><BR/>Some background:<BR/>http://lists.debian.org/debian-security/2003/03/msg00283.html<BR/>http://shearer.org/en/tipsandcomments/capabilities.html<BR/><BR/>If you use that 2nd lcap line - it will prevent raw I/O operations from changing the a or i bits. But, it'll also make such things - like X - inoperable.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113247203883080280'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113247203883080280'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><a href="http://www.blogger.com/profile/05163218597315357680" rel="nofollow" onclick="" class="avatar-hovercard" id="av-17-05163218597315357680"><img src="http://img2.blogblog.com/img/b16-rounded.gif" width="16" height="16" alt="" title="Mysidia">
</a></span></div>
</div>
<cite><a href='http://www.blogger.com/profile/05163218597315357680' rel='nofollow'>Mysidia</a></cite>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1132471980000#c113247203883080280' title='comment permalink'>
11/20/2005 01:03:00 PM
</a>
<span class='item-control blog-admin pid-1535478140'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113247203883080280' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>What do you mean make your files immutable, even to root?<BR/><BR/>You do realize, root can about blow away the whole filesystem with a simple dd if=/dev/zero of=/de.../hda1, for instance, or by mucking with the partition tables.<BR/><BR/><BR/>Sure, chattr can save an important file from a typo and has marginal uses for restricting non-roots from erasing certain things, even if they own them, but if you know about chattr, there are much simpler methods of avoiding the accidental deletion, and chattr is generally more annoying than useful.<BR/><BR/>As a security measure, I call it, a false sense of security.<BR/><BR/>At least until you set securelevel to 2, disable all changing of the flags, mounting/unmounting filesystems, or opening system devices for write access, while in multiuser mode</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113373085366337983'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113373085366337983'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1133730840000#c113373085366337983' title='comment permalink'>
12/05/2005 02:44:00 AM
</a>
<span class='item-control blog-admin pid-198023765'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113373085366337983' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Good information, I have a few more useful commands on my blog. You can few them at <A HREF="http://www.atlas-tuesday.com/log-file-unix-commands" REL="nofollow"> Atlas-Tuesday - Log File Unix Commands</A><BR/><BR/>Linux is a fantastic OS for managing files.</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113819966374719040'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113819966374719040'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1138199640000#c113819966374719040' title='comment permalink'>
1/25/2006 08:04:00 PM
</a>
<span class='item-control blog-admin pid-1590179191'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113819966374719040' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>GOOD INFO</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c113841745505901846'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c113841745505901846'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1138417440000#c113841745505901846' title='comment permalink'>
1/28/2006 08:34:00 AM
</a>
<span class='item-control blog-admin pid-336548892'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=113841745505901846' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>Immutable files work on XFS. I am using Ubuntu Breezy.<BR/>code<BR/>touch test<BR/>sudo chattr +i test<BR/>sudo rm test<BR/>rm: remove write-protected regular empty file `test'? y<BR/>rm: cannot remove `test': Operation not permitted</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c114641502673552241'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c114641502673552241'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1146415020000#c114641502673552241' title='comment permalink'>
4/30/2006 10:07:00 PM
</a>
<span class='item-control blog-admin pid-1899171806'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=114641502673552241' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>If you want to stop someone from shutting the immutable flag off after being set you can download the LCAP package. LCAP lets you change kernel options and makes it very easy for you to shut off immutable. This will stop anyone from being able to set the immutable flag at all. However, anything set will remain set. Once you turn off immutable it can't be turned back on until you reboot. So I suggest creating a script and setting it load on any runlevel with networking support enabled. Now any files tagged immutable can't be deleted by anything anymore! I would also set the immutable tag on the script as well so a user can't modify it unless they're in single user mode. I would also suggest turning the append only flag on for your log files. Then turning off the kernel option for append-only as well. This way your logs can have data added to them but they can't be modified. This makes it impossible for an attacker to remove their tracks. Check out Hardening Linux. This trick and others are available in it. This gives you a system similar to BSD secure levels (just not as good).</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c115155019399010682'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c115155019399010682'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1151550180000#c115155019399010682' title='comment permalink'>
6/29/2006 08:33:00 AM
</a>
<span class='item-control blog-admin pid-1517963925'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=115155019399010682' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>FYI. The MSWin equivlant is the "attrib" command I believe :)</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c3665243857434475075'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c3665243857434475075'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="celil ünüver">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1185573540000#c3665243857434475075' title='comment permalink'>
7/28/2007 03:29:00 AM
</a>
<span class='item-control blog-admin pid-706329066'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=3665243857434475075' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>We can do that with "chflags" in FreeBSD..<BR/>But how can we do that in SunOS??<BR/>thanks..</p>
</dd>
</div></li>
<li class='comment'>
<div class='comment-body'>
<dt class='comment-author ' id='c1454545166438173086'>
<img alt='' class='avatar avatar-32 photo' height='32' src='http://4.bp.blogspot.com/_73i0fjAB_Hw/TUwO_QVCzZI/AAAAAAAABQI/kxC1WyQnGHM/s000/avatar.png' width='32'/>
<a name='c1454545166438173086'></a>
<div class=''>
<div class="avatar-image-container avatar-stock"><span dir="ltr"><img src="http://img1.blogblog.com/img/blank.gif" width="16" height="16" alt="" title="Anonymous">
</span></div>
</div>
</dt>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a href='http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html?showComment=1209114540000#c1454545166438173086' title='comment permalink'>
4/25/2008 02:39:00 PM
</a>
<span class='item-control blog-admin pid-1538012016'>
<a class='comment-delete' href='http://www.blogger.com/delete-comment.g?blogID=7693232&postID=1454545166438173086' title='Delete Comment'>
<img src='//www.blogger.com/img/icon_delete13.gif'/>
</a>
</span>
</span>
</dd>
<dd class='comment-body-in'>
<p>People are right here, it only prevents accidental deletion. But it also stops some well-known vpn client used at unis and larger companies to overwrite profiles and thus allows to store passwords in those files. To be safe, just mount an encrypted partition, so you only have to enter the password once</p>
</dd>
</div></li>
</dl>
<p class='comment-footer'>
<a href='http://www.blogger.com/comment.g?blogID=7693232&postID=113175782234538655&isPopup=true' onclick='javascript:window.open(this.href, "bloggerPopup", "toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=640,height=500"); return false;'>Post a Comment</a>
</p>
<div id='backlinks-container'>
<div id='Blog1_backlinks-container'>
</div>
</div>
</div>
<!-- google_ad_section_end -->
</div>
<div class='blog-pager' id='blog-pager'>
<span id='blog-pager-newer-link'>
<a class='blog-pager-newer-link' href='http://www.aboutlinux.info/2005/11/integrating-mac-linux-and-windows.html' id='Blog1_blog-pager-newer-link' title='Newer Post'>Newer Post</a>
</span>
<span id='blog-pager-older-link'>
<a class='blog-pager-older-link' href='http://www.aboutlinux.info/2005/11/adding-swap-file-to-your-linux-system.html' id='Blog1_blog-pager-older-link' title='Older Post'>Older Post</a>
</span>
<a class='home-link' href='http://www.aboutlinux.info/'>Home</a>
</div>
<div class='clear'></div>
<div class='post-feeds'>
</div>
</div><div class='widget HTML' id='HTML1'>
<div class='widget-content'>
<!-- Rupee Symbol start -->
<script src="http://cdn.webrupee.com/js" type="text/javascript"></script>
<!-- Rupee Symbol end -->
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<script language="JavaScript" type="text/javascript">var site="sm9ravi2005"</script>
<script language="JavaScript1.2" src="http://sm9.sitemeter.com/js/counter.js?site=sm9ravi2005" type="text/javascript">
</script>
<noscript>
<a href="http://sm9.sitemeter.com/stats.asp?site=sm9ravi2005" target="_top">
<img border="0" alt="Site Meter" src="http://sm9.sitemeter.com/meter.asp?site=sm9ravi2005" /></a>
</noscript>
<!-- Copyright (c)2005 Site Meter -->
<!--WEBBOT bot="HTMLMarkup" Endspan -->
<!-- facebook javascript code -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=148728281851";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- G plus one button javascript code -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- Hitstats.com part code start -->
<!-- rest is in head -->
<noscript><a href="http://www.histats.com" target="_blank"><img src="http://sstatic1.histats.com/0.gif?1879844&101" alt="free counter statistics" border="0" /></a></noscript>
<!-- Hitstats.com part code end -->
</div>
<div class='clear'></div>
<span class='widget-item-control'>
<span class='item-control blog-admin'>
<a class='quickedit' href='//www.blogger.com/rearrange?blogID=7693232&widgetType=HTML&widgetId=HTML1&action=editWidget§ionId=main' onclick='return _WidgetManager._PopupConfig(document.getElementById("HTML1"));' target='configHTML1' title='Edit'>
<img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>
</a>
</span>
</span>
<div class='clear'></div>
</div><div class='widget HTML' id='HTML2'>
<script type='text/javascript'>
var disqus_shortname = 'allaboutlinux';
var disqus_blogger_current_url = "http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html";
if (!disqus_blogger_current_url.length) {
disqus_blogger_current_url = "http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html";
}
var disqus_blogger_homepage_url = "http://www.aboutlinux.info/";
var disqus_blogger_canonical_homepage_url = "http://www.aboutlinux.info/";
</script>
<style type='text/css'>
#comments {display:none;}
</style>
<script type='text/javascript'>
(function() {
var bloggerjs = document.createElement('script');
bloggerjs.type = 'text/javascript';
bloggerjs.async = true;
bloggerjs.src = 'http://'+disqus_shortname+'.disqus.com/blogger_item.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(bloggerjs);
})();
</script>
<style type='text/css'>
.post-comment-link { visibility: hidden; }
</style>
<script type='text/javascript'>
(function() {
var bloggerjs = document.createElement('script');
bloggerjs.type = 'text/javascript';
bloggerjs.async = true;
bloggerjs.src = 'http://'+disqus_shortname+'.disqus.com/blogger_index.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(bloggerjs);
})();
</script>
</div></div>
</div>
<!-- (Lateral) -->
<div id='sidebar-wrapper'>
<!-- Edited by Ravi -->
<!-- Removed the twitter and RSS div blocks -->
<div class='sidebar section' id='sidebar0'><div class='widget HTML' id='HTML3'>
<div class='widget-content'>
<div class="fb-like-box" data-href="http://www.facebook.com/aboutlinux" data-width="292" data-show-faces="true" data-stream="false" data-header="false"></div>
</div>
<div class='clear'></div>
<span class='widget-item-control'>
<span class='item-control blog-admin'>
<a class='quickedit' href='//www.blogger.com/rearrange?blogID=7693232&widgetType=HTML&widgetId=HTML3&action=editWidget§ionId=sidebar0' onclick='return _WidgetManager._PopupConfig(document.getElementById("HTML3"));' target='configHTML3' title='Edit'>
<img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>
</a>
</span>
</span>
<div class='clear'></div>
</div></div>
<div class='sidebar section' id='sidebar1'></div>
<div class='sidebar section' id='sidebar2'></div>
</div>
<!-- Limpiar flotacion-->
<div class='clear'></div>
</div>
<!-- fin de capa content-wrapper -->
<!-- (Pie de pagina) -->
<div id='footer-wrapper'>
<!-- Este es un incentivo al trabajo en disenar y adaptar esta plantilla, llega a ti de forma muy facil y sin costo, tampoco cuesta nada dejes los link, gracias y que te sea util! This is an incentive to work in design and adapt this template, comes to you in a very easy and without cost, not cost anything let the link, thank you and this work is useful. Dies ist ein Anreiz zur Arbeit in Design und Anpassung dieser Vorlage, kommt zu Ihnen in einem sehr einfach und ohne Kosten, nichts kosten lassen Sie den Link, ich danke Ihnen, und diese Arbeit sinnvoll ist. -->
<p class='alignright'>
<a class='top-link' href='#header-wrapper'>Back to Top</a>
</p>
<p>
© 2009 <a href='http://www.aboutlinux.info/' style='text-decoration: none;'>All about Linux</a> · Proudly powered by <a href='http://blogger.com/' title='Blogsoftware by Blogger'>Blogger</a>
<span class='amp'>&</span>
Green Park 2
by <a href='http://cordobo.com/' title='Webdesign by Cordobo'>Cordobo</a>.
</p>
<p class='signet'>
Blogger Templates by <a href='http://btemplates.com'>BTemplates</a>
<br/><br/>
<img alt='Cordobo Green Park 2 logo' height='12' src='http://1.bp.blogspot.com/_73i0fjAB_Hw/TUwO_sD6X2I/AAAAAAAABQM/cmkdsBYCPqI/s000/logo-cgp2.png' title='Cordobo Green Park 2' width='75'/>
</p>
</div>
</div></div>
<!-- fin de capa outer-wrapper -->
<script type="text/javascript">
if (window.jstiming) window.jstiming.load.tick('widgetJsBefore');
</script><script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/3220738932-widgets.js"></script>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script type='text/javascript'>
if (typeof(BLOG_attachCsiOnload) != 'undefined' && BLOG_attachCsiOnload != null) { window['blogger_templates_experiment_id'] = "templatesV1";window['blogger_blog_id'] = '7693232';BLOG_attachCsiOnload('item_'); }_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d7693232','//www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html','7693232');
_WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '7693232', 'bloggerUrl': 'http://www.blogger.com', 'title': 'All about Linux', 'pageType': 'item', 'postId': '113175782234538655', 'url': 'http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html', 'canonicalUrl': 'http://www.aboutlinux.info/2005/11/make-your-files-immutable-which-even.html', 'canonicalHomepageUrl': 'http://www.aboutlinux.info/', 'homepageUrl': 'http://www.aboutlinux.info/', 'blogspotFaviconUrl': 'http://www.aboutlinux.info/favicon.ico', 'enabledCommentProfileImages': true, 'adultContent': false, 'disableAdSenseWidget': false, 'analyticsAccountNumber': '', 'searchLabel': '', 'searchQuery': '', 'pageName': 'How To Set File Attributes In Linux Using Chattr Command', 'pageTitle': 'All about Linux: How To Set File Attributes In Linux Using Chattr Command', 'encoding': 'UTF-8', 'locale': 'en', 'localeUnderscoreDelimited': 'en', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'languageDirection': 'ltr', 'feedLinks': '\n', 'meTag': '', 'openIdOpTag': '', 'latencyHeadScript': '\74script type\75\42text/javascript\42\76(function() { var b\75window,f\75\42chrome\42,g\75\42tick\42,k\75\42jstiming\42;(function(){function d(a){this.t\75{};this.tick\75function(a,d,c){var e\75void 0!\75c?c:(new Date).getTime();this.t[a]\75[e,d];if(void 0\75\75c)try{b.console.timeStamp(\42CSI/\42+a)}catch(h){}};this[g](\42start\42,null,a)}var a;b.performance\46\46(a\75b.performance.timing);var n\75a?new d(a.responseStart):new d;b.jstiming\75{Timer:d,load:n};if(a){var c\75a.navigationStart,h\75a.responseStart;0\74c\46\46h\76\75c\46\46(b[k].srt\75h-c)}if(a){var e\75b[k].load;0\74c\46\46h\76\75c\46\46(e[g](\42_wtsrt\42,void 0,c),e[g](\42wtsrt_\42,\42_wtsrt\42,h),e[g](\42tbsd_\42,\42wtsrt_\42))}try{a\75null,\nb[f]\46\46b[f].csi\46\46(a\75Math.floor(b[f].csi().pageT),e\46\0460\74c\46\46(e[g](\42_tbnd\42,void 0,b[f].csi().startE),e[g](\42tbnd_\42,\42_tbnd\42,c))),null\75\75a\46\46b.gtbExternal\46\46(a\75b.gtbExternal.pageT()),null\75\75a\46\46b.external\46\46(a\75b.external.pageT,e\46\0460\74c\46\46(e[g](\42_tbnd\42,void 0,b.external.startE),e[g](\42tbnd_\42,\42_tbnd\42,c))),a\46\46(b[k].pt\75a)}catch(p){}})();b.tickAboveFold\75function(d){var a\0750;if(d.offsetParent){do a+\75d.offsetTop;while(d\75d.offsetParent)}d\75a;750\76\75d\46\46b[k].load[g](\42aft\42)};var l\75!1;function m(){l||(l\75!0,b[k].load[g](\42firstScrollTime\42))}b.addEventListener?b.addEventListener(\42scroll\42,m,!1):b.attachEvent(\42onscroll\42,m);\n })();\74/script\076', 'mobileHeadScript': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/76f25a6f2e06af76', 'plusOneApiSrc': 'https://apis.google.com/js/plusone.js', 'sf': 'n', 'tf': ''}}, {'name': 'skin', 'data': {'vars': {'colortituloslateral': '#434343', 'colortituloentrada': '#000000', 'enlacecolor': '#004D99', 'colorenlaceencima': '#86180A', 'descripcioncolor': '#868F98', 'colortituloblog': '#000000', 'dateHeaderColor': '#3E5867', 'textocolor': '#4D4D4D', 'colorbordes': '#FFFFFF', 'colortextolateral': '#C54E0B'}, 'override': ''}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\75classic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\75flipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\75magazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\75mosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\75sidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\75snapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\75timeslide'}}}]);
_WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', null, document.getElementById('Navbar1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', null, document.getElementById('Header1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_PageListView', new _WidgetInfo('PageList1', 'pages', null, document.getElementById('PageList1'), {'title': 'Pages', 'links': [{'href': 'http://www.aboutlinux.info/', 'title': 'Home', 'isCurrentPage': false}, {'href': 'http://www.aboutlinux.info/p/contact.html', 'title': 'Contact', 'isCurrentPage': false, 'id': '411622326142558097'}, {'href': 'http://www.aboutlinux.info/p/books.html', 'title': 'Books', 'isCurrentPage': false, 'id': '4846065966448906769'}], 'mobile': false}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', null, document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/3614965883-lbx.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/2392111094-lightbox_bundle.css'}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'main', null, document.getElementById('HTML1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML2', 'main', null, document.getElementById('HTML2'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML3', 'sidebar0', null, document.getElementById('HTML3'), {}, 'displayModeFull'));
</script>
</body>
</html>