file -b command return on sticky bit files Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionPermissions for making some some (but not all) files visible directly under a directoryPermissions by path instead of file mode bitsSticky bit and users with sudo permissionTuning sequential disk reads for performanceFile mode on MacOSXUnset setgid bit with chmod numeric modeHow do file permissions work for the “root” user?ls listing directory argument does not work as per expectedUse pkg-config to test the version on an installed program?Disk I/O Information

How do I mention the quality of my school without bragging

Output the ŋarâþ crîþ alphabet song without using (m)any letters

How to motivate offshore teams and trust them to deliver?

What do you call a phrase that's not an idiom yet?

Why are there no cargo aircraft with "flying wing" design?

If Jon Snow became King of the Seven Kingdoms what would his regnal number be?

What makes black pepper strong or mild?

What would be the ideal power source for a cybernetic eye?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

Why does Python start at index -1 when indexing a list from the end?

What is the musical term for a note that continously plays through a melody?

How can players work together to take actions that are otherwise impossible?

Right-skewed distribution with mean equals to mode?

Letter Boxed validator

Antler Helmet: Can it work?

What is this single-engine low-wing propeller plane?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

How discoverable are IPv6 addresses and AAAA names by potential attackers?

Can inflation occur in a positive-sum game currency system such as the Stack Exchange reputation system?

Do you forfeit tax refunds/credits if you aren't required to and don't file by April 15?

How can I make names more distinctive without making them longer?

What causes the vertical darker bands in my photo?

What happens to sewage if there is no river near by?

Models of set theory where not every set can be linearly ordered



file -b command return on sticky bit files



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionPermissions for making some some (but not all) files visible directly under a directoryPermissions by path instead of file mode bitsSticky bit and users with sudo permissionTuning sequential disk reads for performanceFile mode on MacOSXUnset setgid bit with chmod numeric modeHow do file permissions work for the “root” user?ls listing directory argument does not work as per expectedUse pkg-config to test the version on an installed program?Disk I/O Information



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















I am trying to understand why the file -b command is returning a certain value(s) when the sticky bit is set.



When I run file -b <dir> where dir has its group set to g+wrs, file -b returns setgid directory. Is this an expected output and how can I make it so it does not return setgid even on sticky bit directories?



To add more information it appears that this is happening to all directories that have their sticky bit set for the group.



Additionally, yes I have read the man page.










share|improve this question



















  • 1





    how can I make it so it does not return setgid even on sticky bit directories? – What's the point? XY problem maybe? To tell if some path leads to a directory check the exit status of test -d /the/path.

    – Kamil Maciorowski
    Apr 12 at 4:14


















-1















I am trying to understand why the file -b command is returning a certain value(s) when the sticky bit is set.



When I run file -b <dir> where dir has its group set to g+wrs, file -b returns setgid directory. Is this an expected output and how can I make it so it does not return setgid even on sticky bit directories?



To add more information it appears that this is happening to all directories that have their sticky bit set for the group.



Additionally, yes I have read the man page.










share|improve this question



















  • 1





    how can I make it so it does not return setgid even on sticky bit directories? – What's the point? XY problem maybe? To tell if some path leads to a directory check the exit status of test -d /the/path.

    – Kamil Maciorowski
    Apr 12 at 4:14














-1












-1








-1








I am trying to understand why the file -b command is returning a certain value(s) when the sticky bit is set.



When I run file -b <dir> where dir has its group set to g+wrs, file -b returns setgid directory. Is this an expected output and how can I make it so it does not return setgid even on sticky bit directories?



To add more information it appears that this is happening to all directories that have their sticky bit set for the group.



Additionally, yes I have read the man page.










share|improve this question
















I am trying to understand why the file -b command is returning a certain value(s) when the sticky bit is set.



When I run file -b <dir> where dir has its group set to g+wrs, file -b returns setgid directory. Is this an expected output and how can I make it so it does not return setgid even on sticky bit directories?



To add more information it appears that this is happening to all directories that have their sticky bit set for the group.



Additionally, yes I have read the man page.







linux files directory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 12 at 4:14









muru

37.9k590166




37.9k590166










asked Apr 11 at 18:51









SharkiSharki

12




12







  • 1





    how can I make it so it does not return setgid even on sticky bit directories? – What's the point? XY problem maybe? To tell if some path leads to a directory check the exit status of test -d /the/path.

    – Kamil Maciorowski
    Apr 12 at 4:14













  • 1





    how can I make it so it does not return setgid even on sticky bit directories? – What's the point? XY problem maybe? To tell if some path leads to a directory check the exit status of test -d /the/path.

    – Kamil Maciorowski
    Apr 12 at 4:14








1




1





how can I make it so it does not return setgid even on sticky bit directories? – What's the point? XY problem maybe? To tell if some path leads to a directory check the exit status of test -d /the/path.

– Kamil Maciorowski
Apr 12 at 4:14






how can I make it so it does not return setgid even on sticky bit directories? – What's the point? XY problem maybe? To tell if some path leads to a directory check the exit status of test -d /the/path.

– Kamil Maciorowski
Apr 12 at 4:14











1 Answer
1






active

oldest

votes


















1














The 's' bit for user (04000) is setuid.



The 's' bit for group (02000) is setgid.



The 't' bit _for other (01000) is sticky.



You set the 's' bit for group which is setgid and is not sticky.



To set the sticky bit set o+t or something including that as a subset.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511971%2ffile-b-command-return-on-sticky-bit-files%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The 's' bit for user (04000) is setuid.



    The 's' bit for group (02000) is setgid.



    The 't' bit _for other (01000) is sticky.



    You set the 's' bit for group which is setgid and is not sticky.



    To set the sticky bit set o+t or something including that as a subset.






    share|improve this answer



























      1














      The 's' bit for user (04000) is setuid.



      The 's' bit for group (02000) is setgid.



      The 't' bit _for other (01000) is sticky.



      You set the 's' bit for group which is setgid and is not sticky.



      To set the sticky bit set o+t or something including that as a subset.






      share|improve this answer

























        1












        1








        1







        The 's' bit for user (04000) is setuid.



        The 's' bit for group (02000) is setgid.



        The 't' bit _for other (01000) is sticky.



        You set the 's' bit for group which is setgid and is not sticky.



        To set the sticky bit set o+t or something including that as a subset.






        share|improve this answer













        The 's' bit for user (04000) is setuid.



        The 's' bit for group (02000) is setgid.



        The 't' bit _for other (01000) is sticky.



        You set the 's' bit for group which is setgid and is not sticky.



        To set the sticky bit set o+t or something including that as a subset.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 12 at 3:59









        dave_thompson_085dave_thompson_085

        2,15711111




        2,15711111



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511971%2ffile-b-command-return-on-sticky-bit-files%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            NetworkManager fails with “Could not find source connection”Trouble connecting to VPN using network-manager, while command line worksHow can I be notified about state changes to a VPN adapterBacktrack 5 R3 - Refuses to connect to VPNFeed all traffic through OpenVPN for a specific network namespace onlyRun daemon on startup in Debian once openvpn connection establishedpfsense tcp connection between openvpn and lan is brokenInternet connection problem with web browsers onlyWhy does NetworkManager explicitly support tun/tap devices?Browser issues with VPNTwo IP addresses assigned to the same network card - OpenVPN issues?Cannot connect to WiFi with nmcli, although secrets are provided