Questions tagged [ownership]

The tag has no usage guidance.

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

Set group as owner of cifs mount in fstab

Is it possible to mount a cifs share in fstab with setting the group as owner? So anyone in the group can chmod without sudo? These are the options I've tried: rw,mand,vers=3.0,gid=,file_mode=0664,...
0
votes
1answer
37 views

Compress allowing read & write access on any platform

I am using Linux Mint 19.1 Cinnamon and have a disc partition for files formatted in Ext 4. I want to compress some of the files and folders to a single file, to share with 2 other people who share my ...
0
votes
0answers
15 views

How to copy ownership and permissions using rsync but not the files

I am using AWS CodeDeploy to copy files from git to the server. It can't overwrite the files, so I have to move the files to another temp location and then it moves the files from the repo to the ...
0
votes
2answers
44 views

Owner of the file not being displayed properly in LINUX Terminal

I want the terminal to display the user name that created a particular file, so when I traverse all the way to that file and type in the command ls -l filename.docx or even ls -la /path/to/file, it ...
1
vote
1answer
76 views

Can't run file on Linux Mint because of permissions/ownership issues

I use VirtualBox 6.0.6 on Windows 10 to work in Linux Mint. I use a USB drive with a programming environment on it (Portacle). It contains an executable file (portacle.desktop). I found myself unable ...
0
votes
1answer
58 views

Keeping the same user and group on files going forward?

I'd like for the ownership of all the files on my site to stay as follows: sudo chown -R www-data:www-data /var/www/example.com/public_html But I need to change the files with another user, so I did ...
0
votes
1answer
41 views

Can I extract an overwriting tar archive, while retaining the ownership of the original destination file(s)?

I have a particular use case, where I want to extract a tar archive (as root) and intentionally overwrite some destination file(s) with the contents of the archive. This is all fine and easily ...
1
vote
2answers
52 views

Group ownership modification - pitfalls

I'm user user and my primary group is user. If I change my primary group to primary_group, all of the files owned by me are suddenly owned by primary_group. This was unexpected to me. If group user ...
0
votes
1answer
50 views

Who owned the directory and how to remove it?

ls -l /media/debian9/disk total 1741 drwxr-xr-x 2 100000 100000 3 Jul 20 2018 acct -rwxr-xr-x 1 100000 100000 1102 Jul 20 2018 anbox-init.sh Who is the 100000? cat /etc/passwd |grep ...
1
vote
1answer
236 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
135 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 (...
0
votes
0answers
19 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
88 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
288 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
1k 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
31 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
245 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
67 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
26 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
453 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
600 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
38 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
116 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
944 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
445 views

owner/group getting set to `82`

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 is a tool for running local dev environments, ...
1
vote
1answer
225 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
232 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
95 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 ...
4
votes
1answer
3k 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
34 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
2k 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
701 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 ...
4
votes
1answer
1k views

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

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/binary2 that are mean to be extracted ...
10
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
362 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
655 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 ...
6
votes
5answers
2k 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
54 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
24 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
1k 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.