Results 1 to 4 of 4
explain the use Use of setting UID and GID permissions and how its works for an application. -Sakthi....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-03-2012 #1
- Join Date
- Jun 2012
Use of setting UID and GID permissions
- 07-03-2012 #2
Sorry, but homework questions are not allowed by the third point of the http://www.linuxforums.org/forum/lin...ums-rules.htmlYou must always face the curtain with a bow.
- 07-04-2012 #3
But I don't think a pointer in the right direction is prohibited.
- 07-06-2012 #4
- Join Date
- Feb 2011
UID - To Set a program to always execute as a owner
chmod 4755 my_program
The owner can read, write, and execute. The group can read and execute. The world can
read and execute. So no matter who executes this file it will always execute as if the
owner actually executed the program.
GID - To Set a Program to Always Execute as a Member of the File Owner’s Group
chmod 2755 my_program
The program will always execute as a member of the file’s group, as long as the file
is not a shell script. The owner of the file can read, write, and execute. The group can
read and execute. The world can read and execute. So no matter who executes this program
it will always execute as a member of the file’s group.