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;
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
add a comment |
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
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 oftest -d /the/path
.
– Kamil Maciorowski
Apr 12 at 4:14
add a comment |
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
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
linux files directory
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 oftest -d /the/path
.
– Kamil Maciorowski
Apr 12 at 4:14
add a comment |
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 oftest -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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 12 at 3:59
dave_thompson_085dave_thompson_085
2,15711111
2,15711111
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 oftest -d /the/path
.– Kamil Maciorowski
Apr 12 at 4:14