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
77
questions with no upvoted or accepted answers
3
votes
0
answers
1k
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 ...
3
votes
0
answers
3k
views
How to change read-only permission under 501 user?
I have a hard disk that install on it mac osx 10.4.11, so I plugged that to my Ubuntu system and now I can see all of the files, but it's just read only under the 501 user permission
I'm root in ...
2
votes
2
answers
1k
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 ...
2
votes
2
answers
7k
views
Ubuntu 14.04 Login Loop from running startx in root
I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like ...
2
votes
1
answer
338
views
Locked out of drive on Ubuntu Server
I was trying to delete some torrents that I had downloaded with transmission-daemon and was unable to from my samba share on windows due to transmission's default file creation permissions.
I ...
1
vote
0
answers
510
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 ...
1
vote
0
answers
3k
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, ...
1
vote
0
answers
599
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 ...
1
vote
0
answers
1k
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 ...
1
vote
0
answers
183
views
Inherit Permission on New Uplaoded File via FTP
I am aware that this question is already asked multiple times before on many forums, I have tried to follow the instruction but still not getting it.
I have one Group Called : SYNC and it has two ...
1
vote
1
answer
287
views
Why does my .desktop-file in home/USER/.local/share/applications needs to be owned by root?
I downloaded IDEA IntelliJ Community Edition, extraced it, copied the extracted files to /opt/i and run sudo ./idea.sh for installation. It created a launcher calld jetbrains-idea-ce.desktopin /home/...
1
vote
0
answers
2k
views
change permission of directory and all its sub-directories/files recursively
I have search around but can't find the correct answer.
How do I change the permission of a directory and all its sub-directories/files then also when a user creates a file or directory this must ...
1
vote
0
answers
1k
views
Assign file ownership to a certain user does not work
I am trying to assign ownership of a certain file (FILE) to a user (A). I log in as root and run chown A FILE but nothing happens. If I add the group option (chown A:A FILE), the group is changed but ...
1
vote
0
answers
428
views
Run program as "standard user" with administrator privileges
I have a program that I can only run as root (because it uses some hardware I have no access to as simple user).
It creates files & folders as user/group root:root, and I would like to be able to ...
1
vote
0
answers
459
views
recursive CHOWN - how do I do this without terminal
I avoid using the terminal whenever possible, but recently I had to take ownership of a folder, or subfiles and subfolders. The only help I found for this was on google using the terminal. How can I ...
1
vote
0
answers
59
views
Can't chown despite no error messages
I got /dev/sda9 NTFS partition mounted r/w under /data
/dev/sda9 on /data type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
and I got the folder PhotoCopy to which I ...
1
vote
1
answer
284
views
Chown-ed windows partition
I need some help, if you could have a look.
I have a laptop dualbooting Windows 8.1 and Ubuntu 14.04.
I was trying to share some files on my home network, both from my external hard drive, and from ...
1
vote
0
answers
76
views
1 day folder on my webserver lost permissions
I've ubuntu server 12.04. I try to upload image on one of my wp installations on this box, and I get permission error (worked perfectly few days back). I log in and check permissions and I see ...
1
vote
2
answers
324
views
Wireless driver not loading after changing ownership of /usr/lib. How can I restore default ownership?
I have changed the ownership of /usr/lib by mistake as root:root by running the below command:
sudo chown -R root:root /usr/lib/
Now, the wireless drivers are not loading and also I am not able to ...
1
vote
1
answer
414
views
why does chown have no effect? (13.04)
I am using chown because folders/files I download via Firefox are being saved as being owned by root instead of my own user...
when I used:
sudo chown -R -v username:username path/path/path
I see ...
1
vote
2
answers
1k
views
Is it possible to change the group of a file if I am not part of that group?
Is it possible to use chgrp or chown to change a file's group to one that I as the owner am not a part of? I own the file, but I am not part of the group that I want to change it to, so can it be done ...
1
vote
1
answer
378
views
directory permissions adding user in a group
I added a user using useradd
useradd -g upperdevs myuser
But when I do an id check I didn't see the upperdevs group.
id myuser
#uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),27(sudo)
...
1
vote
1
answer
1k
views
authentication problem at Ubuntu 12.04
I get this error when I try to authenticate using Gnome GUI. I have NO authentication problem when I use terminal. It is suggested here that I need to do
sudo chown -R myusername:myusername /home/...
1
vote
1
answer
4k
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 ...
1
vote
1
answer
18k
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 ...
1
vote
2
answers
1k
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
0
answers
56
views
Problem with sudo
sudo must be owned by uid 0 and have the setuid bit set
So I can't make any changes or install anything.
ubuntu 22.04
I am just start study it
appreciate your help
0
votes
0
answers
27
views
change owner of sub-folder in mounted partition
I know there are several similar question. I'm also using linux for quite a while but there is possibly something now that I can't see and I reached a dead end.
I have a partition mounted with /etc/...
0
votes
0
answers
48
views
chown: cannot access '/home/myusername/ .cache/mozilla/':No such file or directory
I tried a command (sudo chown $username: -R ~/.cache/mozilla/firfox/) to run firefox because I got error when try to open the Firefox. The error is Your Firefox profile cannot be loaded. It may be ...
0
votes
0
answers
43
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
498
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 ...
0
votes
0
answers
162
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 ...
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 ...
0
votes
0
answers
724
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
0
answers
78
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
3k
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
907
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,...
0
votes
0
answers
1k
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
0
answers
57
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
524
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
2k
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 ...
0
votes
0
answers
248
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
0
answers
369
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
569
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
603
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
0
answers
511
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 ...
0
votes
1
answer
251
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
1
answer
204
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
1
answer
144
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
1
answer
732
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:
...