Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ownership]

The tag has no usage guidance.

0
votes
1answer
25 views

Run rsync as root but keep target owner

I've already checked many threads regarding the topic and tried different flags combinations, but couldn't solve the problem. Scenario: I'm working under user A and have source files owned by A, ...
0
votes
1answer
121 views

How can I run a process as its owner or become its owner without logging in? [closed]

According to https://unix.stackexchange.com/a/489913/674 cron jobs can run as any user, without that user being logged in. root doesn’t need to log in to start the init process, thankfully (...
-1
votes
0answers
44 views

Granting a nonroot-owned systemd service sufficient 'usage' permissions on letsencrypt's SSL key/cert pair

Unrealircd is not allowed access to ssl key/cert pair, ircd-owned systemd service unit fails miserably. The files are managed by lets-encrypt's certbot and root-owned: -rw-r--r-- 1 root root 3.5K Dec ...
0
votes
0answers
12 views

How to stop permissions on data partition being changed on boot?

I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its ...
0
votes
1answer
46 views

Unison: always use 'copyprog' for updates

I am using Unison to synchronize files between several clients. Each client is identical, meaning that whenever one client updates a certain file, all other clients must be updated consequently. The ...
1
vote
1answer
129 views

MacOS: su pkill -9 “process_name” = sorry

How to use pkill as su on a Mac? When I run su pkill -9 "RFBEventHelperd" in the terminal I get su: Sorry (but works as sudo). I am looking for a way to kill this process from inside a script that ...
8
votes
1answer
979 views

Filesystem mounted as root but owned by user. Why?

I'm mounting a filesystem as root and I don't understand why it is not owned by root but by an unprivileged user. Here's fstab: cat /etc/fstab [...] /dev/sdb /mnt/projects ext4 defaults 0 2 ...
0
votes
1answer
27 views

user on nfs share

How can I specify which user a new file created on the NFS share is owned by? I.e. I've mounted a share on a client, userA is creating a file but that file shows as being owned by userB (possibly due ...
3
votes
1answer
89 views

Preserve ownership of entire folder hierarchy in tar?

I can preserve ownership of folderB and all files and folders inside when creating and extracting a tar file as follows: tar -cpf out.tar folderA/folderB sudo tar -xpf out.tar --same-owner However, ...
0
votes
0answers
40 views

Give two users ownership of a directory?

I’m new to Linux-like operating systems, and I’ve come across an issue where when a program tries to create a file or directory, it doesn’t have the proper permissions. Specifically, PHP running as ...
0
votes
0answers
23 views

File attributes, permissions issue

I have a shell script that runs on 2 machine by a job scheduler. The script generates some text file when it is executed. On one system, the text file generated has the permission: -rw-r--r-- 1 ...
0
votes
1answer
230 views

Change ownership of shared memory

When I run ipcs -m, I can see a list of the shared memory segments on the system, like ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status ...
0
votes
1answer
405 views

Ownership of /var/www/html [closed]

So I've searched this a lot and found conflicting answers. I would appreciate, for everyone's sake, if someone could come up with a fully reasoned and cited answer for how to set ownership / ...
1
vote
1answer
28 views

Clone ownership and group of coincident name files and folders between two servers

I need to sync only ownership and group of each file and dir between two server filesystems. That's to say if I have server A and server B, I don't need and don't want to copy data from one server to ...
0
votes
1answer
88 views

Owner of /var directory?

Is it safe to change the owner of /var directory the default owner is root. The sub directories inside var are www/html/domain.com I have changed the owner of all the directories inside var to Apache ...
3
votes
2answers
591 views

What are the standard ownership settings for files in the `.gnupg` folder?

What are the standard ownership settings for files in the .gnupg folder? After doing sudo chown u:u * mine now looks like this: drwx------ 2 u u 4,0K jan 18 22:53 crls.d drwx------ 2 u u 4,0K jan 18 ...
1
vote
2answers
3k views

Change ownership of directory owned by root

As a non-privileged user, owning a directory on an EXT4 filesystem where I have all the necessary rights (rwx) gives me the possibility to change content and ownership of files (e.g. vim file and :w!) ...
3
votes
0answers
297 views

owner/group getting set to `82`

Here's a real weird one for ya. :D The Issue I am running a Lando dev environment on a simple dummy LAMP application, as a way to test my custom Lando plugin (working off the console branch). (Lando ...
1
vote
1answer
160 views

Is it possible to mount a SSHFS point in a way to preserve (local) ownerships and permissions?

if I mount a sshfs point as root and use the option allow_other then on the original server (SERVERA) the files are owned by the SSH user, and on the destination server (SERVERB) are accessible (...
2
votes
0answers
149 views

Can I change ownership of the data directory content in a borg backup repo?

I've been using borg-backup for the past few weeks (on Ubuntu 16.04). Every time I need to mount a backup I've used sudo (sudo borg mount ...); if I don't, I end up with a permission error and the ...
2
votes
4answers
2k views

hdd mount option to grant ownership of files on drive

I have 5 internal drives and 3 external. I would like the internal drive's files to be owned by my default user hutber I have tried to chown them with sudo as seen here: It looks successful, ...
0
votes
1answer
70 views

Why should the rootfs have root ownership

The question maybe odd but i didn´t find any explanation to it, so: Sevreral tools for generating rootfs use fakeroot in order to fake the permissions, create the rootfs and then archive it. After ...
2
votes
1answer
2k views

Cannot change permissions as root on a file owned by root

The problem is that I have PHP files that do not work in the browser. I suspect because the user is missing read permissions. The files are located in a dir called "ajax" drwxrwxrwx. 2 root root ...
0
votes
1answer
32 views

Does file ownership work differently for guest users? If it does could you explain?

I'm self studying for my Linux+/LPIC-1 and I was working through the textbook titled "CompTIA Linux+ Guide to Linux certification" in conjunction with some video courses when this question arose. I ...
2
votes
2answers
1k views

Cannot rename resolv.conf file as root

I am trying to activate NordVPN CyberSec by completing the following instructions in Debian 9. I should be able to do the changes as root and with sudo like described for Ubuntu in the thread Should ...
0
votes
2answers
361 views

Delete a directory owned by me, containing files not owned by me

I have a directory in my home folder containing some build output, which the build process has chown to another user (for reasons unknown to me.) I want to delete the directory, but can't because it's ...
3
votes
1answer
699 views

Create, as a regular user, a tar with files owned by root

Hi guys/girls from U&L. CONTEXT I want to build a tar file as regular (non-root) user with some prepared binaries and configuration files like this; etc/binaries.conf usr/bin/binary1 usr/bin/...
9
votes
2answers
2k views

How to maintain the ownership of a file after editing?

My question is similar to this other one, excepted that one asks about newly created files. In my Unix box, users alice, bob and tomcat are in the group tomcat. The configuration files of the Tomcat ...
3
votes
1answer
168 views

Disable permission change for a directory

I want to disable the possibility of a permission change for a directory, so for example users couldn't peek into other users home directories. Is it possible without taking away the ownership? Even ...
1
vote
1answer
478 views

sshfs mount - files/folder are created as root disregarding uid/gid options

Local: OpenSuse, mount point /home/gruz/debian Remote: Debian (VirtualBox) 192.168.0.100, mount point /var/www/a I want to mount folder in 192.168.0.100:/var/www/a to my local machine so when I ...
5
votes
5answers
699 views

Best way to only list files that I own

What would be the best shell command "one liner" that I could use to list all of the files in a directory, only showing those that I own?
-2
votes
1answer
44 views

how to change log file creation user in linux

Log files are being created with the root user: -rw-r--r--. 1 root root xxxx Mar 14 16:53 access_log.1489489200 What is the process to change it to another user? like: -rw-r--r--. 1 user user xxxx ...
1
vote
0answers
22 views

Rules for File Ownership when user is leaving company [closed]

It appears users are removed from the passwd file when they no longer need access to a server at my current organization. I am finding files with a UID but no associated login. At a previous ...
1
vote
2answers
974 views

How do I make there be no group owner of a file in Mac OSX?

How do I make there be no group owner of a file in Mac OSX, since chgrp nogroup file doesn't work? If I try, the group owner doesn't change at all.