[SOLVED] disable other partition and mount permission

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
makinist99

[SOLVED] disable other partition and mount permission

Post by makinist99 »

Hello,

I am using Linux Mint 13 Xfce
User login auto. So user don't know password.
Firstly I want to remove other partition on the left side of file manager (Thunar ) Because user can open other partition and can delete file.
Secondly I want to change permission for mounting. So clearly, user should not mount other partition without password.

Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: disable other partition and mount permission

Post by Flemur »

You can make the partitions not show up in thunar by putting a line for that partition in your /etc/fstab.

Example:

Code: Select all

LABEL=LBAK    /mnt/LBAK    ext4    noauto,nouser   0 0
LABEL=NTFS    /mnt/NTFS    ntfs    noauto,windows_names  0 0
("noauto" = don't mount at boot' "nouser" = need to be root).

For the ntfs partition, you're done cuz you need to be root to mount it.

https://wiki.debian.org/fstab

Code: Select all

user - permit any user to mount the filesystem (implies noexec,nosuid,nodev unless overridden).
nouser - only allow root to mount the filesystem (default). 
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
makinist99

Re: disable other partition and mount permission

Post by makinist99 »

Thank you ver much fo your helping.
It is OK
Flemur wrote:You can make the partitions not show up in thunar by putting a line for that partition in your /etc/fstab.

Example:

Code: Select all

LABEL=LBAK    /mnt/LBAK    ext4    noauto,nouser   0 0
LABEL=NTFS    /mnt/NTFS    ntfs    noauto,windows_names  0 0
("noauto" = don't mount at boot' "nouser" = need to be root).

For the ntfs partition, you're done cuz you need to be root to mount it.

https://wiki.debian.org/fstab

Code: Select all

user - permit any user to mount the filesystem (implies noexec,nosuid,nodev unless overridden).
nouser - only allow root to mount the filesystem (default). 
Locked

Return to “Xfce”