Skip to content
Advertisement

Tag: permissions

C program to mkdir in POSIX shared memory missing permissions

I have a POSIX shared memory directory which gets blown away on reboot and needs to be recreated on occasion. An example, This creates the directory with missing write permissions for group/others: I’ve tried experimenting with the mode_t flags and even replaced “0777” with “S_IRWXU | S_IRWXG | S_IRWXO”. I do need the directory to have permission flag 0777. Answer

Meaning of mkdir parameters in Android init.rc

I am trying to understand the following commands: mkdir /data 0770 root system mkdir /data 0770 system system mkdir /data 0770 system room https://android.googlesource.com/platform/system/core/+/b4d65399fde02280b718e3b5b5cb1464a885c4b0/rootdir/init.rc Line 58 mkdir is creating the directory, /data is path, 0770 giving read write permissions to the directory, root system I don’t know. Answer The format is The path defines which directory has to be created.

Use find command with -perm and -maxdepth [closed]

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

I don’t have permission for editing www-data:www-data files [closed]

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

Simulate permissions for non-login user

I want to perform some actions on behalf of some non-login users, such as e.g. www-data or uwsgi. My purpose is to test some permissions, check what dirs they can modify etc etc. Is there a recommended way of going about this, other than creating a shell and password for them and su ? edit: When I try to su

Advertisement