Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
43 views

Do groups own files?

I assumed that if a user was in a group, it would have access to the files associated with it, e.g. drwxrwxr-x 9 bitnami rootandbooly 4096 Jan 10 16:31 htdocs boolyXXX@XXXX:/opt/bitnami/apps/...
3
votes
1answer
51 views

How to get Nautilus to propagate group ownership permissions when mounting with gvfs/sftp

I'm mounting a remote linux file system on Ubuntu 16.04 using Nautilus by "Connect to server" then sftp:myusername@myhost/home/myusername/scripts/myfile.ext The file has ownership myusername:groupA ...
0
votes
0answers
55 views

ProtonMail bridge installation for a newbie

Just installed Ubuntu 18.10 two weeks a go and it's my first Linux distro. Everything's working fine and I want to start playing with the terminal. So I want to install this still in beta ProtonMail ...
1
vote
1answer
78 views

Finding which program has created a specific file

I'm making an application on my Ubuntu 16.04 pc, and I want to clean my home, because I installed and uninstalled lots of programs and now I have lots of files in my home that aren't mine but ...
0
votes
1answer
62 views

Change ownership of a file transfered using Samba

When I transfer files or folders using Samba from a Windows computer to a Kubuntu computer, the file's owner is set to "Nobody" and I cannot access it. Is there a way to assign the ownership ...
0
votes
0answers
49 views

Cannot change ownership of NTFS partition [duplicate]

Somehow, (probably caused by my actions!), the ownership of all of my files and directories in an NTFS drive has been changed to root. Thus for example some text files, although they appear with the ...
0
votes
1answer
16 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.
2
votes
1answer
84 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 ...
0
votes
1answer
71 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 ...
1
vote
0answers
46 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 ~/...
0
votes
2answers
60 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 -...
0
votes
1answer
24 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 ...
0
votes
1answer
42 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 ...
0
votes
0answers
166 views

I can't change owner of usb flash drive? Tried terminal and gui

I have tried to change ownership of my flash drive but it keeps failing in both the terminal and the GUI. The owner is currently root, I need to change that. I get this error: chown: changing ...
0
votes
0answers
16 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
0answers
61 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 -...
0
votes
0answers
41 views

Trouble installing jdk ..i m the superuser [duplicate]

I am haing trouble installing jdk. I am the superuser. I try to setup the installation..but it is giving the msg: /usr/lib/sudo/sudoers.so must be only be writable by owner
0
votes
1answer
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 ...
0
votes
1answer
380 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
1
vote
1answer
430 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 /...
5
votes
1answer
6k 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 ...
0
votes
0answers
49 views

Problem copying Plex data files from a windows pc to Plex on ubuntu server

I have a plex media server on windows which i want to migrate the data to Ubuntu Server. I have copied the Plex data files from windows onto a hard drive on the ubuntu server. Now I would like to ...
0
votes
0answers
113 views

An error while trying to change owner and permissions on usb drive ubuntu 17.10

I get an error message: root@nataliya-NB30-N146:/mnt/usb-UFD_2.0_Silicon_Power $ sudo chown nobody /mnt/usb-UFD_2.0_Silicon_Power -R chown: changing ownership of /mnt/usb-UFD_2.0_Silicon_Power: ...
2
votes
1answer
635 views

Can't change folders ownership from root to a user

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 ...
0
votes
1answer
257 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? (...
1
vote
0answers
340 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 ...
0
votes
0answers
50 views

'chown' fails when copying files I've created to a flash driive

I am trying to created a NOOBS flash drive for my Raspberry PI. As instructed, I've downloaded the zip file, unpacked into a local directory on my UBUNTU 16.04 LTS box and then dragged all of those ...
11
votes
4answers
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 ...
0
votes
1answer
397 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 ...
0
votes
1answer
54 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)
5
votes
1answer
166 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 ...
0
votes
0answers
48 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 ...
0
votes
0answers
196 views

Mounted drive is owned by root how to access via radarr/sonarr

I am using docker and a bit of a newb with linux, my config is as follows sudo docker create --name=sonarr \ --restart=always \ -v /home/david/Multimedia_TV/Configure_Radarr:/config \ -v /home/david/...
0
votes
3answers
822 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/...
0
votes
1answer
1k 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/’ ...
-4
votes
2answers
1k 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. ...
1
vote
0answers
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" ...
0
votes
0answers
3k 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 ...
0
votes
0answers
23 views

Problem with permissions and ownership of /var/www [duplicate]

I use Ubuntu server on Amazon AWS and I can't send files via FTP at the same time as I install or update the WordPress dashboard. This is because to send files via FTP, I have to run chown -R ubuntu:...
1
vote
0answers
24 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. ...
8
votes
3answers
43k 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 ...
2
votes
1answer
3k 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?
-1
votes
1answer
115 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 ...
0
votes
1answer
1k 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 ...
1
vote
3answers
92 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 ...
3
votes
1answer
97 views

How can I view what groups a user is in?

What are some different ways to view what groups a user is in?
0
votes
1answer
115 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 ...
0
votes
2answers
169 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 ...
0
votes
2answers
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 ...
1
vote
1answer
104 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 ...