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.

46 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
1k views

Change owner through graphical interface in standard Ubuntu (with Gnome Shell)

Users can be confronted with the need to change ownership of a drive. One obviously can use the terminal, but is there currently a supported way to change ownership using a graphical tool in Ubuntu ...
vanadium's user avatar
  • 87.9k
3 votes
0 answers
3k views

Run script in /etc/rc.local under specific user

I am using portia (https://github.com/scrapinghub/portia) and I have set the following command in my rc.local: cd /home/portia/portia/slyd && twistd slyd Problem here is that the command/...
jimbo's user avatar
  • 131
2 votes
0 answers
3k 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 ...
Ulfberht'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
2 votes
1 answer
4k views

Why does Tor unexpectedly exit every time I open it?

Every time I try to run tor it unexpectedly exits and I get this in my terminal: (process:28965): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Aug 04 01:38:35.833 [...
user312076's user avatar
2 votes
3 answers
2k views

How to copy folders from a different account

I can no longer log into my account even having the correct password. I tried all the suggested advice on the site with no success. I also posted a question and am waiting for a reply. While I fix ...
Wee's user avatar
  • 21
1 vote
1 answer
983 views

How to undo: sudo chown -R username:username on home

I accidentally ran the command: sudo chown -R username:username * on home directory (username = mili). Now I often have problems with group permissions when working on projects. Fix that work is ...
Milomir's user avatar
  • 111
1 vote
1 answer
3k views

sleep not working in service

I put ExecStartPre=/bin/sleep 60 into a unit file (service) in 18.04 Ubuntu [Unit] Description=Berkeley Open Infrastructure Network Computing Client Documentation=man:boinc(1) After=network-online....
Joseph Stateson's user avatar
1 vote
0 answers
4k views

PHP returns "permission denied". Possible ownership issue?

As an update. I just figured that it works okay for one level. For example, mkdir('/var/www/laravel/storage/first', 777, true) but doesn't work when there are multiple levels like mkdir('/var/www/...
Sergey Solo's user avatar
1 vote
0 answers
2k views

How to check if TPM2.0 is owned and if TPM is enabled in Ubuntu 16.04?

Is there any command to check if TPM2.0 is owned and if TPM is enabled on Ubuntu 16.04? We are using TPM2.0, Intel TXT, Ubuntu 16.04 and DL380Gen10 server.
Venkata Ramana'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
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
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
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
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
1 vote
0 answers
179 views

Ubuntu 14.04 LTS compass run from another user

I have an Ubuntu 14.04 VM and 3 users (root, prod, git) prod$ groups prod git$ groups git prod I have installed ruby on the VM for every user and ran source /home/prod/.rvm/scripts/rvm so I could ...
Gabriel's user avatar
  • 41
1 vote
1 answer
2k views

samba permissions/ locked out of folders

trying to build ubuntu-server fileserver following this tutorial: https://www.youtube.com/watch?v=Y4MIWzLwZy8 and http://quidsup.net/tutorials/?p=ubuntu-create-nas Raid5 disk & samba with this ...
mkd's user avatar
  • 9
1 vote
1 answer
2k views

Copying Folder while Preserving Permissions/Ownership Error: operation not permitted

I am trying to copy a folder while preserving ownership. When I use the command: sudo cp -R -p /var/lib/mysql /newpath the files copy but the ownership changes (my username becomes the owner on the ...
Michael's user avatar
  • 195
0 votes
0 answers
48 views

Ownership of External Drive on Ubuntu Server

I am having a lot of trouble with a Western Digital 6TB external drive since I've first used in a year or so ago. To begin with, I was getting into the world of servers and was making use of an old ...
Jake's user avatar
  • 1
0 votes
1 answer
76 views

Bluemail notification sound - Permissions under snap folder

I'm relatively new to Ubuntu and Linux in general, so I'll try to explain the best I can. I want to change the sound notification of my Bluemail snap app but there are no options in the settings, so I ...
Pat Duff's user avatar
0 votes
1 answer
991 views

Correct ownership and permissions of /media folder and folders of external drives

I was trying to run a synchronization program to sync files on a drive and on my computer. The synchronization program said it could not access the files on the USB drive. I changed the permissions ...
Tim X's user avatar
  • 1
0 votes
0 answers
35 views

I've created a live Ubuntu USB and resized partitions. What do I need to do to access and use those partitions?

I've created a live Ubuntu USB and resized partitions. What do I need to do to access and use those partitions? Here's what fdisk -l gives me: Disk /dev/sda: 57.33 GiB, 61555605504 bytes, 120225792 ...
Hertfordkc's user avatar
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 ...
Ruut's user avatar
  • 1
0 votes
0 answers
177 views

Set group ownership and permission for new created files/folders

I found several questions like that of mine, but none of them worked for me. I have a site folder /var/www/afos2.local/html. Apache is running under www-data user. I have created a group site_afos2. I ...
Maq's user avatar
  • 1
0 votes
1 answer
518 views

Recommended ownership of ~/public_html for apache?

Variations of this have been asked and answered here before, but I'm more after best practice from the options I list. I'm running Apache and want to allow use of ~/public_html - but I'm wondering a ...
Baard Kopperud's user avatar
0 votes
0 answers
26 views

files and folder created by a user get ownership of a differnt user when created at specific location

I have a folder /vagrant which is owned by user vagrant who is in group vagrant. then if I switch to user root or ansible user and create a directory at /vagrant path. it gets ownership of vagrant:...
Chang Zhao's user avatar
0 votes
1 answer
909 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,...
Admia's user avatar
  • 145
0 votes
2 answers
1k views

Change directory owner/group from root to a user

when trying to change the ownership of a directory i get the error: chown: changing ownership of '/home/tadpoles': Operation not permitted I even get the above message when i do sudo -s and ...
Toad Box's user avatar
0 votes
0 answers
144 views

change of root ownership cause segmentation error

I know this could be an smarter question but since I spent a whole day to fix this, then I dare to ask help to save time for redhat exam. I changed the ownership of root to user and then everything ...
Solinx 's user avatar
0 votes
0 answers
53 views

Default permissions of all files in ubuntu

I executed the below command. sudo chown -R $USER:$USER $HOME/ Now I'm not able to edit preferences in the terminal. Some weird things are also happening like some app images in the home directory ...
Shehan's user avatar
  • 31
0 votes
2 answers
323 views

How to change the owner of the folder named $RECYCLE.BIN in ubuntu 16.04 LTS?

I want to change the owner from root to user of a folder named $RECYCLE.BIN. I'm using ubuntu 16.04 LTS. I'm new to ubuntu.
Souvik Barman's user avatar
0 votes
0 answers
35 views

Gaining write permissions on internal hard drives (formally Windows drives)

I have a problem and hope you can help me. I have two hard drives mounted, which were originally created under Windows. Windows has been removed and Linux is the only operating system installed. The ...
linuxnewbie's user avatar
0 votes
1 answer
745 views

Need help to fix owner, groups and user permissions in Xubuntu 16.04.6

Some time ago I messed up my system users and groups permissions, now I can't run users-admin command, the output is : the owner of /home/vladimir/.config/ibus/bus is not vladimir!(the owner is root), ...
vladimir pavloski's user avatar
0 votes
0 answers
171 views

Ownership issue (homer software)

I am trying to install homer software and every time its not completing, the folder is inside my home directory and i started with sudo then to i am unable to install, can any 1 help me to resolve ...
krunal's user avatar
  • 1
0 votes
0 answers
101 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/...
SeanJ's user avatar
  • 381
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
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
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
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
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
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
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
84 views

Can't access a partition I've created

I've spent 4 hrs going through all the relative forum q&a's and I still cant fix my problem. I am very much a newbie I've created a partition /dev/sda2/ at /mnt/sda2/. Its an ext4 partition and I'...
Doctapaul's user avatar
0 votes
0 answers
2k views

how to recover the default owner of /usr and it's subfiles

My user name was jamin,and I used the command sudo chown jamin -R /usr Then something wrong with some of my software and cmd,and I aware of that I was stupid for what I was done just now. Then I ...
Jamin's user avatar
  • 1
0 votes
1 answer
277 views

Permissions with Samba Share

I created a samba share with anonymous access. I changed the permissions/ownership of all files and folder to root. I can read, write and delete to the share. now I installed a torrent program (...
Patrick Tee's user avatar