Questions tagged [ownership]
149 questions
112
votes
6 answers
recursively change owner windows 7
Somehow I accidentally set all the files in a subfolder to "No Owner' and I can't seem to change all the permissions. I can change one by hand by changing the owner then setting permissions but how can I change owner of all the files in this…
user3109
90
votes
2 answers
How to tar a directory preserving not only permissions, but ownership too
I have to compress a directory using tar.gz preserving not only permissions, but ownership/groups too.
And, in this directory there are many files that belong to many users.
Paulo Coghi
- 1,264
23
votes
5 answers
How to arbitrarily map user/group ownerships in rsync
I need to rsync a directory to a remote server so that all files belonging to user X and group Y on the source (local) machine are mapped to user W and group Z on the destination (remote) machine. If possible by using ssh as the transport, but if I…
matteo
- 4,559
19
votes
1 answer
How to get around this error when unTarring an archive “tar: Cannot change ownership to uid 1000, gid 1000: Operation not permitted”
When attempting to untar a file in a docker container with:
tar -zvxf training.tar.gz -C data/multi30k
I received the following error (train.de is a file within the .tar file):
tar: train.de Cannot change ownership to uid 1000, gid 1000: Operation…
Jacob Stern
- 1,081
15
votes
1 answer
Avoid errors from tar failing to restore directory permissions
I observe the following behavior with both tar 1.26 and 1.27.1:
$ mkdir a b a/diffowner
$ sudo mkdir b/diffowner
$ sudo chmod a+w b/diffowner
$ echo foo > a/diffowner/foo
$ tar -C a -cvf test.tar diffowner
diffowner/
diffowner/foo
$ tar -C b -xvf…
MvG
- 1,519
12
votes
2 answers
how can I do a Windows file search by file owner
I want to find a particular Excel file created by a past employee. All I know for sure is the file format (Excel 1997-2003) and the file owner's name. How can I search for this file on a Windows network share by file owner?
Rory
- 334
11
votes
2 answers
Windows 10: Why Does CBS.log Say Directory Is Owned Twice or Has Its Security Set Twice?
On my system, C:\Windows\Logs\CBS\CBS.log contains these lines:
2019-10-08 02:00:48, Info CSI 0000008e Warning: Overlap: Directory \??\C:\WINDOWS\System32\drivers\en-US\ is owned twice or has its security set twice
Original…
Ray Woodcock
- 543
10
votes
3 answers
How to make a file editable by two different users in different groups?
I have a folder at /home/www/, and the owner is www, which is part of the www-group. I have another user, john, part of the john group. How can I chown /home/www/ to make it writable by both www and john? Thanks
user36099
9
votes
2 answers
How to preserve ownership and permissions in Dropbox?
I have two machines, a Mac and a PC running Linux, that I am trying to keep a certain file synced between using Dropbox.
One of the files that I am syncing needs to be writable by another user (different UID on the same machine, not referring to…
Michael
- 2,824
8
votes
1 answer
sudo chown fails with operation not permitted
I have found similar questions here, but the answers provided to those questions do not resolve my problem.
If I do:
sudo chown main.m
I get an operation not permitted error.
The general solution to prior errors was:
sudo chflags…
ericg
- 584
7
votes
1 answer
Recursively change ownership to another user in windows
In Windows (particularly, Windows server 2012) I have to change ownership of a folder with a bunch of subfolders and files.
Here: recursively change owner windows 7 (and in other places) people suggest to use 'takeown' command for that.
The problem…
7
votes
1 answer
Understanding how to use Icals & Takeown to make changes and reset in Windows 10
Take ownership of a windows folder and its contents
Make Changes
Return ownership to original
Understand the process
Use Icacls and takedown in a windows 10 environment
Before using takeown and icacls commands because of the sensitive nature of…
user900431
6
votes
2 answers
chown: changing ownership not permitted, even though running as root
I managed to configure my Raspberry Pi as an FTP server with ProFTPD. The only problem is, I can´t upload and rename files and Windows Explorer says:
350 File or directory exists,ready for destination name
550 Rename xyz permission denied
Now…
Marian Klühspies
- 160
6
votes
2 answers
Permissions to create files and folders but only modify owned files
I want to set permissions on a folder in which every local user should be able to:
Create new files or folders
But only a file's owner should be able to modify it or delete it
Since we need the Create Files/ Write Data, Create Folders/ Append Data…
b10z
- 63
- 1
- 1
- 3
5
votes
3 answers
Drive ownership corrupted Windows 7
A few weeks ago the fan in my laptop (HP Pavilion dv6) died. I took my computer apart to test the fan, which had definitely burned out, and ordered a new fan.
In the meantime, there were files on my computer which I needed, so I connected the hard…
Void Star
- 625