Questions tagged [file-ownership]

A file system attribute used mainly for access control to file resources.

Many operating systems utilize the concept of file ownership to identify a specific system user as the owner of a file or directory. Where classes of users may be granted varying privileges for access to a file or directory (typically read, write, execute, or variations of those), the owner will have distinct permissions.

Useful links:

120 questions
3
votes
1 answer

Get and set owner, group and permissions in Cocoa

I am looking how to get (and set) owner, group and permissions in Cocoa for a given file. What is the best way to do this? (and how to check if the current user is granted enough to change these permissions) Thanks for your help, Regards,
AP.
  • 5,205
  • 7
  • 50
  • 94
3
votes
1 answer

File ownership on docker named volumes

I'm having a folder ownership issue when I try to run WordPress on Docker containers. Folders like wp-content and themes are owned by root, not allowing me to install themes and plugins from the web interface. Goals Run WordPress on Docker. Obtain…
That Brazilian Guy
  • 3,328
  • 5
  • 31
  • 49
3
votes
1 answer

Docker compose file ownership

I created Django project with Docker Compose: Dockerfile FROM python:2.7 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD . /code/ RUN pip install -r requirements.txt WORKDIR /code/example ENTRYPOINT ["python",…
petrikoz
  • 103
  • 1
  • 9
3
votes
1 answer

Does SVN keep track of file ownership and permissions?

If I check out a file via SVN and change the permissions and/or owner of the file in my working directory, will those changes be reflected when I commit the file? If so, how can I prevent this?
3
votes
2 answers

How To Get The Owner Of A Unix File Using C

I'm trying the get owner's name of a Unix file using C. The only method I have found is to use stat() and then getpwuid(stat.st_uid). But, it only returns the first user name with that uid, where users in the password file can have the same uid. …
cxx6xxc
  • 171
  • 8
2
votes
2 answers

Docker mounted volume files owned by nobody:nobody (loosing owner)

Mounted the .ssh folder into a docker container. permissions on the host (ls -laHF): total 40K drwxr-xr-x 2 git git 4.0K Apr 7 21:27 ./ drwxr-xr-x 3 git git 4.0K Apr 7 21:20 ../ -rw------- 1 git git 2.7K Apr 7 21:27 authorized_keys -rw------- 1…
2
votes
0 answers

How to change Service Account owner from Uploaded files using Drive API

I have a lots of data about my employes in a spread sheet. I uploaded those data to my google drive using Drive API. I successfully uploaded the file with python script. But now all the files owner is service account that I created in Drive API. I…
2
votes
1 answer

How do I make my kernel module's sysfs entry be owned by a non-root user?

I have the following code: static struct kobj_attribute my_attribute =__ATTR(my_node, 0444, my_show_fn, my_store_fn); ... kobject_init(&my_module->kobj, &ktype_my_module); ret = kobject_add(&my_module->kobj, kernel_kobj, "%s",…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
2
votes
1 answer

How do I access a file's ( exe or dlls) owner details using perl?

I wanted to simply print out these details for a directory, and I wanted to write the script in perl, any insights?
salem
  • 31
  • 1
2
votes
1 answer

Joomla 3.9.14 - configuration.php not writable for development website

Using MariaDB10.3, Apache2.4, PHP7.2 on Lubuntu 18.04 (very similar to Ubuntu 18.04) I want to use my computer offline for designing a website with Joomla. Later, I want to transfer this website to a shared host server. I opened in my…
2
votes
1 answer

Linux issue writing files and setting group to apache when the gid=501(www)

Im Working on an application that requires several users to have access to a directory called previews. So I set the primary group of each user to be www When the files have a group of www the application works without any issues. The problem is…
Shawn Pivonka
  • 335
  • 3
  • 14
2
votes
1 answer

Python: change permissions (take ownership and full control) of registry keys to modify them

I would like to loop through all the registry keys and subkeys in a hive, find the value containing a specified string and replace it by a new one (I am adapting this code using winreg) So far my code works on the keys whose ownership is…
MagTun
  • 5,619
  • 5
  • 63
  • 104
2
votes
1 answer

CVS is owned by a user, but when files are imported into it, "root" is declared as the owner of those files

Hello I have just installed CVS server and have started importing files onto the server. How would I change the owner directly while file transfer or make the user the default owner of all the files being imported. Is that possible?
sai
  • 59
  • 1
  • 1
  • 5
2
votes
3 answers

How to set owner ID on a directory and it's children

the command chmod g+s . would set the group ID on the current directory, so that all files created within this directory would belong to the directory's group user, and not to the user that created the file. What is the command to achieve the same…
luqo33
  • 8,001
  • 16
  • 54
  • 107
2
votes
2 answers

Nobody owner (99 99) in FTP caused by php functions?

I have a script (Joomla) that creates files and directories on the server. The problem is that it creates them under owner 99 99 (nobody) and after I can't delete or modify them by FTP without the help of the server admin. I think that is…
hacen
  • 31
  • 2
  • 3