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
298
questions
0
votes
0
answers
36
views
ubuntu:ubuntu owns "/" - all server files
So recently, I made a mistake. I did;
sudo chown -R ubuntu:ubuntu /
Now, my server is pretty non-functioning, and the fact that my server is using 100% of it's space, doesn't make the situation any ...
0
votes
0
answers
28
views
can't take the ownership of my secondary hard drive [duplicate]
i have a ntfs hard mounted on /mnt/HDD and i want to change the ownership of the files inside from root to amiroof. i tried
sudo chwon -R amiroof:amiroof /mnt/HDD
but that didnt worked and the ...
0
votes
0
answers
89
views
I cannot rm -rf this directory Permission denied even though I have perm WSL2 ubuntu
So there is this location ~/.local/share/nvim/mason/.packages
for mason to properly install packages it apparently needs to be able to remove stuff within this folder
however my user doesn't have perm ...
1
vote
1
answer
174
views
how to us the chown command and mv with find command
I have been searching around and found this question which almost solved my problem. The goal is to have a folder on Ubuntu server which other computers connect to and save files. I have two ...
0
votes
2
answers
1k
views
Give read only access to every user for a folder
I am the owner of directory mydir.
I don't have root access.
How can I give only read access to someone so that they can create a local copy of mydir?
Edit: ChatGPT tells me chmod -R o+r mydir should ...
0
votes
0
answers
25
views
sudo command is not working [duplicate]
The file permissions of my ubuntu system got changed somehow and running any sudo command gives the following error
sudo: /etc/sudo.conf is world writable
sudo: /usr/bin/sudo must be owned by uid 0 ...
0
votes
1
answer
73
views
How to recover from running "chown -r ubuntu /" [duplicate]
I ran chown -r ubuntu / on my system, and everything is gone. Is there any way to recover? This is a server server hosted on OHV.
0
votes
0
answers
33
views
Permissions for network file system
Is there any NFS/cifs/smb that allows for setting full uid/gid and permissions?
I would like the files to be on the network so that in event the machine goes down, the data is still easily accessible ...
0
votes
0
answers
225
views
Ubuntu 22.10 login loop
I removed the Adwaita theme/icon using Stacer (a cleaner app) and it causes a login loop.
1
vote
1
answer
1k
views
How to auto mount drive with user permissions
When I mount a drive using fstab, it is owned by root, and I cannot write to it. I have tried chowning the folder where it gets mounted but it does nothing while mounted, and doing it when unmounted ...
0
votes
0
answers
102
views
Give permission to other users to access disk
I created a new disk and mounted it and made entries in fstab file but the disk can only be accessed by the root user.How to
1.Give permission of read and write to the disk for other users
2.Give ...
-4
votes
2
answers
2k
views
chown: invalid user: ‘user:group’
sudo chown is resulting in this error.
Can someone please help?
chown: invalid user: ‘user:group’
Screenshot of Error message
-1
votes
2
answers
239
views
Changing ownership of a folder and future subfolders
I am running an ubuntu server.
Chown -R plex.plex /Folder just changes the permission of the current folder/subfolders/files. If i create a new folder it doesnt change the ownership to what i want. ...
0
votes
0
answers
117
views
How change login userid Ubuntu 22.04
Repair person installed Ubuntu 22.04 with user "owner" on my desktop. My previous userid was "ron". I have copied some directories and files to my new install from my HD backup ...
0
votes
0
answers
68
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 ...
0
votes
1
answer
264
views
Will usermod update all file and folder permissions correctly?
I have an issue with docker, because docker will write files with UID 1000, but my UID in the host is 1001.
a workaround is changing UID of my host user to 1000
that means
change the existing user in ...
-1
votes
1
answer
2k
views
Unable to change file and folder owner and permission from root to other users ( Ubunto 20.4)
I am new to linux. I have a partition in which all the folder and files owner is set as root.I am unable to change anything using chomd and chown when i write the commands as : sudo chown -c -v user ...
0
votes
0
answers
255
views
How do I use chown -R to include all hidden files and subdirectories except the parent directory (..)?
chown -R owner:group dir/* doesn't change hidden files and directories that begin with '.'.
chown -R owner:group dir/.* seems to recursively change hidden files and directories but also changes dir/../...
0
votes
1
answer
143
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 change ...
0
votes
0
answers
51
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 ...
3
votes
0
answers
847
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 ...
0
votes
0
answers
69
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 ...
0
votes
1
answer
68
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 ...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
59
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
474
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,...
1
vote
0
answers
188
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 ...
0
votes
0
answers
990
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 ...
0
votes
1
answer
1k
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?
...
1
vote
1
answer
241
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 ...
1
vote
1
answer
999
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 ...
1
vote
0
answers
9k
views
sudo chown command fails to give ownership to user account [duplicate]
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 ...
-1
votes
1
answer
354
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 ...
0
votes
1
answer
1k
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.
$ ...
0
votes
0
answers
56
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 ...
0
votes
0
answers
455
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 ...
0
votes
0
answers
1k
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 ...
-3
votes
1
answer
3k
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 ...
0
votes
0
answers
183
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. ...
0
votes
1
answer
480
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 ...
0
votes
0
answers
319
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 /...
0
votes
0
answers
25
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.
0
votes
0
answers
357
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 ...
0
votes
0
answers
491
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 ...
0
votes
1
answer
44
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 ...
0
votes
1
answer
803
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 ...
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 ...
0
votes
0
answers
400
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 ...
-2
votes
1
answer
1k
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 ...