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 …
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 file…
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 a…
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 h…
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