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
30 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
0answers
37 views

Newbie trying to solve a task from a Linux learning website

I am giving a try to Linux/Ubuntu and want to really understand it. There is a task at a Linux learning website waiting to be solved and I have been working on it for... long hours (shame on me) but ...
0
votes
1answer
30 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
36 views

How can i modifiy files in the snap folder?

i install python charm in software center and this program installed on /snap/ this directory i want to edit this folder! when i see properties of one file i see this is have Owner permission how ...
0
votes
0answers
23 views

How to change the user that starts a process in boot?

I've just installed svxlink in ubuntu 18.04 LTS. Everything works well, but after a reboot (or start up) the program is started under the user svxlink and not root. Root would be necessary, so outside ...
0
votes
0answers
27 views

changing ownership of '/opt/stack/requirements/.venv/bin/pip': Operation not permitted

I was trying to change the ownership as a root on ubuntu 18.04 as below: chown root /opt/stack/requirements/.venv/bin/pip It gave me the error as below: changing ownership of '/opt/stack/...
0
votes
0answers
23 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
42 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
294 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 ...
0
votes
0answers
25 views

Allow R to write directory

I wanted to update R packages via R session and got the error 'lib = "/usr/lib/R/library"' is not writable So I have the options of choosing a new directory for the packages or to make the directory ...
1
vote
1answer
327 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 ...
1
vote
1answer
185 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
0answers
26 views

User access rights for specific folder after custom install

I have followed partly tutorials like https://help.ubuntu.com/community/LiveCDCustomization. My intention was to add some extra packages to the existing build of ubuntu mate. I mounted with readwrite ...
0
votes
1answer
328 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
248 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
1k views

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

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
84 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
285 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
1k 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/...
0
votes
1answer
586 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
395 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
516 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
72 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
181 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 ...
1
vote
0answers
1k 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
163 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
837 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
406 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
411 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
166 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
546 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
173 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
40 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
81 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
27 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
324 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 ...
2
votes
1answer
4k 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
941 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 /...
9
votes
1answer
27k 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
1k 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
914 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
921 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 ...
11
votes
4answers
2k views

Does root ownership and exclusive access imply encryption?

If I have a file with permissions and ownership like: -rw------- 1 root root, is this file encrypted? I am asking this because I am wondering how the file is really protected against being read as ...
0
votes
1answer
801 views

Change the owner of a subdirectory on a mounted drive

I have my home folder linked to a folder on a mounted partition in have mounted it via fstab and the uid is the id of root the gid too. How do i change the owner of the subdirectorys on the mounted ...
0
votes
1answer
673 views

new ext hard drive. how change from ROOT owner to me?

Installed new external hard drive. Won't let me install data. Ownership listed as ROOT. How do I change ownership to ME? (Disk was reformatted from msdos/NTFS to GPT/ext4)
5
votes
1answer
167 views

Made users members of the group that owns the directory, but they still cannot access it

I wanted to make a share folder for my parents. I created a system user with adduser, created a home folder which I wanted to use as a share folder. The name of this folder is share, the name of the ...
0
votes
0answers
64 views

External and internal user mounted storage devices permissions issue

When I'm trying to mount storage devices as a normal user (the well known double click as normal user to mount partitions and flash devices) I have this issue (there's another entry in this forum ...
0
votes
3answers
2k views

Sudo ownership changed, can't use sudo to fix it [duplicate]

I am using Ubuntu 17.04. By mistake, I have changed the ownership of sudo. So now I can't make any changes as the chown command I could use to fix it needs sudo. If I use sudo I get sudo: /usr/...