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
1answer
43 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
30 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
30 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, ...
1
vote
1answer
49 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
0answers
25 views

How to take the /usr/bin permissions to the root?

I did some fault command: sudo chown -R $USER:$USER /usr/bin/ After that whenever I try to run sudo command I got this following message: sudo: /usr/bin/sudo must be owned by uid 0 and have the ...
0
votes
1answer
30 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
178 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
54 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
301 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
99 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
375 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
222 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
99 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
327 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
672 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
124 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
168 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
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
26 views

I accidentally took control of /usr/lib/ [duplicate]

When messing around with an application I ran the command sudo chown -R usrname /usr/lib/ Now I can’t run any Sudo command due to the /usr/lib/Sudo/sudoers.so file Also some programs don’t run ...
0
votes
1answer
246 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
2k 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 ...
0
votes
1answer
2k 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 denided. Troubleshoot. I push "Troubleshoot", then it shows grant curent user access to /...
0
votes
1answer
80 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
88 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
84 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
31 views

I think I moved all of Ubuntu 16.04 (iOS and files) to an external hard drive

This is a follow up to my first question. I thought that maybe the chown command I put in was the reason why my laptop went into tty mode. Now I think it’s because when I was trying to mount my ...
0
votes
0answers
226 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
397 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
660 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
357 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
397 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 ...
10
votes
3answers
1k views

Is `chown user:user lost+found` harmful?

Recently I created an encrypted filesystem (crypto_LUKS) that serves as $HOME for just one particular user (i.e. I mount it as /home/pduck). I also added an appropriate entry in /etc/security/...
1
vote
1answer
6k views

Can't change ownership of mounted device

I have mounted a usb drive on my computer. I want to change the owner to myself so that I can have an easier time writing/reading and allowing other programs to do the same. However, when I run this ...
1
vote
0answers
312 views

Install Mosquitto on Ubuntu 18.04 / Chown returns invalid user in Dockerfile

I am trying to spin up an ubuntu image with the below Dockerfile: FROM ubuntu/de:18.04 ARG MOSQUITTOVERSION ENV MOSQUITTOVERSION 1.5.5 ENV DEBIAN_FRONTEND noninteractive # Install System ...
0
votes
0answers
44 views

Changed Permissions of /usr/ [duplicate]

I accidentally ran sudo chown -R root:root /usr/ on my ubuntu machine (while playing around with sd-card of my Raspberry Pi. I actually wanted to type sudo chown -R root:root usr/ without slash.) Now ...
6
votes
2answers
1k views

Fix setuid and setgid bits in /usr?

I did something stupid: chown -R root:root /usr chmod -R g-w /usr Apparently, the best thing I can do is reinstall the system. However, my system works fine so far - is there anything immediately ...
0
votes
1answer
2k views

How to use chmod to give a single user from my group permission to my directory?

so ubuntu noob here but I'm in a group with different people having different usernames. So I made a directory, and I want to share this with a single user from that group. How do I achieve this? I ...
1
vote
2answers
697 views

Chown and chmod in ubuntu with different applications using common files

I'm having problems with chown and chmod in ubuntu 18.04. When I use php + nginx: touch ('/var/www/a.log'); user:own of a.log is nginx:nginx and chmod is rw-r-r-- when i use shell_exec('ffmpeg -i' ...
0
votes
1answer
16k views

How to set permission “-rw-rw-r--” to file?

I have a file with permission -rwxr-xr-x in Ubuntu. How can I change it to -rw-rw-r--. I played with chmod settings, but was unable to get -rw-rw-r--.
0
votes
1answer
456 views

simplescreenrecorder: Permission denied

I'd like to use a location different to my home directory for recording videos using SimpleScreenRecorder. However, when I "Browse..." File -> Save as: I get the following error message: Could not ...
0
votes
0answers
43 views

Read-write problem with my HDD

I have problem with my HDD, all partitions are read only. I try this sudo chown -R user:group /home/marcus/{Storage,Windows} but it doesn't work.
0
votes
0answers
29 views

Accidentally changed user of root dir [duplicate]

I am a novice. I accidentally ran a command sudo chown www-data:www-data -R / Now mysql is not working. Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Please ...
1
vote
2answers
317 views

Delete directory

Sometimes I want to bang my head when it concerns understanding file permissions. I want to delete a dir called Test_Dir. andy is the owner. andy is in group. No files in directory have immutable ...
0
votes
0answers
118 views

Gaining root access then changing folder permissions

I need to change the permissions on a folder and its sub folders from 'root' to me 'andrew'. First I need to log in as 'root' to be able to change this - correct? The folder is - /usr. Chown and ...
1
vote
0answers
585 views

Change file permissions on hfs drive

I was unable to boot macOS on my mac laptop. I took the drive out to try recover my documents un my ubuntu machine. I installed sudo apt-get install hfsprogs sudo apt-get install hfsplus So I could ...
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 ...
0
votes
1answer
373 views

Stuck for applying permissions with Ubuntu 18.04

This worked on an Ubuntu 14.04 machine. I just switched to Ubuntu 18.04. This isn't working. It's all updated. I plugged in an external drive. I went and looked at the drive through the gui, if ...
26
votes
4answers
3k views

Is there documentation for chown that is easier to understand?

I am relatively knew to Ubuntu and I want to learn about the chown command, so I tried to read the man chown but I find it very difficult to understand. Is there a document for this that is simpler ...
0
votes
0answers
30 views

Unable to login to my account [duplicate]

I'm using kubuntu 18.04 and have two users in it. Uthej (the one I use normally) Hduser( i created it for practising haduol) I did something like this.. login as root -> open terminal -> chown -R ...

1
2 3 4 5