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
2
votes
2 answers

Summarize total size of files under ownership of a specific user

I want to sum up the size of all files (recursively) which are under the ownership of a specific user. Though, I don't want to have a huge list of all directories, just the overall size. Therefore the solution from this answer like: find . -user…
EverythingRightPlace
  • 1,197
  • 12
  • 33
2
votes
1 answer

Files created by a Tomcat webapp and owner, owner group, permissions for this file

-- Files created by a Tomcat webapp and owner, owner group, permissions for this file -- Hello and thank you for reading my post. I am running a "Tomcat v6.0" webapp on a "Debian 7.2 Wheezy" OS. In particular, this webapp creates some files on the…
Léa Massiot
  • 1,928
  • 6
  • 25
  • 43
2
votes
1 answer

Change linux user default ownership on file creation?

Seems like something which should be easy to find but Googling brings up lots of unrelated tasks. I have a deploy scipt which runs under the user "deploy" but my web server runs as "nginx" I want the web server to be able to write to the deployed…
realdannys
  • 1,383
  • 1
  • 12
  • 18
2
votes
2 answers

SUID permission (and its effect on ownership)

I'm currently studying for the LPIC-1 Linux Certification. For this, I'm using the 'All-in-One' Exam Guide, released by McGraw Hil & edited by Robb Tracy. (First edition, with no errata available on the McGraw Hill website). When I research SUID…
Chris
  • 191
  • 16
2
votes
1 answer

php mkdir sets wrong owner

I am using the mkdir() to make a new directory, which works. But when I try to upload files(images) to the dir, it gives me the following error: Warning: imagegif() [function.imagegif]: SAFE MODE Restriction in effect. The script whose uid is…
Langkiller
  • 3,377
  • 13
  • 43
  • 72
2
votes
2 answers

Unzipped files change owner, php

I have a zip file into a directory like this: drwxr-xr-x 2 salome salome 4096 Dec 16 17:41 staff.zip When I unzip the file with ZipArchive class, all the upzipped files are owner by nobody user. Is there a way to avoid this owner change? I am…
manix
  • 14,537
  • 11
  • 70
  • 107
1
vote
4 answers

Changing Owner/Group ID In PHP

In my client's ftp the old files have 3002 3000 value in owner/group column. But when I upload a new page it has 3002 3002 and I can't access this file. When I try to load this new page it displays error: NetworkError: 500 Internal Server Error …
Kichu
  • 3,284
  • 15
  • 69
  • 135
1
vote
0 answers

IBAction method now shown in File's Owner

I have a header file that declares two classes. The second looks like #import #import @interface MailComposerViewController : UIViewController
hornet330
  • 11
  • 1
1
vote
1 answer

is docker changing ownership of files?

Our deployment model is that we create containers on the fly with docker-java-api, some of these containers use heavily rocksdb database. The files of the DB are on the host, like: ls -lrt /mnt/data/rocksdb -rw-r--r-- 1 root root 8374 Nov 28…
gai-jin
  • 653
  • 2
  • 10
  • 24
1
vote
1 answer

How can I change the owner of a file in Windows (command line)

I am working in Windows with a non-admin-account. Sometimes I have files which I am not allowed to write. These files are from another user with admin rights which I use to install software. How can I change the owner of a file inside the command…
Michael Hutter
  • 1,064
  • 13
  • 33
1
vote
1 answer

git error "[my repository] is on a file system that does not record ownership"

I'm getting this error between two W10 systems running a VPN and RDP. My local system "My" has an area c:\cap2office that is a Git repository. The remote system "Remote" has My C: drive mapped to its drive S: I can see the C:\cap2office directory as…
Paul Kinzelman
  • 547
  • 1
  • 7
  • 22
1
vote
1 answer

Why is checkbox replace owner on subcontainers and objects missing?

I'm using Windows 10. I am trying to delete files from C:\Windows\system32\Macromed\Flash and C:\Windows\SysWOW64\Macromed\Flash, but to delete them I need TrustedInstaller permission so I tried to change ownership of files. When I go to Security ->…
dacal
  • 65
  • 7
1
vote
1 answer

Rails 6 application fails due to cache directory changing ownership to root

I have a Rails 6 application running on Debian buster. In one place I am using "low-level" caching. Here is the relevant code: # Get the value. def self.ae_enabled?() Rails.cache.fetch("ae_enabled", expires_in: 1.hour) end # Change the value. def…
rlandster
  • 7,294
  • 14
  • 58
  • 96
1
vote
0 answers

From a file's information, how can I get the "Owner" of it using Python?

In a VERY filled directory on Windows operating system with hundreds of sub-directories and thousands of files, I'm trying to pull out where the files (raw path + file name) are along with the 'Owner' attribute of the file and log that; essentially…
Anonymous
  • 453
  • 1
  • 6
  • 14
1
vote
1 answer

Java File.setLastModified() fails on Linux when you are not the file owner

I have a java jar file which uses File.setLastModified() to set a specific time stamp for a file by referring to /mnt/nxx/file.name. It works as desired when the file is owned by the same UID as the logged-in user running the java process. But it…
Chucko
  • 81
  • 1
  • 8