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

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

Should gear shift center itself while in neutral?

Should I call the interviewer directly, if HR aren't responding?

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

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

What are the pros and cons of Aerospike nosecones?

Is there a Spanish version of "dot your i's and cross your t's" that includes the letter 'ñ'?

Is there a service that would inform me whenever a new direct route is scheduled from a given airport?

Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?

Should I discuss the type of campaign with my players?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Disable hyphenation for an entire paragraph

Why aren't air breathing engines used as small first stages

Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?

Is 1 ppb equal to 1 μg/kg?

Bonus calculation: Am I making a mountain out of a molehill?

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

Is it true to say that an hosting provider's DNS server is what links the entire hosting environment to ICANN?

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

Can Pao de Queijo, and similar foods, be kosher for Passover?

Is the address of a local variable a constexpr?

Why was the term "discrete" used in discrete logarithm?

Can a non-EU citizen traveling with me come with me through the EU passport line?

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?



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