What is the difference between chmod and chattr?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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
![](https://i.stack.imgur.com/BJh6h.png?s=32&g=1)
![](https://i.stack.imgur.com/BJh6h.png?s=32&g=1)
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