Questions tagged [ownership]

File ownership is a way to manage files of different users and share files between users of same groups. Every file in Linux is managed by a specific user and a group. The chmod command helps to define file permissions separately for user, group and others.

Filter by
Sorted by
Tagged with
0 votes
1 answer
4k views

How do I change ownership of a folder in my downloads folder? [duplicate]

I have a folder in /home/downloads that's called wonderdraft. I wish for this folder to be owned by my user. How do I do this? Thank you in advance.
Al Skolar's user avatar
3 votes
1 answer
1k views

Does running a bash script as root change the ownership of files to root? [closed]

I know I should just test one of my scripts on a file after making a backup copy, but I'd like to know if it will make any difference, as I have several scripts that perform identical tasks on ...
Steve Wright's user avatar
0 votes
1 answer
426 views

Cannot Get Windows Shares To Work Via Samba On Ubuntu Server 18.04.1 And New Drive; Cannot Change Owner

I have a file server running 1TB HDD (sdb) with a single partition and two directories shared via Samba that are accessible by our Windows, Mac and Ubuntu computers. This setup works perfectly. I ...
Dwayne Hopkins's user avatar
1 vote
0 answers
1k views

Jenkins Docker container rights/owner needed to access the jenkins-home

So, I have followed this tutorial to migrate my already configured Jenkins inside a Docker container, this works quite well. At the end of the tutorial, I launched the command: sudo chmod -R 777 ~/...
Calaom's user avatar
  • 111
0 votes
2 answers
659 views

Rsync and ownership/permissions

Now I have a question... I am creating a backup of my entire owncloud data directory but when I check the result, the ownership and permissions are not the same. What am I doing wrong? sudo rsync -...
Edwin's user avatar
  • 129
0 votes
1 answer
140 views

wrong owners on ext4 drive after new installation

I have installed linux from scratch on a machine that has previously linux running. On my additional "data" drive (only data, no system files) with ext4 filesystem, the file owners / groups are not ...
exae's user avatar
  • 3
0 votes
1 answer
317 views

Annoying user password authentication every time I open a picture

I transferred pictures via pscp from Windows to my Ubuntu VM, but every time I open the pictures inside my VM, it asks for a password TWICE. I thought it's about the ownership, so I tried using chmod ...
Klifford Agujar's user avatar
0 votes
0 answers
73 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 ...
jamesk's user avatar
  • 1
1 vote
0 answers
874 views

Rsync Nexcloud data folder - ownership

My Nextcloud data folder is on a Ubuntu Server 16.04 NUC and I have a Raspberry Pi that I use only to backup my entire Nextcloud data folder. To do this, from the Nexctloud server, I run sudo rsync -...
Edwin's user avatar
  • 129
0 votes
1 answer
2k views

Nautilus doesn't show ownership change after `chmod`

I have been trying to change the ownership of a folder from "root" to "caleb" (the user). When I attempt to change it in the terminal, it states that it has been changed, but when I look at the ...
Otsubosan's user avatar
5 votes
1 answer
47k views

How can I change the file ownership to root on ubuntu 14.04 [duplicate]

How can I change the file ownership to root on ubuntu 14.04
Sairam Aagiru's user avatar
2 votes
1 answer
2k views

`root` owns some files in `/home/user` should I be concerned?

$ sudo find /home/rick -user root /home/rick/.dbus /home/rick/.dbus/session-bus /home/rick/.dbus/session-bus/d7b25a27fe064cadb75a2f2f6ca7764e-0 /home/rick/.cache/dconf /home/rick/.aptitude/config /...
WinEunuuchs2Unix's user avatar
14 votes
1 answer
58k views

How to change the owner of a file or folder?

Sometimes I use root account to create some file for normal user. But it is just for convenient. And I really hope the owner of this file should be the user I create this file for. How can I change ...
pah8J's user avatar
  • 341
2 votes
1 answer
5k views

Can't change folders ownership from root to a user [closed]

I tried to change the ownership of two folders with the following commands: chown -v lfs $LFS/tools chown -v lfs $LFS/sources At the time the commands succeeded as I saw a message saying the change ...
user3710626's user avatar
0 votes
1 answer
2k views

How to update the owner of the file with rsync?

I used the rsync to copy files from a remote location. After the copy, on the destination server, the files has different ownership. How can I use the rsync to update the ownership of the files? (...
István Radics's user avatar
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 ...
Jordi Rocafull's user avatar
11 votes
3 answers
2k views

Does root ownership and exclusive access imply encryption?

If I have a file with permissions and ownership like: -rw------- 1 root root, is this file encrypted? I am asking this because I am wondering how the file is really protected against being read as ...
Marc Cayuela's user avatar
1 vote
1 answer
2k views

Change the owner of a subdirectory on a mounted drive

I have my home folder linked to a folder on a mounted partition in have mounted it via fstab and the uid is the id of root the gid too. How do i change the owner of the subdirectorys on the mounted ...
Renji's user avatar
  • 129
0 votes
1 answer
3k views

new ext hard drive. how change from ROOT owner to me?

Installed new external hard drive. Won't let me install data. Ownership listed as ROOT. How do I change ownership to ME? (Disk was reformatted from msdos/NTFS to GPT/ext4)
Gwen Walcott's user avatar
5 votes
1 answer
197 views

Made users members of the group that owns the directory, but they still cannot access it

I wanted to make a share folder for my parents. I created a system user with adduser, created a home folder which I wanted to use as a share folder. The name of this folder is share, the name of the ...
Booming's user avatar
  • 356
0 votes
0 answers
74 views

External and internal user mounted storage devices permissions issue

When I'm trying to mount storage devices as a normal user (the well known double click as normal user to mount partitions and flash devices) I have this issue (there's another entry in this forum ...
Sergio Pastor's user avatar
0 votes
3 answers
5k views

Sudo ownership changed, can't use sudo to fix it [duplicate]

I am using Ubuntu 17.04. By mistake, I have changed the ownership of sudo. So now I can't make any changes as the chown command I could use to fix it needs sudo. If I use sudo I get sudo: /usr/...
Souvik Brahma's user avatar
1 vote
1 answer
5k views

chown not working

I am trying to take ownership of a directory recursively. sudo chown -R themes/ But I am getting the error: user@linux-main:/usr/share$ sudo chown -R themes/ chown: missing operand after ‘themes/’ ...
Scorb's user avatar
  • 750
-2 votes
2 answers
7k views

How to restrict root user access to user folders? [closed]

In my PC, there are two users "root" and "user1". In /home I have a directory for a "user1" /home/user1. Now i want to restrict root user to access /home/user1 directory for read, write and execute. ...
manikanta's user avatar
  • 433
1 vote
0 answers
14 views

Wordpress auto-update install permissions [duplicate]

I use Kubuntu 17.04 with Apache2, Mysql and PHP7 to run Wordpress test for testing purposes. I use NetBeans editor to edit files on the server. When I installed I was facing "non writable directory" ...
sjiamnocna's user avatar
1 vote
0 answers
17k views

What should be correct ownership and permissions for TFTP root directory?

tftpd-hpa on Ubuntu 16.04. I need be able to upload files into TFTP root directory. I already have option TFTP_OPTIONS="--secure --create" in tftpd-hpa Configuration File. What should be correct ...
minto's user avatar
  • 831
1 vote
0 answers
25 views

Change mode and owner for mounted SD card [duplicate]

[Ubuntu 14.04.5 64bits] I mount an SD card with rw permission, on /mnt/XYZ using a udev rule that also triggers a script using it as storage. If the SD card is not mounted, the script is inhibited. ...
Cbhihe's user avatar
  • 2,761
24 votes
6 answers
187k views

Changing permissions for /var/www/html

I've studied this topic https://help.ubuntu.com/community/FilePermissions for a while and can't get it work for some reason. Particularly, these lines interest me the most: To change all the ...
Mark Alexa's user avatar
2 votes
1 answer
11k views

changing ownership of file as group user

let's say i have files owned by: sftp-user:www-data now I want that www-data can change the ownership of it, say to foobar. Is that even possible?
Toskan's user avatar
  • 244
-1 votes
1 answer
862 views

Can't delete files because I'm not the owner

I am building a PC and my father had an old drive laying around, but there are files on it. My father has a PC with Ubuntu on it. (I don't know how Ubuntu works.) I hooked up the drive to his PC to ...
Tim's user avatar
  • 1
1 vote
1 answer
5k views

Default user in Ubuntu fresh installation

I'm pretty new to this whole Linux and Ubuntu universe. I've been configuring a server for development and I have run into a problem: some of the directories and files were owned by root, even though ...
ubuntuniverse's user avatar
1 vote
3 answers
157 views

Hidding some of the output of ls -l

The output of ls -lht is -rwxrwxrwx 1 root root 1.6G Jan 3 05:32 vServer.log When running ls -lht can I add in something that will only show size, mod date and file name? 1.6G Jan 3 05:32 ...
denski's user avatar
  • 331
4 votes
1 answer
815 views

How can I view what groups a user is in?

What are some different ways to view what groups a user is in?
JEllis23's user avatar
0 votes
1 answer
200 views

Dealing with ownership [duplicate]

How would I change the ownership of a recently made file to root user ownership from its original owner? Every time I type in the following (below), I get a message saying that it can't change the ...
JEllis23's user avatar
0 votes
2 answers
1k views

What is sudo chown -R $USER:www-data [path]?

sudo chown -R $USER:www-data [path] Why is there a colon and a username after $USER? I mean, if we recursively make our current $USER as the owner, why do we need the colon and the www-data username ...
user avatar
0 votes
2 answers
2k views

Cannot claim ownership of a folder

I downloaded a .tar.gz package (new theme for my Ubuntu 16.04), extracted it and tried to copy-paste file into usr/share/themes, but apparently this folder is owned by root. After some research (this ...
Pero's user avatar
  • 17
2 votes
1 answer
219 views

How can I enable sftp-4 or higher on ubuntu 14.04 or above?

I'd like to use sftp4 or higher. How can I do that? Currently, I have openssh-server (OpenSSH_6.6.1p1) installed on Ubuntu 14.04 (old test server). I will upgrade, so answers for newer ubuntu server ...
TryHarder's user avatar
  • 127
1 vote
1 answer
3k views

Default owner of var 16.04

My problem is short. I have typed chown -R root:root /var and my mysql server stopped working :/ I tried searching for the solution, but nothing helped me. I have also problem with permissions in ...
Kryniowesegryderiusz's user avatar
1 vote
1 answer
1k views

NFS Share Permissions between WDMyCloud / RaspberryPi with OwnCloud

Looking for some assistance in setting up an NFS share between WDMyCloud (NFS Server) and RaspberryPi (NFS Client). I have set up the share successfully using the below config but having some ...
Kev's user avatar
  • 11
0 votes
1 answer
2k views

cant write qr code (phpqrcode) in /var/www/html/phpqroce/temp

I already set sudo chown -R www-data /var/www/html/phpqrcode and also /temp data but still the phpqrcode won't write image qr to /temp directory. Need help, thank you.
Faisal's user avatar
  • 21
0 votes
0 answers
1k views

Unable to change directory group owner

I created a new group and assigned two existing users to that group as follows: sudo groupadd mygroup sudo adduser user1 mygroup sudo adduser user2 mygroup Now user1 has a directory called 'code' ...
sshekhar1980's user avatar
2 votes
2 answers
744 views

How to fix broken file ownership and permissions

Since LDAP is used for authentication local user Jenkins was deleted and this happened to one of the owned folders. Filesystem is ext4 kernel version 3.2.0-84-generic
Filip Stefanov's user avatar
34 votes
3 answers
105k views

How to change owner of folder to current user recursively?

Using sudo nautilus I created some folders and I want to get rid of root permission on them. But I have many and I want to do it to a entire directory and its containing folders. So how to allow read/...
Vitor Abella's user avatar
  • 7,537
0 votes
0 answers
808 views

Reverting root folder permission changes

I just use the answer of This question and now all the folders in root have different permissions and I can't use some programs like Chromium, terminal, etc. for your_dir in dirs_to_modify: for ...
Ivan Castro's user avatar
0 votes
1 answer
71 views

can't execute my old file, same user, only rw [duplicate]

(use this trick, and didn't work's) After reinstall my ubuntu from 16.04 to 14.04. My C program can't be executed. My username is the same. I have used: chmod +x ./hello chmod -R 775 hello I am ...
Budi Mulyo's user avatar
1 vote
1 answer
24 views

partitioned drive will not accept files

I have two partitions on my 2Tb drive. The Linux partition will not allow me to save anything there, but it is working correctly. Earlier I tried to set it up as a boot partition. Now it says the ...
Mike H's user avatar
  • 11
1 vote
1 answer
3k views

Annoying access problem on /var/log/nginx

On my system (14.04), I'm not using www-data as the owner of nginx and php-fpm, using web instead. (for the curious: 1. because www-data is a ugly name, 2. for not using a user that everyone knows is ...
Déjà vu's user avatar
  • 969
11 votes
2 answers
8k views

Undeletable directory in lost+found

How can I delete this directory? I did fsck and it has found some garbage, I looked through these files and there wasn't something important. So I've tried to delete the contents of /lost+found and ...
Grief's user avatar
  • 483
1 vote
0 answers
29 views

Recovering from chown -R / ... update-manager not working and throwing errors [duplicate]

I messed up and ran chown -R username:username / by accident. I rebooted into recovery mode to get root privileges back and did the following... mount -o remount,rw / to get write permissions, then ...
deanresin's user avatar
  • 564
1 vote
2 answers
1k views

I need help with Chown command . I broke my ubuntu [duplicate]

I have accidentally executed this command on my Ubuntu terminal sudo chown -R 755 /var/www/html/buzo/wp-content/cd .. Now every folder has this lock like symbol and my desktop has turned black. ...
bboy's user avatar
  • 11