linux - C and file permissions -


I am using Ubuntu Lucid links

Writing data in a file through a program It is possible that only the permission has been read, if this is not possible, then there is no way to give sudo access to a program programmed program.

For files without permissions, I save the data in a string. Then I open the file with the option to write:

  FILE * fp = fopen (file_path, "w") fputs (string, fp); Fclose (fp); Generally what you want to do in Unix, the ownership of the implementation of this program:    

Set the root, world executable, then set the SUID bit on it.

  chown root filename chmod 4775 file name   

What is the meaning of bits, but for all see this together that means whenever anyone If this executes the executable, they receive the executable process' user ID set owner (route).

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -