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;
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