Questions tagged [ownership]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
18 views

Rsync while changing user and group

I have a directory on a remote machine to which I would like to rsync some files from my local machine. Furthermore, I am mounting this directory as a folder which is accessible via mount to other ...
user avatar
  • 101
0 votes
1 answer
65 views

How does Linux keep track of file permissions?

This might be a dumb question, however I was wondering how does Linux keep track of the file permissions? We know if we do a "ls -l" we can see the file permissions but when I change the ...
user avatar
1 vote
0 answers
36 views

Permission denied on file with 666 permissions [duplicate]

I run the following commands on a new VM: $ sudo adduser banana Adding user `banana' ... Adding new group `banana' (1034) ... Adding new user `banana' (1033) with group `banana' ... ... $ sudo touch /...
user avatar
  • 613
5 votes
2 answers
334 views

Copying a file into a directory where I am a member of the directory group

I am attempting to copy a file into a directory where my user account is not the directory owner but belongs to a group that is the directory group owner. These are the steps I have taken: Create a ...
user avatar
0 votes
1 answer
62 views

How does Linux handle permissions of files created on a different machine?

As far I know, a file's ownership on Linux depends on the file's owner's UID. What happens if a user in a different machine has the same UID as a user on the server and then the file is copied to the ...
user avatar
  • 1,201
0 votes
0 answers
14 views

Any clues for using a mysql installation on a bitlocked W10 drive, from Linux OS on dual boot?

Booting to Linux Mint 20, I just installed a LAMP stack on this machine, accepting all default choices. But I already have all my databases on a Windows 10 bitlocked partition (now unlocked and ...
user avatar
  • 1,042
0 votes
1 answer
82 views

Cannot change the ownership mounting ntfs drive

Why I cannot change the ownership on mounting ntfs drive? I give uid=1000,gid=1000, etc in my /etc/fstab file, but found it is not working. So I'm testing it out on command line: root@host:~# mount | ...
user avatar
  • 485
0 votes
0 answers
47 views

Suddenly cannot change ownership nor permissions of files/folders on internal drive: chown, chmod

I have suddenly lost the ability to use chmod and chown. I am operating within my /home directory. I can still create and delete files. In verbose mode, they both say that the requested changes have ...
user avatar
1 vote
0 answers
24 views

Run clang-format from rootful container on bind-mounted host dir without changing ownership

I want clang-format run from within a container on a bind mounted host directory to keep the ownership of modified files. I have a simple Dockerfile which I'm running with podman. I bind mount the ...
user avatar
0 votes
0 answers
20 views

How to keep custom icons when copying folders with cp (in Mint, using Nemo)

I am using Linux Mint, with Cinnamon, and Nemo file browser. I have set custom icons for some sub-folders in my documents folders. I need to move/copy some of those folders, and I noticed that if I ...
user avatar
  • 229
1 vote
1 answer
91 views

Permissions and owner when drive moved from one server to another

I'm pretty sure this question is distribution and hardware neutral. I have a USB drive formatted ext4 with a directory (plus subs) configured for minidlna, owned root:minidlna with permissions 775. It ...
user avatar
0 votes
0 answers
36 views

Network Share mounting as root

I have three computers on the network. I am using one as a file server(Debian) and two are mounting a folder on the file server(Ubuntu and Xubuntu 20.04). Both have the same exact line in the /etc/...
user avatar
1 vote
0 answers
275 views

How to copy entire directory as is (failed to preserve ownership)

I am trying to prepare Raspberry Pi image to be netbooted. I have downloaded IMG file of raspbian (for ex 2017-07-05-raspbian-jessie) and mounted it locally to linux box. I got two partitions. Now I ...
user avatar
  • 2,517
0 votes
1 answer
379 views

Ownership, disk drives and permissions

I encountered an issue with a disk drive which I already posted on. (For the curious: Issue with device after formatting) In short, one of my disks stopped allowing me to copy files by drag and drop ...
user avatar
  • 3
0 votes
1 answer
172 views

Mounting the Drive to the Raspberry Pi and changing DIR ownership

so, after having followed this guide here https://pimylifeup.com/raspberry-pi-mount-usb-drive/ I've ended up with an automatically mounted external fat32 drive but now the ownership of that folder it ...
user avatar
0 votes
1 answer
58 views

Change the Owner access Charlie root to user at a media device, possible?

how can I change owner access from Charlie root to user access for my media devices (partitions /media/da0s1) on FreeBSD?
user avatar
-1 votes
1 answer
106 views

Cannot change ownership/permissions of disk

I have an EXT4 disk mounted on /mnt/external I have also tried mounting it on ~/EXTERNALMNT. The disk is not an NFS share. It is an external USB drive. I can read from the disk but cannot write, ...
user avatar
0 votes
1 answer
170 views

how can I change ownership of files in the VirtualBox shared folder (from root:root)

I'm running Windows 10 host and RHEL 4.7 guest using VirtualBox 6.1. I use VMs to build code changes which are delivered to our subs without having to travel to build on target consoles. The problem ...
user avatar
  • 101
1 vote
0 answers
89 views

www-data user cannot access USB drive mounted in /var/www/html/folder

I have an Raspberry Pi with mounted USB external drive. I've mounted this USB (/dev/sda1) to /var/www/html/owncloud/data/drive as I want to be able to access it from my PHP applications (precisely: ...
user avatar
0 votes
1 answer
77 views

user and group not getting set correctly for auto generated files

I am hosting a Magento 2 (onlineshop software) project on my dev machine. The user and group are set to this: user -> company group -> www-data In Magento 2 some files are getting auto ...
user avatar
  • 1,708
0 votes
0 answers
68 views

Owner of folder has no permission on it

I have recently created a user who has no access to any shell commands. Problem is, this user can still vim, nano or ls into any file and see the content. I created a home/username/ folder only ...
user avatar
  • 1
1 vote
1 answer
195 views

Sharing a directory between users (using ACL) when some files are created with only owner rw (600) permissions

Background: I'm trying to share a folder between two users on the same machine . The normal way would be to have the two users in the same group set the parent folder to that group with rw and the s ...
user avatar
  • 232
3 votes
2 answers
227 views

Change owner and group for specific owners only

My apologies for the silly/simple question - yet after searching the web and SE, I cannot find an answer for this specific issue. Question: How does one change the owner and group (system-wide) only ...
user avatar
  • 163
1 vote
1 answer
157 views

How to get the numeric group owner of a file?

For a bash script, I need to find the numeric group ID from the file ownership attributes, similar to the output of ls -nl, but only the number. If possible, I would like to avoid big parsing magic ......
user avatar
1 vote
0 answers
314 views

Cannot change ownership in SSHFS/FUSE

I encounter permission denied when trying to change the owner using chown of a folder on mounted SSHFS: # /etc/fstab sshfs#ubuntu@my.remote.tld:/mnt/data /data fuse user,_netdev,nonempty,...
user avatar
0 votes
1 answer
34 views

Group owner of ext4 filesystem changed

Having changed from using a Ubuntu-based operating system to using an Arch-based one, all of my ext4 volumes and everything in them have changed from being owned by $USER:$USER to now being owned by $...
user avatar
  • 3,311
0 votes
2 answers
130 views

Find specific folders and then change their ownership

I'm running into security issues with multiple Wordpress websites, and I need to recursively change the ownership (and permissions) for folder "wp-content" (and whatever is inside them). I ...
user avatar
2 votes
1 answer
447 views

Rsnapshot: folder ownership permissions to 'backups' group instead of root

I am using rsnapshot to make daily backups of a MYSQL database on a server. Everything works perfectly except the ownership of the directory is root:root. I would like it to be root:backups to enable ...
user avatar
0 votes
1 answer
218 views

inotify: avoiding a loop of repeated file changes

I am using inotify (implemented via pyinotify) on my Ubuntu 18.4 system in order to monitor creates, modifies, and attribute changes in certain directories. I use these watch flags: IN_CREATE, ...
user avatar
  • 271
9 votes
4 answers
3k views

chmod and chown at the same time?

I have a script I'm running to fix file ownership and permissions after an rsync. Questions of the optimal way to do my task aside, I wonder, is there a way to run chmod and chown at the same time? ...
user avatar
  • 13.2k
1 vote
2 answers
376 views

View size and owner on folders, within a folder

Anyone know how to view all the folders within an directory with size, folder/file, owner? The only command I know of is du -hs * But that shows all the subfolders aswell and does not show owner. ...
user avatar
  • 13
1 vote
2 answers
26 views

Why owners of files and folders can modify it's contents if they don't have permissions on the parent directory?

An example of my question would be the /home directory: drwxr-xr-x 8 root root 4096 Jan 29 23:44 home/ So, the owner of /home is root. But I'm the owner of my personal home folder: drwx--x--- ...
user avatar
  • 153
1 vote
1 answer
321 views

Can I avoid using `sudo` to back up files owned by root?

I'm using rsync to back up a set of files in /etc. The 'source' files are on an ext4 filesystem, and the 'destination' is an ext4 partition on a USB thumb drive. My incantation is similar to this: ...
user avatar
  • 2,104
3 votes
1 answer
28 views

Find out what is mounting my external HD and change ownership?

OS: Linux Mint 18.3. I have an NTFS-formatted external HD which just gets automounted when I boot up. I'm just trying to find out what actually does that, and whether it's possible to set the ...
user avatar
  • 1,042
0 votes
1 answer
2k views

PM2 Nodejs Need help with daemon ownership and permissions

I am struggling with under which accounts I should be running the daemon and how to add applications. I currently have it under root. PM2 v4.2.3: God Daemon (/root/.pm2) But when I run my bash ...
user avatar
  • 11
0 votes
1 answer
114 views

When can a process (with given uid/gid) write a file (with given user:group)?

I'm looking for a "logic statement" to know when file hello.txt owned by user1:groupA can be written by a process owned by user2:groupB. I currently see only those cases: the process can write it ...
user avatar
  • 2,245
0 votes
1 answer
144 views

Change owner to a file when saved in a specific folder

I have a NAS with a directory for each member of my house. My user name, is member of each member's group. So I have access to folders of all users. I want, when I place a file, inside a user's ...
user avatar
  • 103
0 votes
1 answer
189 views

rsync permissions only for owned files

I have a directory on my server to which multiple users copy their data using rsync. All users use the options -a -h -v. All users are in the same group used for this directory. All users mount the ...
user avatar
  • 1
0 votes
0 answers
41 views

How can I automatically revert a file's ownership when changed?

I have a file that is periodically updated by vendor software. When this happens, it changes the group ownership, and my internal system can no longer read it. Is there a simple way to update the ...
user avatar
0 votes
1 answer
2k views

how to find the owner of user and group from user HDFS

we can grant the permissions as hdfs user for hive as the following su hdfs $ hdfs dfs -chown hive:2098 but how to do the opposite way? in order to verify the owner of hive and hive group?
user avatar
  • 10.9k
0 votes
3 answers
622 views

Problem with recursive change of file ownership

Have a directory on a hard drive where I want to change all contents from owned by root to owned by tomc. I have tried Nemo, Krusader, and Nautilus (all launched as root, using sudo), all of which ...
user avatar
1 vote
3 answers
5k views

Cannot change ownership to uid 1001, gid 1001: Invalid argument

I'm installing ONOS and following this guide: https://wiki.onosproject.org/display/ONOS/Developer+Quick+Start I executed the command sudo bazel build onos This will compile and assemble the ...
user avatar
  • 11
0 votes
0 answers
813 views

Ownership of .gnupg folder causing permission denied

there are some workerNodes in which different users wants to encrpyt or decrypt certain files. for that to happen they import the required keys that they themselves are passing to. (Hadoop project in ...
user avatar
0 votes
1 answer
166 views

How Do I Transfer Ownership of Files Between Distros?

I currently have Ubuntu installed on one partition and my personal files (Pictures, Documents, etc.) on a second partition. I would like to install KDE Neon in the partition containing Ubuntu, while ...
user avatar
  • 121
0 votes
1 answer
117 views

Prevent Rsync from changing ownership of the folder of the exclude list

I know there's lot of question around the subject here but I did not found the answer yet (after many research). I have to upload the code of a web through rsync with a command line like the ...
user avatar
0 votes
0 answers
47 views

Scanned documents only readable by the user that scanned ~linux

I've been troubleshooting some time for this, and I don't seem to be able to work out, what the solution could be. I have a setup, where the copier is connected to my fileserver, so that when a user ...
user avatar
3 votes
2 answers
949 views

Allow rsync to be run remotely as root, but only to read files. A read-only root user?

I would like to use rsync-over-ssh to pull backups from many remote traget machines to a central backup. I could do this as the root user, but that would allow me to accidentally run a bad rsync ...
user avatar
  • 579
0 votes
0 answers
105 views

Group ownership changes by itself on restart

I changed window managers and now need to be able to change /sys/class/backlight/intel_backlight/brightness (because the new wm cannot change screen brightness natively). I created a user group ...
user avatar
  • 1,121
13 votes
2 answers
2k views

How can I use commands with sudo without changing owner of the files?

When I use sudo to do some activities with files, these files change ownership. How can I use commands with sudo without changing owner of the files? Example file archivos35.sh is from apache but I ...
user avatar
  • 131
2 votes
0 answers
380 views

Tagging outgoing packets with iptables

Is there any possibility to mark outgoing packets with iptables and recognize them by the response? I have a very simple outgoing rule: iptables -A OUTPUT -m conntrack --ctstate NEW,ESTABLISHED,...
user avatar