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
0answers
22 views

Can't change ownership of a directory

I have a Kubuntu VM where I have a shared folder mounted as /vmshare When I realized that root was the owner (and not me) I did this: user@pc:/$ sudo chown user vmshare -v changed ownership of '...
0
votes
2answers
43 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 ...
0
votes
3answers
137 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. ...
0
votes
0answers
49 views

Error in taking TPM ownership “invalid TCTI, see --help”

on Ubuntu 18.04, I installed TPM2 tools for my TPM operations using sudo apt-get install tpm2-tools I tried to take ownership using below command tpm2_takeownership -o password -e password -l password ...
0
votes
0answers
30 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 ...
0
votes
1answer
121 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 ...
2
votes
0answers
107 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 ...
0
votes
1answer
154 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?
0
votes
0answers
39 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 ...
0
votes
1answer
2k 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 ...
0
votes
2answers
104 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.
0
votes
0answers
29 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 ...
0
votes
0answers
34 views

How to take ownership for ntfs mounted drive [duplicate]

So new user here, decided to change my server to ubuntu 20.04. So far i like it a lot. I'm running into an issue tho, i have multiple hard drives with tb of data all in ntfs. Don't really want to have ...
0
votes
1answer
229 views

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

So 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: ...
0
votes
0answers
29 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 ...
-1
votes
1answer
701 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 ...
2
votes
2answers
3k 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 ...
1
vote
1answer
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 ...
2
votes
1answer
356 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 ...
0
votes
1answer
489 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), ...
1
vote
1answer
444 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 ...
0
votes
1answer
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/...
0
votes
0answers
110 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 ...
1
vote
1answer
1k 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....
1
vote
0answers
2k 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/...
1
vote
1answer
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/...
1
vote
1answer
843 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 ...
1
vote
0answers
857 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.
0
votes
0answers
81 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/...
3
votes
1answer
290 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 ...
2
votes
0answers
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 ...
3
votes
1answer
354 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 ...
0
votes
1answer
1k 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 ...
0
votes
0answers
71 views

Cannot change ownership of NTFS partition [duplicate]

Somehow, (probably caused by my actions!), the ownership of all of my files and directories in an NTFS drive has been changed to root. Thus for example some text files, although they appear with the ...
0
votes
1answer
977 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.
3
votes
1answer
701 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 ...
0
votes
1answer
210 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 ...
1
vote
0answers
763 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 ~/...
0
votes
2answers
376 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 -...
0
votes
1answer
49 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 ...
0
votes
1answer
177 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 ...
0
votes
0answers
45 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 ...
1
vote
0answers
417 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 -...
0
votes
1answer
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 ...
4
votes
1answer
13k views

How can I change the file ownership to root on ubuntu 14.04 [duplicate]

How can I change the file ownership to root on ubuntu 14.04
1
vote
1answer
1k views

`root` owns some files in `/home/user` should I be concerned?

$ sudo find /home/rick -user root /home/rick/.dbus /home/rick/.dbus/session-bus /home/rick/.dbus/session-bus/d7b25a27fe064cadb75a2f2f6ca7764e-0 /home/rick/.cache/dconf /home/rick/.aptitude/config /...
10
votes
1answer
38k views

How to change the owner of a file or folder?

Sometimes I use root account to create some file for normal user. But it is just for convenient. And I really hope the owner of this file should be the user I create this file for. How can I change ...
2
votes
1answer
3k views

Can't change folders ownership from root to a user

I tried to change the ownership of two folders with the following commands: chown -v lfs $LFS/tools chown -v lfs $LFS/sources At the time the commands succeeded as I saw a message saying the change ...
0
votes
1answer
1k views

How to update the owner of the file with rsync?

I used the rsync to copy files from a remote location. After the copy, on the destination server, the files has different ownership. How can I use the rsync to update the ownership of the files? (...
1
vote
0answers
1k views

Assign file ownership to a certain user does not work

I am trying to assign ownership of a certain file (FILE) to a user (A). I log in as root and run chown A FILE but nothing happens. If I add the group option (chown A:A FILE), the group is changed but ...