Questions tagged [ownership]

144 questions
110
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
83
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,174
  • 1
  • 11
  • 14
22
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,199
  • 6
  • 20
  • 22
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,479
  • 2
  • 14
  • 26
15
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
  • 861
  • 2
  • 8
  • 14
12
votes
2 answers

Is it possible to discover the current owner of a folder?

I am running the Windows 8 Enterprise x64. Here are the current security settings for a folder on an NTFS volume: I have access neither to the folder contents, nor to its security settings nor its current owner. Because I am an administrator, I…
Nik Z.
  • 221
  • 1
  • 4
11
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
  • 324
  • 3
  • 6
  • 13
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,614
  • 6
  • 31
  • 51
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
  • 544
  • 2
  • 6
  • 16
8
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
  • 473
  • 1
  • 6
  • 19
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
  • 161
  • 1
  • 1
  • 7
6
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
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
  • 515
  • 2
  • 9
  • 23
5
votes
3 answers

Changing ownership without the sudo command

I was setting up a Ubuntu Server and I wanted to allow the FTP client to access the /etc/ folder. So I used the chown command to allow my account to use it. However, this changed the ownership of sudo and broke it. I can't run any commands as sudo…
1
2 3
9 10