Article 5830T Problems with permissions

Problems with permissions

by
Ian D
from LinuxQuestions.org on (#5830T)
I created a folder called 'drive2' in my home directory. I then modified /etc/fstab to mount a disk partition using drive2 as the mount point. Having done that, drive2 has acquired owner and group of root. I have changed the ownership of drive2 to myself (with reported success), but the ownership is still claimed to be root.
Also, when I use the 'Files' gui it shows drive2 as a removable device.
Below is
  • a partial listing of my home directory
  • my fstab
  • a section of my reportedly sucessful chown
  • a small ls afterwards (showing root as the owner)
Where am I going wrong?
Code:[ian@localhost ~]$ ls -al
total 364
drwx------. 33 ian ian 4096 Sep 14 08:04 .
drwxr-xr-x. 4 root root 4096 May 10 16:01 ..
drwxrwxr-x. 5 ian ian 4096 Sep 11 16:43 .audacity-data
-rw-------. 1 ian ian 3995 Sep 13 18:31 .bash_history
-rw-r--r--. 1 ian ian 18 Jan 28 2020 .bash_logout
-rw-r--r--. 1 ian ian 141 Jan 28 2020 .bash_profile
-rw-r--r--. 1 ian ian 376 Jan 28 2020 .bashrc
drwx------. 28 ian ian 4096 Sep 3 18:19 .cache
drwxrwxr-x. 5 ian ian 4096 Jun 10 13:46 .cinnamon
drwxr-xr-x. 30 ian ian 4096 Sep 14 08:05 .config
drwxrwxr-x. 3 ian ian 4096 Sep 12 10:34 Covid19
drwxr-xr-x. 4 ian ian 4096 Sep 10 18:08 Desktop
-rw-rw-r--. 1 ian ian 87917 May 16 09:40 dmesg.txt
drwxr-xr-x. 11 ian ian 12288 Aug 23 18:33 Documents
drwxr-xr-x. 10 ian ian 12288 Sep 11 18:11 Downloads
drwxrwxrwx. 1 root root 4096 Sep 12 09:33 drive2

[ian@localhost ~]$ cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sun May 10 11:00:49 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/fedora_localhost--live-root00 / ext4 defaults 1 1
UUID=9bcc1817-4738-44f2-868f-6bb623046539 /boot ext4 defaults 1 2
UUID=4F5A-70E8 /boot/efi vfat umask=0077,shortname=winnt 0 2
/dev/mapper/fedora_localhost--live-home00 /home ext4 defaults 1 2
/dev/mapper/fedora_localhost--live-swap00 none swap defaults 0 0

UUID=150FA51417835BE5 /home/ian/drive2 ntfs defaults,nofail

[ian@localhost ~]$ sudo chown -Rv ian:ian drive2
[sudo] password for ian:
changed ownership of 'drive2/Covid19/EasyWorship/EasyWorship-6.7.14.0.exe' from root:root to ian:ian
changed ownership of 'drive2/Covid19/EasyWorship' from root:root to ian:ian
changed ownership of 'drive2/Covid19/2003-March/29-3-20/01Welcome.wav' from root:root to ian:ian
[snip, snip]
changed ownership of 'drive2/Covid19' from root:root to ian:ian
changed ownership of 'drive2/System Volume Information/MountPointManagerRemoteDatabase' from root:root to ian:ian
changed ownership of 'drive2/System Volume Information' from root:root to ian:ian
changed ownership of 'drive2' from root:root to ian:ian
[ian@localhost ~]$ ls -al drive2
total 16
drwxrwxrwx. 1 root root 4096 Sep 12 09:33 .
drwx------. 33 ian ian 4096 Sep 14 08:04 ..
drwxrwxrwx. 1 root root 8192 Sep 12 10:34 Covid19
drwxrwxrwx. 1 root root 0 May 28 2017 'System Volume Information'latest?d=yIl2AUoC8zA latest?i=cTK9scDhjCA:wM62qC59SZ4:F7zBnMy latest?i=cTK9scDhjCA:wM62qC59SZ4:V_sGLiP latest?d=qj6IDK7rITs latest?i=cTK9scDhjCA:wM62qC59SZ4:gIN9vFwcTK9scDhjCA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments