LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2018, 01:25 AM   #1
bhosaleabhijeet10@gmail.
LQ Newbie
 
Registered: Aug 2018
Posts: 2

Rep: Reputation: Disabled
How to check whether a file have immutable flag/attribute or not without using lsattr command?


We can use lsattr command to check the immutable flag of a file, But I want to know that is there any other way or command to check such flag or attributes?
 
Old 08-03-2018, 07:10 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,018
Blog Entries: 13

Rep: Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462
Not that I know of.

Typically commands which have alternatives contain those suggestions in the SEE ALSO part of the man page. Check that out.
 
Old 08-07-2018, 12:49 AM   #3
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
you can use an EXT2 or EXT3 filesystem without support for attr, and insure you have it disabled in Kernel

in that case you don't need to check attr because they aren't there

(your linux distro may demand access and use of such attr, though)

other than that, attr are complicated enough if you need to check them (hopeing to check security) you may not gain much: the situation is too comlex when P.A.M. and "linux libs setting attr" get in the picture: you may not know enough to set the right attr right? you have to assume they are pretty good or you got allot of work to do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Immutable attribute is a problem for editors Fixit7 General 6 04-25-2016 07:15 AM
Show immutable attribute Fixit7 Puppy 2 01-01-2016 07:27 PM
Unable to remove immutable flag for SSHD_CONFIG pcslinux123 Linux - Security 16 03-25-2014 05:31 PM
I am unable to set immutable flag in SuSE udayakumarsv SUSE / openSUSE 1 03-30-2009 11:34 PM
Removing a file named like a command flag yuchai Linux - General 1 07-26-2006 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration