[lfs-dev] chattr and lsattr

Bruce Dubbs bruce.dubbs at gmail.com
Thu Mar 20 18:27:56 PDT 2014


baho utot wrote:
>
> On 03/20/2014 08:41 PM, Bruce Dubbs wrote:
>> I've noticed that our instructions for e2fsprogs put chattr and lsattr
>> into /usr/bin.  Shouldn't these be in /bin?

> If you follow Filesystem Hierarchy Standard version 2.3 they are not in
> placed into /bin.
> I have not found them in that document so it looks to me that /usr/bin
> is ok.

Taking a look at the LSB 3.0 beta that was released today, it says:


  /bin contains commands that may be used by both the system 
administrator and by
users, but which are required when no other filesystems are mounted (e.g. in
single user mode). It may also contain commands which are used indirectly by
scripts.

It goes on to say what is required and chattr and lsattr are not in that 
list.  It also gives a list of optional programs that should be in /bin 
if they are installed.  (ed is now optional!)

That says, the list of programs presented is not exhaustive.  chattr 
and lsattr would certainly fall into the general definition of "may be 
used by both the system administrator and by users, but which are 
required when no other filesystems are mounted".  For example, if you 
need to change a file like fstab and it has the immutable bit set.

   -- Bruce






More information about the lfs-dev mailing list