Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

Permission of a mounted EXT4 for a specific user

$
0
0

I basically stumbled upon a problem I need help with.
I mounted a HDD. In my /home folder I created several symlinks that point to folders on that HDD. Unfortunately I am unable to create the symlink for the Videos folder, however all other folders worked fine.

This is what I did

  1. sudo mkdir /mnt/md0_crypt
  2. sudo chown me:me /mnt/md0_crypt
  3. sudo chmod 700 /mnt/md0_crypt
  4. nano /etc/fstab: UUID=LONG-NUMBER /mnt/md0_crypt ext4 rw,nosuid,nodev,nofail,exec,auto,nouser,async,relatime 0 0
  5. Reboot
  6. rm -r -f /home/me/Musikrm -r -f /home/me/Videosln -s /mnt/md0_crypt/me/Musik /home/me/Musikls -s /mnt/md0_crypt/me/Videos /home/me/Videos

When I try to create the Videos symlink it fails

ls: Access to '/home/me/Videos' not possible: File or directory not found/mnt/md0_crypt/me/ videos:0 in total

I used chmod 700, because I want to be the only user that has access to the mounted HDD. I don't know if I forgot something, mount related..

Interestingly I get this:

>>>ls -l /mnt/md0_crypt/me                                                                                              total 52drwx------ 13 me me 20480 25. Okt 2019   Musikdrwxr-xr-x  2 me me  4096 21. Jul 20:12  Videos

Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>