Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Tag: file-permissions
Android file permissions on Android 6.0
I want to list files and directories under “/proc” in Android. When running as my application process, many files are not readable. If I list the directory as the shell user I get the following output: If I list the the directory as my app process (using run-as [PACKAGE_NAME]): Obviously, the files that I received a “Permission denied” error on
How can I make a chgrp command optional in my install script?
I’m creating an install script for a Linux game. As part of the installation, I change the suid permissions of the game executable to the “games” group so that the game can update the highscore file even when its run by regular users. Right now my Makefile.am looks like this: The problem I am having is that the chgrp command
Fixing file permissions after modifying in C++?
I’m saving my data in the executable file of the program. I copy it to a temporary file, overwrite a part starting at a ‘magic string’ and rename it to the original. I know this is a bad idea, but I’m doing it just for experimenting. I got everything to work so far, except for that I have to re-enable
Retaining file permissions with Git
I want to version control my web server as described in Version control for my web server, by creating a git repo out of my /var/www directory. My hope was that I would then be able to push web content from our dev server to github, pull it to our production server, and spend the rest of the day at