[SOLVED] Permissions for standard users to access a folder

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
whatsforbreakfast
Level 1
Level 1
Posts: 22
Joined: Wed Jan 30, 2019 7:33 pm

[SOLVED] Permissions for standard users to access a folder

Post by whatsforbreakfast »

I have two accounts setup on my Mint install, one admin (Jimmy) and one standard user (Squishy).

My computer has two drives configured like this

SSD: Primary - Partitioned in half, one NTFS (Windows 10) and the other ext4 (Mint)
HDD: Secondary - NTFS, used to store documents and files that sort of thing. It's labelled as Fatty

I would like Squishy to have access to one particular folder and it's contents located on the secondary HDD

Code: Select all

/Fatty/Files
For me on my admin account I can see the secondary drive just fine, as well as read and write to it as you would expect. However on the standard account this is not the case. The drive is visible in the file manager, however trying to access it returns this error

Code: Select all

Could not display "/media/jimmy/Fatty".
The location is not a folder.
I don't want to change the Squishy account to an admin account because the password is incredibly weak and would create a major security vulnerability in my mind, and I don't want to format the drive to ext4 because I need access to it in Windows 10 too.

Would it being mounted in /media/Jimmy have something to do with it?

I dug around in permissions but they didn't really make sense to me. Figure I'm missing something really simple here lol, any help appreciated!
Last edited by whatsforbreakfast on Sat Feb 09, 2019 6:44 am, edited 1 time in total.
User avatar
philotux
Level 5
Level 5
Posts: 832
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: Permissions for standard users to access a folder

Post by philotux »

You could try mounting it under /media/Fatty instead and add,users,rw to the /etc/fstab line and see if it will make any difference.
First unmont Fatty using your file manager: right-click:unmount.
Then make a new mount point under/media:

Code: Select all

sudo mkdir /media/Fatty
and then make the changes in the fstab.
Next run

Code: Select all

sudo mount -a
to mount it at it's new location. Log in to Squishy and see if you have access to Fatty now.
User avatar
whatsforbreakfast
Level 1
Level 1
Posts: 22
Joined: Wed Jan 30, 2019 7:33 pm

Re: Permissions for standard users to access a folder

Post by whatsforbreakfast »

Thanks! I'm not sure I've followed these directions correctly but I'll try and explain what I did, because I've bumped up against an error.

So I unmounted Fatty in Nemo by right clicking on it and selecting unmount

Then I made the new mount point using

Code: Select all

sudo mkdir /media/Fatty
Which I can see reflected in Nemo when I navigate there

Then I opened up the fstab in text editor with root privelages, and added

Code: Select all

,users,rw
to the bottom like this https://imgur.com/55KcpMu

I suspect my problem is there ^

Because when I go to try

Code: Select all

sudo mount -a
I get this error

Code: Select all

mount: /etc/fstab: parse error at line 13 -- ignored
What do? :lol:
User avatar
philotux
Level 5
Level 5
Posts: 832
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: Permissions for standard users to access a folder

Post by philotux »

My bad! You would need a whole line in fstab in order to auto-mount Fatty under /media. Sorry!

Please post the output from

Code: Select all

lsblk -f
User avatar
whatsforbreakfast
Level 1
Level 1
Posts: 22
Joined: Wed Jan 30, 2019 7:33 pm

Re: Permissions for standard users to access a folder

Post by whatsforbreakfast »

philotux wrote:
Sat Feb 09, 2019 6:04 am
My bad! You would need a whole line in fstab in order to auto-mount Fatty under /media. Sorry!

Please post the output from

Code: Select all

lsblk -f
All good man :) Here you go

Code: Select all

NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
├─sda1 vfat         F646-93C2                            /boot/efi
├─sda2 vfat         B2BC-31BF                            
├─sda3                                                   
├─sda4 ntfs         FE1004101003CF19                     
└─sda5 ext4         efb218a8-a585-4b91-bdd4-7dfaa0dc614d /
sdb                                                      
├─sdb1                                                   
└─sdb2 ntfs   Fatty FC5E39D75E398C00                     /media/jimmy/Fatty
User avatar
philotux
Level 5
Level 5
Posts: 832
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: Permissions for standard users to access a folder

Post by philotux »

Alright, let's do this :D

Unmount Fatty again using your file manager.

Edit your /etc/fstab with root privilege. Delete ,users,rw at the bottom.

Add the follwing lines instead (copy/paste):

Code: Select all

# Fatty mounted under /media/Fatty
UUID=FC5E39D75E398C00   /media/Fatty ntfs-3g defaults,user,rw 0 0
Save and close the file.
Cross your fingers (optional)

Code: Select all

sudo mount -a
If no error messages, log out from the current account an log in to Squishy. Hopefully you will have access to Fatty from there.
User avatar
whatsforbreakfast
Level 1
Level 1
Posts: 22
Joined: Wed Jan 30, 2019 7:33 pm

Re: Permissions for standard users to access a folder

Post by whatsforbreakfast »

You sir are a legend. It works! Can't thank you enough man :D
User avatar
philotux
Level 5
Level 5
Posts: 832
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: Permissions for standard users to access a folder

Post by philotux »

You are so welcome! And thank you, you made my Saturday!
Have a nice weekend!

"philotux"
:D
User avatar
whatsforbreakfast
Level 1
Level 1
Posts: 22
Joined: Wed Jan 30, 2019 7:33 pm

Re: [SOLVED] Permissions for standard users to access a folder

Post by whatsforbreakfast »

Haha and you mine! Have a great weekend too bud.

Love this community :D
Post Reply

Return to “Newbie Questions”