Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

ret5hd

(21,320 posts)
6. ANY file with permissions set to execute...
Mon Jul 24, 2023, 06:14 PM
Jul 2023

(provided the file is actually an executable) can be executed regardless of the extension or lack of an extension.

It’s kinda hard to explain and it’s been a long time but all files in Unix/Linux have 3 sets of permissions: for the owner, for the group, and for anybody. They are formatted in those 3 “groups” with 3 available permissions for each: read, write, and execute…done in binary, where (if I recall correctly) read has a value of 1, write has a value of 2, and execute has a value of 4.

So, for example, if a file was to be readable, writable, and executable by anyone, the permissions would be set to 777.

If the file was to be only readable, writable, and executable by the owner, the permissions would be set to 700.

Now that I’ve totally fucked you up, read the man pages.

Recommendations

0 members have recommended this reply (displayed in chronological order):

Latest Discussions»Help & Search»Computer Help and Support»This message was self-del...»Reply #6