What is the difference between chmod and chattr?


up vote
0
down vote
favorite
Solaris operating system does not have chattr
, it uses chmod
instead. Also on Windows. Because when you're changing attributes of a file you're changing what you or other users can do with it, thus the meaning of chmod
.
So do we really need chattr
? and how is it different to chmod
?
chmod
add a comment |Â
up vote
0
down vote
favorite
Solaris operating system does not have chattr
, it uses chmod
instead. Also on Windows. Because when you're changing attributes of a file you're changing what you or other users can do with it, thus the meaning of chmod
.
So do we really need chattr
? and how is it different to chmod
?
chmod
1
"Solaris operating system does not have chattr, it uses chmod instead. Also on Windows." Not our problem ;)chattr
is more powerful thanchmod
: chmod does not always have a method to set "immutable".
â Rinzwind
Feb 16 at 10:36
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Solaris operating system does not have chattr
, it uses chmod
instead. Also on Windows. Because when you're changing attributes of a file you're changing what you or other users can do with it, thus the meaning of chmod
.
So do we really need chattr
? and how is it different to chmod
?
chmod
Solaris operating system does not have chattr
, it uses chmod
instead. Also on Windows. Because when you're changing attributes of a file you're changing what you or other users can do with it, thus the meaning of chmod
.
So do we really need chattr
? and how is it different to chmod
?
chmod
chmod
asked Feb 16 at 10:28
Shayan
195315
195315
1
"Solaris operating system does not have chattr, it uses chmod instead. Also on Windows." Not our problem ;)chattr
is more powerful thanchmod
: chmod does not always have a method to set "immutable".
â Rinzwind
Feb 16 at 10:36
add a comment |Â
1
"Solaris operating system does not have chattr, it uses chmod instead. Also on Windows." Not our problem ;)chattr
is more powerful thanchmod
: chmod does not always have a method to set "immutable".
â Rinzwind
Feb 16 at 10:36
1
1
"Solaris operating system does not have chattr, it uses chmod instead. Also on Windows." Not our problem ;)
chattr
is more powerful than chmod
: chmod does not always have a method to set "immutable".â Rinzwind
Feb 16 at 10:36
"Solaris operating system does not have chattr, it uses chmod instead. Also on Windows." Not our problem ;)
chattr
is more powerful than chmod
: chmod does not always have a method to set "immutable".â Rinzwind
Feb 16 at 10:36
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
chmod
reefers to file permissions for users, groups and others:
read
write
execute
chattr
reefers to attributes regardless users or groups, some of the attributes are:
a --> Append only
i --> Inmutable
c --> File automatically compressed in kernel.
Take a look at wikipedia for chattr.
chmod
with-w
is for removing write permissions
â Alvaro Niño
Feb 16 at 10:43
Oops removed it. Yes but not on solaris ;)
â Rinzwind
Feb 16 at 10:53
add a comment |Â
up vote
1
down vote
At least because:
Not all flags are supported or utilized by all filesystems;
The second thing - this question is a kind of trilling, because there is no chattr (these bits like linux has support) in solaris.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
chmod
reefers to file permissions for users, groups and others:
read
write
execute
chattr
reefers to attributes regardless users or groups, some of the attributes are:
a --> Append only
i --> Inmutable
c --> File automatically compressed in kernel.
Take a look at wikipedia for chattr.
chmod
with-w
is for removing write permissions
â Alvaro Niño
Feb 16 at 10:43
Oops removed it. Yes but not on solaris ;)
â Rinzwind
Feb 16 at 10:53
add a comment |Â
up vote
2
down vote
chmod
reefers to file permissions for users, groups and others:
read
write
execute
chattr
reefers to attributes regardless users or groups, some of the attributes are:
a --> Append only
i --> Inmutable
c --> File automatically compressed in kernel.
Take a look at wikipedia for chattr.
chmod
with-w
is for removing write permissions
â Alvaro Niño
Feb 16 at 10:43
Oops removed it. Yes but not on solaris ;)
â Rinzwind
Feb 16 at 10:53
add a comment |Â
up vote
2
down vote
up vote
2
down vote
chmod
reefers to file permissions for users, groups and others:
read
write
execute
chattr
reefers to attributes regardless users or groups, some of the attributes are:
a --> Append only
i --> Inmutable
c --> File automatically compressed in kernel.
Take a look at wikipedia for chattr.
chmod
reefers to file permissions for users, groups and others:
read
write
execute
chattr
reefers to attributes regardless users or groups, some of the attributes are:
a --> Append only
i --> Inmutable
c --> File automatically compressed in kernel.
Take a look at wikipedia for chattr.
answered Feb 16 at 10:39
Alvaro Niño
2337
2337
chmod
with-w
is for removing write permissions
â Alvaro Niño
Feb 16 at 10:43
Oops removed it. Yes but not on solaris ;)
â Rinzwind
Feb 16 at 10:53
add a comment |Â
chmod
with-w
is for removing write permissions
â Alvaro Niño
Feb 16 at 10:43
Oops removed it. Yes but not on solaris ;)
â Rinzwind
Feb 16 at 10:53
chmod
with -w
is for removing write permissionsâ Alvaro Niño
Feb 16 at 10:43
chmod
with -w
is for removing write permissionsâ Alvaro Niño
Feb 16 at 10:43
Oops removed it. Yes but not on solaris ;)
â Rinzwind
Feb 16 at 10:53
Oops removed it. Yes but not on solaris ;)
â Rinzwind
Feb 16 at 10:53
add a comment |Â
up vote
1
down vote
At least because:
Not all flags are supported or utilized by all filesystems;
The second thing - this question is a kind of trilling, because there is no chattr (these bits like linux has support) in solaris.
add a comment |Â
up vote
1
down vote
At least because:
Not all flags are supported or utilized by all filesystems;
The second thing - this question is a kind of trilling, because there is no chattr (these bits like linux has support) in solaris.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
At least because:
Not all flags are supported or utilized by all filesystems;
The second thing - this question is a kind of trilling, because there is no chattr (these bits like linux has support) in solaris.
At least because:
Not all flags are supported or utilized by all filesystems;
The second thing - this question is a kind of trilling, because there is no chattr (these bits like linux has support) in solaris.
answered Feb 16 at 10:50


L.Integra
666
666
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006741%2fwhat-is-the-difference-between-chmod-and-chattr%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
"Solaris operating system does not have chattr, it uses chmod instead. Also on Windows." Not our problem ;)
chattr
is more powerful thanchmod
: chmod does not always have a method to set "immutable".â Rinzwind
Feb 16 at 10:36