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
0answers
27 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
0answers
68 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
1answer
90 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
0answers
44 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
1answer
74 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
0answers
74 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
0answers
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.
0
votes
0answers
37 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
0answers
91 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
1answer
32 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
1answer
71 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
0answers
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
0answers
38 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
1answer
209 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 ...
6
votes
1answer
559 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 ...
1
vote
2answers
205 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 ...
0
votes
1answer
87 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 (...
0
votes
1answer
77 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 &...
0
votes
1answer
107 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 ...
1
vote
0answers
331 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 ...
0
votes
1answer
57 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 ...
0
votes
1answer
68 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 ...
0
votes
1answer
147 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 ...
2
votes
1answer
118 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, ...
3
votes
1answer
1k 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 ...
0
votes
1answer
189 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 ...
2
votes
1answer
2k 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: ...
0
votes
1answer
61 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 ...
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
votes
1answer
491 views

Plex keeps needing permission to update library on ubuntu server 18.04

So im still a ubuntu noob so im not very expirienced. I'm currently using plex and everytime i download something and transfer it to the right folder plex can't see the file but when i use chown or ...
3
votes
1answer
487 views

I did [chown -r root /usr/share/applications] when i just intended to only chown

I did an similar mistake back then [chown -r the whole /usr folder], and had to reinstall ubuntu and its apps (which is painful for me, mostly because i'm not used to the SO) I just wanna know if it ...
1
vote
1answer
423 views

How to change ownership of files recovered by Scalpel onto exfat partition?

I ran scalpel to recover files. The input disk is a copy of a failing Windows disk I made using ddrescue. The output directory (from scalpel) is on an exfat partition on my Linux disk. I used exfat ...
0
votes
1answer
310 views

How to give permissions to uwsgi to read a folder?

I am trying to give permissions to uwsgi to read a folder where my django project lives. I have tried the following command: chown -R root:uwsgi /home/myproject/mysite But I am getting this error: ...
1
vote
0answers
588 views

permission denied even as root!

recently we had to transfer some files between our servers(both ubuntu server 18.04). apparently the person who did this, didn't use the -a option of rsync(to preserve ownership information). So now, ...
2
votes
1answer
2k views

Use a ext4 USB stick as “normal” pendrive

My goal is to have a USB drive in ext4 and to use it as a normal Fat32/NTFS pendrive (or usb box drive). I would be happy to forget NTFS and Fat32 and to use this USB Drive with all pc in my local ...
23
votes
3answers
5k views

Inadvertently nuked my disk permission structure - why?

I was trying to chown within /opt and for some reason chown jumped up to the parent and chowned everything. Can anyone suggest why/how this might happen, and how to avoid doing it in future? It's a ...
1
vote
2answers
160 views

As a noob by mistake i ran “sudo chown $pranav.pranav -R /” to solve my Read Only Filesystem. If this is a bad thing, how should i undo this? [duplicate]

How should i do to undo this? I tried running fsck to solve my "Read only filesystem" before but it didn't help me much. It only solve the situation for a while and then it comes back again. So, i did ...
4
votes
1answer
248 views

Use chown -R while excluding one or two files

How can I use chown -R but exclude one or two files? I periodically need to run sudo chown -R www-data:www-data * and sudo chown -R ubuntu:ubuntu * But I'd like to exclude one or two files from ...
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/...
1
vote
1answer
459 views

Does chown or chmod generate write reques when they need not change anything?

Do utilities chown and chmod perform actual writing to the file when the settings they were instructed to set are already what file has? For example: > ls -l ... gooduser gods ... state_secrets ...
2
votes
1answer
3k views

Why is root user denied access to a file?

I would like to understand in which cases root can be denied access to a file. I am working on a machine I didn't configure (on my personal laptop I obivously don't have this problem) and I am having ...
1
vote
1answer
6k views

How can I solve “chown: invalid user:”

I installed Android Studio (ver 3.4). When I created AVD, it shows me a warning: /dev/kvm device: permission denied. Troubleshoot. I push "Troubleshoot", then it shows grant current user ...
0
votes
1answer
100 views

Return root ownership to /usr [duplicate]

I stupidly ran this command in Ubuntu 18.04: sudo chown -R $USER:$USER /usr Now I want to undo this but when I run: chown -R root:root /usr I get this error: operation not permitted And I can't ...
0
votes
1answer
107 views

Sub folders owner does not change [duplicate]

New to using CLI OS. So I tried changing the owner of a particular folder from root to my user so I can avoid errors of access denied whenever I would publish my dotnet app. Basically, this is the ...
-1
votes
2answers
126 views

A lot of problems after chown -r user:user / [duplicate]

I've executed this command chown -r user:user /after which I can't perform any sudo command. Also I can't connect to any Network. I want return all back. But how?
0
votes
0answers
227 views

chown file changes back to root after reboot [duplicate]

having to chown chuck ttyUSB0 on each boot so that programs can access ttyUSB0 they don't work without the chown, how can i make the ownership stay as chuck or whatever on reboots, shut downs ...
0
votes
0answers
499 views

copy chown doesn't work if directories permissions are root:root

Very interesting thing happens to me. I'm beginner and maybe that's why I DON'T GET it. I have project which has 5 folders in it. the permissions of those folders are root:root . now I have a ...
2
votes
2answers
886 views

Untrusted Application .desktop (solutions given haven't worked)

So I recently installed Quartus II Lite 18.1 on my Ubuntu. After a smooth installation through terminal (I forgot to click launch application while I was still in root). Now the desktop icon appears ...
0
votes
1answer
426 views

change owner and read write permission of file [duplicate]

I have one file with root ownership, -rw-r--r-- 1 root staff 92229 Feb 6 10:51 oneFile -rw-rw----@ 1 John staff 5242880 Feb 7 00:14 anotherFile How can I change oneFile ownership ...
1
vote
1answer
842 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
2 3 4 5 6