+ Reply to Thread
Results 1 to 4 of 4

Thread: UFS filesystem flags

  1. #1
    joseph's Avatar
    joseph is offline Website Master Achievements:
    500 Experience Points1000 Experience Points5000 Experience Points10000 Experience PointsRecommendation Second Class
    joseph has disabled reputation
    Join Date
    2008-09-08
    Posts
    412

    Default UFS filesystem flags

    Please note:
    The following article is in this two-line format:
    Flag - Can be set by whom
    Behavior


    schg - Root only
    System immutable. No part of it can change, not even metadata. Root cannot unset this flag unless the system is in single-user mode or the system is at securelevel 0 or less.

    uchg - Owner or root
    User immutable. Like the schg flag, above, but can be set and unset by root and the file's owner.

    nodump - Owner or root
    Skip dump. Tell the dump(8) program not to include a file when it backs up a filesystem.

    sappnd - Root only
    System append only.No one may truncate the file or write to it at any point other than its end. It can be read at any point, but only written at the end.

    uappnd - Owner or root
    User append only. Like the sappnd flag, above, but can be set and unset freely, both by root and the file's owner.

    sunlnk - Root only
    System unlink. No one, not even root, can unlink (delete) the file, regardless of the permissions on the parent directory or file.

    uunlnk - Owner or root
    User unlink. The owner cannot unlink (delete) the file, regardless of the Unix permissions on the parent directory or file.

    opaque - Owner or root
    Opaque directories. Set only on directories. Makes them opaque when directories are unionfs mounted on top of them, i.e., underlying filesystems will not "show through," just like a typical mount-over.

    arch - Root only
    Archive. The archive flag is not used.

  2. #2
    joseph's Avatar
    joseph is offline Website Master Achievements:
    500 Experience Points1000 Experience Points5000 Experience Points10000 Experience PointsRecommendation Second Class
    joseph has disabled reputation
    Join Date
    2008-09-08
    Posts
    412

    Default

    Lock down and make immutable all the directories that contain software binaries and libraries. These include:

    /bin
    /sbin
    /usr/bin

    /usr/sbin
    /usr/lib
    /usr/libexec
    /usr/libdata
    /usr/X11R6/bin
    /usr/X11R6/lib

    /usr/local/bin
    /usr/local/sbin
    /usr/local/lib
    /usr/local/libexec
    /usr/local/libdata

  3. #3
    joseph's Avatar
    joseph is offline Website Master Achievements:
    500 Experience Points1000 Experience Points5000 Experience Points10000 Experience PointsRecommendation Second Class
    joseph has disabled reputation
    Join Date
    2008-09-08
    Posts
    412

    Default how to find files with flags

    find /home/joseph -flags +uunlnk -print

  4. #4
    Sitemon's Avatar
    Sitemon is offline Registered User Achievements:
    31 days registeredTagger Second Class100 Experience Points500 Experience Points1000 Experience Points
    Awards:
    Master Tagger
    Sitemon ?????????
    Join Date
    2009-12-14
    Posts
    52

    Default

    Hi, Imalgarbemdag,
    Welcome to Admon Community. We're planing to promote this website soon

+ Reply to Thread

Similar Threads

  1. LWN: Fedora flags policy reverted
    By edenCC in forum Technology News
    Replies: 0
    Last Post: 2009-05-25, 04:37 PM
  2. LWN: Fedora flags policy reverted
    By edenCC in forum Technology News
    Replies: 0
    Last Post: 2009-05-25, 01:15 PM
  3. LWN: A flag day for Fedora's flags
    By edenCC in forum Technology News
    Replies: 0
    Last Post: 2009-05-18, 11:12 PM
  4. LWN: Linux Storage and Filesystem Workshop, day 2
    By edenCC in forum Technology News
    Replies: 0
    Last Post: 2009-04-08, 08:59 PM
  5. LWN: That massive filesystem thread
    By edenCC in forum Technology News
    Replies: 0
    Last Post: 2009-03-31, 10:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts