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
-2 votes
2 answers
83 views

Need detailed clear instructions in English how to get ownership of my partitions back

I posted this on another forum, and days later I got two one sentence answers written in gobbledygook. I've no idea what they are talking about OR what it specifically is they want me to do - or, ...
Dora Smith's user avatar
0 votes
1 answer
55 views

Problem changing owner and permissions on new external drive

I just installed a new 2TB external drive (Ubuntu 20.04), created one partition, and formatted it to ext4. I mounted it to /mnt/ssk2TB. Now the drive shows in my Nautilus file explorer, but when I ...
RTC222's user avatar
  • 237
1 vote
0 answers
23 views

Permission denied when running script, but correct file permissions and ownership are in place [duplicate]

I am unable to run scripts that I previously had been doing: $ SCRIPT.SH bash: /media/USER/PATH/bin/SCRIPT.SH: Permission denied Checking the file permissions and ownership, that are as expected: $ ...
Broadsworde's user avatar
  • 4,132
0 votes
0 answers
48 views

Ownership of External Drive on Ubuntu Server

I am having a lot of trouble with a Western Digital 6TB external drive since I've first used in a year or so ago. To begin with, I was getting into the world of servers and was making use of an old ...
Jake's user avatar
  • 1
-1 votes
1 answer
345 views

How to chown of a directory in another disk? [duplicate]

I have a dual boot with ubuntu 22.04.2 on one disk and windows 10 on another. The disk with windows is under the user 'lucas', but this provides no security whatsoever for any files in the windows ...
programmer with problems's user avatar
7 votes
1 answer
2k views

scp: How to change ownership of folder and files while transferring files

When I transfer folder with files from srv1 with the username srv1 to srv2 with the username srv2 then the transferred folder and its containing files on srv2 are keeping the ownership srv1 scp -r /...
user19559647's user avatar
0 votes
1 answer
77 views

Bluemail notification sound - Permissions under snap folder

I'm relatively new to Ubuntu and Linux in general, so I'll try to explain the best I can. I want to change the sound notification of my Bluemail snap app but there are no options in the settings, so I ...
Pat Duff's user avatar
0 votes
1 answer
992 views

Correct ownership and permissions of /media folder and folders of external drives

I was trying to run a synchronization program to sync files on a drive and on my computer. The synchronization program said it could not access the files on the USB drive. I changed the permissions ...
Tim X's user avatar
  • 1
0 votes
0 answers
35 views

I've created a live Ubuntu USB and resized partitions. What do I need to do to access and use those partitions?

I've created a live Ubuntu USB and resized partitions. What do I need to do to access and use those partitions? Here's what fdisk -l gives me: Disk /dev/sda: 57.33 GiB, 61555605504 bytes, 120225792 ...
Hertfordkc's user avatar
0 votes
0 answers
80 views

Migrating ownership from macos

I switched from Macos to Ubuntu, now I am trying to own my mac homefolder with Ubuntu. I thought to be smart and use the same username (ruut) and password for the new account and homefolder, but that ...
Ruut's user avatar
  • 1
0 votes
0 answers
177 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 ...
Maq's user avatar
  • 1
0 votes
1 answer
519 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 ...
Baard Kopperud's user avatar
0 votes
0 answers
26 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:...
Chang Zhao's user avatar
1 vote
1 answer
460 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&...
Paul A.'s user avatar
  • 2,141
0 votes
1 answer
910 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,...
Admia's user avatar
  • 145
0 votes
2 answers
2k 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 | ...
xpt's user avatar
  • 1,045
1 vote
1 answer
3k 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 ...
Wade John Beckett's user avatar
-1 votes
1 answer
514 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 ...
Craig Underhill's user avatar
1 vote
1 answer
748 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 ...
shortmort37's user avatar
0 votes
2 answers
1k 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 ...
Toad Box's user avatar
0 votes
3 answers
1k 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. ...
Unrivalled confusion's user avatar
0 votes
0 answers
145 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 ...
Solinx 's user avatar
1 vote
3 answers
702 views

How to write a shell pipeline to print the group owner of all sub files a directory?

I need to know the group owner of the files in a specific directory, including the files in its subdirectories.
light's user avatar
  • 11
0 votes
1 answer
574 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 ...
Quenn's user avatar
  • 1
3 votes
0 answers
1k 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 ...
vanadium's user avatar
  • 87.9k
0 votes
1 answer
436 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?
Yura Gorelik's user avatar
0 votes
0 answers
53 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 ...
Shehan's user avatar
  • 31
2 votes
2 answers
10k 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 ...
Jovan Perovic's user avatar
0 votes
2 answers
323 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.
Souvik Barman's user avatar
0 votes
0 answers
66 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 ...
mahdiar's user avatar
  • 846
1 vote
1 answer
822 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 /...
mickmackusa's user avatar
0 votes
0 answers
35 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 ...
linuxnewbie's user avatar
-1 votes
1 answer
3k 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 ...
Pulkit Jain's user avatar
2 votes
3 answers
17k 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 ...
YulePale's user avatar
  • 123
1 vote
1 answer
2k 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 ...
zpangwin's user avatar
  • 273
2 votes
1 answer
1k 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 ...
Toussaint's user avatar
0 votes
1 answer
746 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), ...
vladimir pavloski's user avatar
1 vote
1 answer
983 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 ...
Milomir's user avatar
  • 111
0 votes
1 answer
5k 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/...
bambooch's user avatar
0 votes
0 answers
171 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 ...
krunal's user avatar
  • 1
1 vote
1 answer
3k 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....
Joseph Stateson's user avatar
1 vote
0 answers
4k 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/...
Sergey Solo's user avatar
1 vote
1 answer
3k 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/...
SebMa's user avatar
  • 2,291
1 vote
1 answer
2k 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 ...
Absonegative's user avatar
1 vote
0 answers
2k 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.
Venkata Ramana's user avatar
0 votes
0 answers
101 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/...
SeanJ's user avatar
  • 381
3 votes
1 answer
541 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 ...
deanresin's user avatar
  • 564
2 votes
0 answers
3k 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 ...
Ulfberht's user avatar
3 votes
1 answer
1k 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 ...
Guilherme's user avatar
  • 146
1 vote
1 answer
4k 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 ...
Kresimir's user avatar
  • 245