Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [ownership]

File ownership is a way to manage files of different users and share files between users of same groups. Every file in Linux is managed by a specific user and a group. The chmod command helps to define file permissions separately for user, group and others.

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

Set group ownership and permission for new created files/folders

I found several questions like that of mine, but none of them worked for me. I have a site folder /var/www/afos2.local/html. Apache is running under www-data user. I have created a group site_afos2. I ...
user avatar
  • 1
0 votes
1 answer
25 views

Recommended ownership of ~/public_html for apache?

Variations of this have been asked and answered here before, but I'm more after best practice from the options I list. I'm running Apache and want to allow use of ~/public_html - but I'm wondering a ...
user avatar
0 votes
0 answers
22 views

files and folder created by a user get ownership of a differnt user when created at specific location

I have a folder /vagrant which is owned by user vagrant who is in group vagrant. then if I switch to user root or ansible user and create a directory at /vagrant path. it gets ownership of vagrant:...
user avatar
1 vote
1 answer
39 views

How to change ownership of a remote file tree

I have a tree of files on a remote server, and I want to obtain ownership of them. The tree is mounted at /Musique. I tried chown -R paul /Musique but I got an error message "Invalid argument&...
user avatar
  • 1,839
0 votes
1 answer
46 views

Why I cannot change the owner of files in a mounted directory?

I used the following command to mount a remote directory on an Ubuntu 20.04 machine: sudo mount -t cifs -o username=tidy //192.168.1.11/tidy-mine /media/tidy/f_folder/ When I use the command ls -l,...
user avatar
  • 135
0 votes
2 answers
297 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
  • 731
0 votes
1 answer
393 views

How to create an FTP/SFTP user to manage /var/www which is owned by www-data

I am trying to create an FTP user that can manage the /var/www directory which is owned by www-data. I have seen a post suggesting this: chown -R newuser:www-data /var/www How do I create a user and ...
user avatar
-1 votes
1 answer
97 views

Have to take ownership of USB port after each reboot

I have a laser engraver. I was having issues getting Ubuntu to talk to it via USB. I finally sorted that out, but now when I reboot, I have to run the command below every time, or I can't talk to the ...
user avatar
0 votes
0 answers
56 views

I need help with mdadm drive ownership

I've been here looking through other threads trying to figure this out but, can't figure out how to change my mdadm array ownership. I've tried a bunch of commands and I just can't get it. I am very ...
user avatar
1 vote
1 answer
202 views

Apache file ownership and envvars

I use Ubuntu 20.04. I have edited /etc/apache2/envvars to change the run user to userA: export APACHE_RUN_USER=userA When I run this PHP script from W3 Schools to upload a file, the upload works - but ...
user avatar
0 votes
2 answers
233 views

Change directory owner/group from root to a user

when trying to change the ownership of a directory i get the error: chown: changing ownership of '/home/tadpoles': Operation not permitted I even get the above message when i do sudo -s and ...
user avatar
0 votes
3 answers
747 views

Lubuntu 20.04 denies my own hard disk partition any access

I have a hard disk partition with no mount point and freshly formatted at ext4 file system. I want to store my own files there. But trying to create anything there tells me that permission is denied. ...
user avatar
0 votes
0 answers
79 views

change of root ownership cause segmentation error

I know this could be an smarter question but since I spent a whole day to fix this, then I dare to ask help to save time for redhat exam. I changed the ownership of root to user and then everything ...
user avatar
0 votes
1 answer
356 views

Setting Brave / Chrome Workspaces Permission Issue

I work on local websites and want to add workspaces in Brave Dev Tools. When I try to add the folders, I get the error Could not read the contents of var. Error opening directory '/var': Permission ...
user avatar
  • 1
2 votes
0 answers
386 views

Change owner through graphical interface in standard Ubuntu (with Gnome Shell)

Users can be confronted with the need to change ownership of a drive. One obviously can use the terminal, but is there currently a supported way to change ownership using a graphical tool in Ubuntu ...
user avatar
  • 62.2k
0 votes
1 answer
297 views

Change default icon for VLC media player Ubuntu 20.04?

How to change the default orange cone icon for the VLC media player Ubuntu 20.04?
user avatar
0 votes
0 answers
42 views

Default permissions of all files in ubuntu

I executed the below command. sudo chown -R $USER:$USER $HOME/ Now I'm not able to edit preferences in the terminal. Some weird things are also happening like some app images in the home directory ...
user avatar
  • 21
1 vote
2 answers
6k views

Ubuntu 20.04 systemd-coredump user ownership

My Ubuntu 20.04 kinda crashed. That is, in the middle of work mouse started jittering and and then froze completely. This has happened before (once per 10 days), it would usually come to senses, but ...
user avatar
0 votes
2 answers
204 views

How to change the owner of the folder named $RECYCLE.BIN in ubuntu 16.04 LTS?

I want to change the owner from root to user of a folder named $RECYCLE.BIN. I'm using ubuntu 16.04 LTS. I'm new to ubuntu.
user avatar
0 votes
0 answers
33 views

How to change back ownership? [duplicate]

I change owner of some root files and folders like /etc/sudoers to www-data by mistake! And now I can't use "sudo" at all! How can I change them back to my user? It a ubuntu 18.04 server and I can ...
user avatar
  • 836
1 vote
1 answer
454 views

How to restore my Firebird database and modify owner settings in a single command line?

I am using Ubuntu 18.04.4 LTS and I've recently upgraded from Firebird 2.5 to Firebird 3.0. Prior to upgrading, I was restoring my local database with the following unzip&replace command: zcat /...
user avatar
0 votes
0 answers
32 views

Gaining write permissions on internal hard drives (formally Windows drives)

I have a problem and hope you can help me. I have two hard drives mounted, which were originally created under Windows. Windows has been removed and Linux is the only operating system installed. The ...
user avatar
-1 votes
1 answer
2k views

How do i set my Downloads dir in home as default for downloading file?

I accidentally moved my Downloads folder to some dir in usr. I moved it back to home but now all my files get downloaded in Documents and Downloads dir have root as owner have permission to create and ...
user avatar
2 votes
3 answers
8k views

What does chown 999 mean?

I know what chmod (change mode) and what chown (change owner) do. I also understand what the numbers mean after chmod do. I was going through a docker tutorial and I saw chown 999 being used. What ...
user avatar
  • 123
1 vote
1 answer
1k views

nautilus/nemo/other file manager - suggestions for more accessible GUI-based owner management?

Short version TL;DR - When running nemo/nautilus with elevated privileges*, there are a TON of users/groups on the permissions tab... they're all jammed in non-searchable drop-downs that don't have ...
user avatar
  • 213
2 votes
1 answer
699 views

Ubuntu 19: How do I mount an old HDD?

I recently bought an SSD where I installed Ubuntu 19. I decided to use my old HDD as extra storage. However, the mounted HDD is unusable as it requires root access. I can't change it from the ...
user avatar
0 votes
1 answer
604 views

Need help to fix owner, groups and user permissions in Xubuntu 16.04.6

Some time ago I messed up my system users and groups permissions, now I can't run users-admin command, the output is : the owner of /home/vladimir/.config/ibus/bus is not vladimir!(the owner is root), ...
user avatar
1 vote
1 answer
655 views

How to undo: sudo chown -R username:username on home

I accidentally ran the command: sudo chown -R username:username * on home directory (username = mili). Now I often have problems with group permissions when working on projects. Fix that work is ...
user avatar
  • 111
0 votes
1 answer
3k views

Using chown successfully but not actually changing user ownership in Ubuntu bash on Windows 10? [duplicate]

I'm using the Ubuntu bash on Windows 10(v1804) and am experiencing a problem with the chown command. I'm trying to change the ownership of a file I created on my desktop with the following path: mnt/...
user avatar
0 votes
0 answers
136 views

Ownership issue (homer software)

I am trying to install homer software and every time its not completing, the folder is inside my home directory and i started with sudo then to i am unable to install, can any 1 help me to resolve ...
user avatar
  • 1
1 vote
1 answer
2k views

sleep not working in service

I put ExecStartPre=/bin/sleep 60 into a unit file (service) in 18.04 Ubuntu [Unit] Description=Berkeley Open Infrastructure Network Computing Client Documentation=man:boinc(1) After=network-online....
user avatar
1 vote
0 answers
3k views

PHP returns "permission denied". Possible ownership issue?

As an update. I just figured that it works okay for one level. For example, mkdir('/var/www/laravel/storage/first', 777, true) but doesn't work when there are multiple levels like mkdir('/var/www/...
user avatar
1 vote
1 answer
2k views

.gnupg/ and gpg.conf owner and permissions to satisty both GnuPG and Enigmail

Enigmail wants $USER to have the write permission on ~/.gnupg/ directory but the gpg tool then complains about insecure permissions : $ ls -ld ~/.gnupg drwxrwx--- 1 root xyzt 248 févr. 25 16:34 /home/...
user avatar
  • 1,467
1 vote
1 answer
1k views

How to create a .tar.gz file owned by a specific owner and group?

I want to create a tar.gz file of a directory which will be owned by a certain user and group (and not by root, who is creating the archive). Basically, I want to combine the following to one single ...
user avatar
1 vote
0 answers
1k views

How to check if TPM2.0 is owned and if TPM is enabled in Ubuntu 16.04?

Is there any command to check if TPM2.0 is owned and if TPM is enabled on Ubuntu 16.04? We are using TPM2.0, Intel TXT, Ubuntu 16.04 and DL380Gen10 server.
user avatar
0 votes
0 answers
91 views

Do groups own files?

I assumed that if a user was in a group, it would have access to the files associated with it, e.g. drwxrwxr-x 9 bitnami rootandbooly 4096 Jan 10 16:31 htdocs boolyXXX@XXXX:/opt/bitnami/apps/...
user avatar
  • 291
3 votes
1 answer
400 views

How to get Nautilus to propagate group ownership permissions when mounting with gvfs/sftp

I'm mounting a remote linux file system on Ubuntu 16.04 using Nautilus by "Connect to server" then sftp:myusername@myhost/home/myusername/scripts/myfile.ext The file has ownership myusername:groupA ...
user avatar
  • 414
2 votes
0 answers
2k views

ProtonMail bridge installation for a newbie

Just installed Ubuntu 18.10 two weeks a go and it's my first Linux distro. Everything's working fine and I want to start playing with the terminal. So I want to install this still in beta ProtonMail ...
user avatar
3 votes
1 answer
700 views

Finding which program has created a specific file

I'm making an application on my Ubuntu 16.04 pc, and I want to clean my home, because I installed and uninstalled lots of programs and now I have lots of files in my home that aren't mine but ...
user avatar
  • 146
1 vote
1 answer
2k views

Change ownership of a file transfered using Samba

When I transfer files or folders using Samba from a Windows computer to a Kubuntu computer, the file's owner is set to "Nobody" and I cannot access it. Is there a way to assign the ownership ...
user avatar
  • 195
0 votes
1 answer
2k views

How do I change ownership of a folder in my downloads folder? [duplicate]

I have a folder in /home/downloads that's called wonderdraft. I wish for this folder to be owned by my user. How do I do this? Thank you in advance.
user avatar
3 votes
1 answer
1k views

Does running a bash script as root change the ownership of files to root? [closed]

I know I should just test one of my scripts on a file after making a backup copy, but I'd like to know if it will make any difference, as I have several scripts that perform identical tasks on ...
user avatar
0 votes
1 answer
304 views

Cannot Get Windows Shares To Work Via Samba On Ubuntu Server 18.04.1 And New Drive; Cannot Change Owner

I have a file server running 1TB HDD (sdb) with a single partition and two directories shared via Samba that are accessible by our Windows, Mac and Ubuntu computers. This setup works perfectly. I ...
user avatar
1 vote
0 answers
1k views

Jenkins Docker container rights/owner needed to access the jenkins-home

So, I have followed this tutorial to migrate my already configured Jenkins inside a Docker container, this works quite well. At the end of the tutorial, I launched the command: sudo chmod -R 777 ~/...
user avatar
  • 111
0 votes
2 answers
472 views

Rsync and ownership/permissions

Now I have a question... I am creating a backup of my entire owncloud data directory but when I check the result, the ownership and permissions are not the same. What am I doing wrong? sudo rsync -...
user avatar
  • 129
0 votes
1 answer
75 views

wrong owners on ext4 drive after new installation

I have installed linux from scratch on a machine that has previously linux running. On my additional "data" drive (only data, no system files) with ext4 filesystem, the file owners / groups are not ...
user avatar
  • 3
0 votes
1 answer
236 views

Annoying user password authentication every time I open a picture

I transferred pictures via pscp from Windows to my Ubuntu VM, but every time I open the pictures inside my VM, it asks for a password TWICE. I thought it's about the ownership, so I tried using chmod ...
user avatar
0 votes
0 answers
62 views

File group has changed without me changing it

I was working with a file today that I don't own. I copied it to a /tmp folder, gave myself sudo permissions and then changed the owner to myself using chown. I then made my changes. Afterwords I ...
user avatar
  • 1
1 vote
0 answers
510 views

Rsync Nexcloud data folder - ownership

My Nextcloud data folder is on a Ubuntu Server 16.04 NUC and I have a Raspberry Pi that I use only to backup my entire Nextcloud data folder. To do this, from the Nexctloud server, I run sudo rsync -...
user avatar
  • 129
0 votes
1 answer
2k views

Nautilus doesn't show ownership change after `chmod`

I have been trying to change the ownership of a folder from "root" to "caleb" (the user). When I attempt to change it in the terminal, it states that it has been changed, but when I look at the ...
user avatar