Questions tagged [chown]

`chown` is an abbreviation of "change owner". This command is used to change the owner and group owner of a file or directory

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 views

addgroup and chown in Ubuntu

I created a new group with this command: sudo addgroup user123 assign few users to user123 group: sudo usermod -aG user123 sam Created a shared directory named user123 but when I try to changed ...
user avatar
  • 3
0 votes
0 answers
28 views

How do I restore permissions for Plex?

I changed the groups to plex in permissions but now I can't use this command: sudo chown [modifiemind]:[modifiedmind] [ /media/modifiedmind/526e202e-aba3-4b63-bab0-90bce04bd5ad] to get my permissions ...
user avatar
1 vote
0 answers
52 views

root ownership after mounting a drive with ext4 format

I have formatted with ext4 format by GParted: (1) an USB flash drive and (2) an external hard drive. So far so good, but now they have root ownership and non edit permissions. I can update the ...
user avatar
  • 381
0 votes
0 answers
67 views

Root account is really not used in Ubuntu? [duplicate]

I'm trying to eliminate some mysterious "Evolution" notifications I keep getting. Google tells me to edit the /etc/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop file, but it is ...
user avatar
0 votes
1 answer
32 views

I had to reinstall 20.04 and did it badly.. I gave the wrong 'user id' and now cannot access the files... ouch!! how to fix the file / dir mess? [closed]

I have used Ubuntu Linux for at least 10 years, and had a problem. So I re-installed 20.04 and forgot my 'user id' and gave it a new one. Installation went well, but all those disks not involved have ...
user avatar
0 votes
1 answer
313 views

Unable to change permissions and user:group of SMB mounted directory

I have a trueNAS SMB mount to a Proxmox VM directory. The mount works fine however, in order for services to automatically move files from one part of the same directory to another, I need to remove ...
user avatar
0 votes
0 answers
28 views

Add Read/Write Permission to Partition

How can you change add Read/Write access to a partition? It was made on Windows, in a exFAT format. When I have it mounted on system startup, I cd into /mnt/myuuid, I got read access, but not write ...
user avatar
0 votes
1 answer
579 views

chown Operation not permitted

I had original made a Stack Overflow post. I've this command causing errors further down my Jupyter Notebook (detailed in SO post): ! chown -R daemon:daemon elasticsearch-7.9.2 Giving many of these ...
user avatar
0 votes
0 answers
40 views

I have recursively changed the ownership of /usr

Okay my first time asking here because I can't find a similar question and probably wrecked my OS, so I need urgent help. Today in the morning I've tried to install the Robust Control Toolbox in ...
user avatar
0 votes
1 answer
49 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
1 vote
0 answers
71 views

how to fix this huge mistake I ran sudo chown -R user / [duplicate]

How can I fix this issue? the user is not the root one and unfortunately one of the mounted disks that got affected too was the apps disk of my windows but I am not sure if it got affected as I can ...
user avatar
0 votes
0 answers
341 views

chown operation isn't persistent after reboot on 20.04

Recently I have an issue where I have to use a tty to change permissions of my home directory back to my primary user and this happens at every boot. I have no idea what is causing this to not be ...
user avatar
0 votes
0 answers
19 views

chown gerd / correction

I did a very bad mistake, I wrote this fatal error in Terminal. And no start of system more. Apparently it passes grub but, perhaps, dont find users. After I changed all to root (chown root /), after ...
user avatar
  • 1
0 votes
1 answer
343 views

Using chown to change ownership on additional HDD

OS Linux 20.04. Having installed an additional HDD in position /dev/sdc1 (Label Data 22) I am confronted with root as owner. Is either of the following syntaxes correct in order to set me up as owner? ...
user avatar
  • 1
1 vote
1 answer
151 views

I ran the following commands by mistake in my Ubuntu 21.04 machine and then everything became broken [duplicate]

Good evening, please I ran the following commands by mistake in my Ubuntu 21.04 machine and then everything became broken... sudo chown john: /* sudo chown john: /** sudo chown john: /**/** and sudo ...
user avatar
  • 47
1 vote
1 answer
319 views

Do I need to use both chown nobody:users and chmod 755

In the command line chown nobody:users /mnt/user/A && chmod 755 /mnt/user/A can I use only chmod 755 /mnt/user/A to give access to anyone or do I need both to make it fully accessible for ...
user avatar
0 votes
0 answers
94 views

Changing ownership of external HDD

I have just added a 4TB external HDD to my systemand formatted it ext4. Root is the owner by default. I have tried to change the owner to adriaan using chown: Sudo chown -R adriaan /dev/sdb When I use:...
user avatar
0 votes
0 answers
6k views

sudo chown command fails to give ownership to user account

I have tried running sudo chown dendy /mnt/storage1/ which returns chown: changing ownership of '/mnt/storage1/': Operation not permitted I have also tried sudo chmod 777 /mnt/storage1/ which does not ...
user avatar
  • 1
-1 votes
1 answer
110 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
1 answer
492 views

`chown postgres` of a subdirectory not working for a new disk

To give postgres more space, I mounted a ssd at: /mnt/fast_data/ What I'd like to accomplish is to give the postgres user ownership to the postgresql directory, so it doesn't say permission denied. $ ...
user avatar
  • 5
0 votes
0 answers
29 views

Ubuntu 18.04 unable to login as user, but can login in tty3

I accidentally messed up the permissions by typing sudo chown -R root:root /usr. It was supposed to usr instead of /usr. anyway, I lost sudo function and showed the error message sudo: /usr/bin/sudo ...
user avatar
0 votes
0 answers
117 views

After chown 777 to the folder, it is still blocked

chmod chmod -R 777 /media chmod -R 777 /media/guoyi chmod -R 777 /media/guoyi/pc Then it is still blocked and I use ln -s /media/guoyi/pc/x /home/guoyi/desktop Then the link is also blocked. What's ...
user avatar
0 votes
0 answers
600 views

How can I change owner of mounted directory?

I'm using ubuntu server 20.04 on raspberry pi 4 and I want to change the owner of the external drive for changing permission for my server. But I can't change the owner even using sudo su and chown. I ...
user avatar
-3 votes
1 answer
1k views

chown: cannot access 'lisa': No such file or directory

root@ubuntu:/home/menna# chown root lisa chown: cannot access 'lisa': No such file or directory I enter this command but it didn't run! note: I try to use sudo but it didn't run note 2 : lisa is the ...
user avatar
0 votes
0 answers
129 views

Trouble with CHOWN

Used Testdisk to recover deleted files. Selected directory /Downloads. But Testdisk saved all files to /home/.Trash-1000/expunged All files have a lock symbol Cant copy these files nor open them. ...
user avatar
0 votes
1 answer
330 views

What are the proper chown and chmod syntax?

I am trying to change ownership of a file/directory and seem to be doing something wrong, is it my syntax or...what? michael@michael-desktop:/media/michael/Films$ ls -l total 1536 drwxr-xr-x 2 michael ...
user avatar
0 votes
0 answers
218 views

untar OpenFoam v2012 on Ubuntu 20.04 LTS under WSL2

I try to follow the OpenFOAM installation guide on Windows 10. However I can't get to the final files as I get trouble with the following command: '''sudo tar -xvzf OpenFOAM-v2012-windows10.tgz -C /...
user avatar
  • 1
0 votes
0 answers
23 views

How to chown all root directory to root [duplicate]

I accidentally set the whole of / to another user other than root and it messed up sudo etc. I managed to get sudo back but how do I reset everything else? Back to root.
user avatar
0 votes
0 answers
153 views

How to allow group members to create files and sub-folders and allow other group members to access the file

I have created a group and added group members to it. I use Linux server whereas all other group members use Windows 10, 7 and 8.1. I have given access to the group members to create folders and files ...
user avatar
0 votes
0 answers
254 views

Problem with chown and vsftpd too slow

So me and a couple of friends have a ubuntu 20.04 server. We installed vsftpd to connect with filezilla and be able to upload and download files. After like 1 hour playing with the permissions to ...
user avatar
0 votes
1 answer
40 views

I'm permanently the sole user of my machine, how can I make it so all files/folders/dirs ect. are set to me as the owner?

Ubuntu 20.04. It's often that I get a message saying something like "you're not the owner of this file, unable to change". No one will ever be on my machine and I'd like it to recognize me ...
user avatar
0 votes
1 answer
151 views

How do I uninstall software that was installed with Wine?

I am a newbie in Linux and I have a problem uninstalling applications. I ran this command in console: sudo chown -R $USER: ~/.wine, and after that I saw many programs, which I have not installed. Here ...
user avatar
0 votes
0 answers
9 views

return user permissions to root, sudo broken [duplicate]

i've been having troubles importing CA certificates using the terminal, so I pulled an idiot move and did sudo chown user /usr/ in order to copypaste the CA cert into the desired folder, now sudo ...
user avatar
0 votes
0 answers
138 views

Custom script throwing `Permission denied` when I have all permissions and ownership of the files, could the reason be the file location?

I placed the main script in: /usr/local/bin/ Its files (data and scripts to source) in /usr/local/custom-script/ I used chown on all files and custom-script directory to give a normal user the ...
user avatar
  • 101
-2 votes
1 answer
621 views

chown won't let me change owner of drive and keeps saying invalid user when I'm the ONLY user

chown just won't work. I added a second hard drive to Ubuntu, formatted to ext4 with label hpmachine for file storage. Rebooted, and it mounts fine. I changed the permissions with chmod -R 777, but I ...
user avatar
  • 109
6 votes
1 answer
768 views

chown $www-data results in invalid option -- d

Trying to set up a lamp development environment by following this guide: https://www.linode.com/docs/web-servers/lamp/how-to-install-a-lamp-stack-on-ubuntu-18-04/. Trouble starts at the virtual hosts ...
user avatar
  • 219
1 vote
2 answers
903 views

The files in a correctly mounted drive are not visible, only a few empty folders are visible

Yesterday I decided to upgrade from 16.04 LTS to 20.04 LTS. I have my home directory on a different partition. The upgrade to 18.04 went smooth, and the upgrade to 20.04 was well underway when the ...
user avatar
0 votes
1 answer
121 views

Stuck on boot splash screen after chown -R user /*

I ran: chown -R [myuser] /* by mistake and now Ubuntu won't boot. All I see is the loading screen for Ubuntu. I cannot ssh into the machine. The Apache server is down, but ping works. In root shell (...
user avatar
0 votes
1 answer
116 views

"You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

I wanted to convert a Ubuntu 18.04 BIOS to Ubuntu 20.04 UEFI. To do this in (what I thought was) the most efficient approach, I physically removed the secondary storage SSD and used the option to &...
user avatar
1 vote
1 answer
601 views

Giving owner permissions to www-data: is it a security risk?

I have a small website running on a VPS. I'm using Nginx as a web server (a simple LEMP configuration). But now i have a problem: i have a small php script that needs to be able to write a log every ...
user avatar
  • 177
1 vote
0 answers
449 views

Cannot change file permission and ownership

I'm using Google Cloud with Ubuntu 20.04 and using Guacamole to RDP into the machine. I have created a bunch of users and wanted to change folder permissions and file permissions of the files I'll be ...
user avatar
0 votes
1 answer
109 views

Can't get simple cron job to run

I have a simple sftp server to exchange files with friends. Whenever someone drops file into it, they're the sole owner of that file and I cannot delete it without using sudo, so I want to run a ...
user avatar
  • 177
0 votes
1 answer
114 views

How to limit the user access to a directory in external drive?

I have a Raspberry pi 4 with Ubuntu Server 20.04 LTS installed. There, i have a Git repository hosting (precarious) for my personal projects, but i'm trying to use it for a team project. The Git ...
user avatar
0 votes
1 answer
261 views

Wrong chown on root /

There are lot of questions regarding the same mistake , What i did was : chown -R root:www-data myfolder / by mistake i typed a space between the folder & / . Then i was not able to do sudo ...
user avatar
  • 103
2 votes
1 answer
245 views

Changing directory and file permissions

I am trying to change the owner and group of a directory that happens to be on a mounted drive. I can run sudo chown and sudo chgrp on the directory however, when I look at the group and owner, ...
user avatar
5 votes
2 answers
3k views

Can't change the owner back to the root (can't use sudo command) in WSL Ubuntu

I faced this issue when I want to use sudo command : sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin then ...
user avatar
0 votes
1 answer
505 views

I changed chmod to /usr/share/applications/ how to undo

I have just installed today ubuntu, and at the end of the day to add an application to favorites I have changed access to /usr/share/applications/ by: chmod 744 /usr/share/applications As a result ...
user avatar
  • 13
2 votes
1 answer
5k views

Undoing `chown` command?

I was installing a few softwares which prompted that : Download is performed unsandboxed as root as file couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) So I did: ...
user avatar
  • 21
0 votes
1 answer
104 views

My root directory (/) is owned by my user. Shouldn't it be owned by root?

When I run ls -la /, it shows that . and .. are owned by my user, and are my user group. I am almost positive that / should be owned by root and that I must have accidentally chowned / but it's been ...
user avatar
  • 446
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
2 3 4 5 6