QuestionQ30Verified/GNU and Unix CommandsCopy linkReport a problemAsk AstroTutorSave questionWhich command sets the SetUID permission on the /bin/foo executable?Achmod 4755 /bin/fooBchmod 1755 /bin/fooCchmod u-s /bin/fooDchmod 755+s /bin/fooEchmod 2755 /bin/fooShow AnswerAnswerExplanationThe SetUID special permission bit is 4 in the leading octal position of a file mode. 4755 sets SetUID and assigns rwxr-xr-x permissions.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion