b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

Giving a program your permissions when it runs

by Kyle on March 10th, 2007

HowToForge has an excellent tutorial that shows how to give a program your permissions when it runs. The tutorial demonstrates how to set SUID and SGID bits for a file. Don’t worry if you don’t know what that means. Check out the tutorial at HowToForge, it’s pretty simple.

Normally, when a program runs under Linux, it inherits the permissions of the user who is running it, thus if I run a program under my account, the program runs with the same permissions that I would have if that program were me. Thus, if I cannot open a certain file, the program I am running also cannot open the file in question.

If I set the SUID or SGID bit for a file, this causes any persons or processes that run the file to have access to system resources as though they are the owner of the file.

Giving a program your permissions when it runs - [HowToForge]

POSTED IN: How To

1 opinion for Giving a program your permissions when it runs

  • chirag gor
    Sep 21, 2008 at 10:03 pm

    when i started the musicplayer and gnome and terminal then meanwhile the mp3player has paused why it has been stopped and it’s related to the suid bit and how i can removw this problem by suid bit and like change priority of the programme plz help me

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing