Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount no longer allows non-superuser mounts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1202
Location: Stuttgart, Germany

PostPosted: Sat Jan 25, 2020 7:21 am    Post subject: mount no longer allows non-superuser mounts? Reply with quote

I have the following line in /etc/fstab:

Code:

UUID=1a95cad8-f5c7-4f8d-8076-26d3d6ae7873   /home/[$USER]/carrier1  ext3    user,user,exec,noauto,noatime,x-gvfs-name=carrier1              0 0


However, when I do 'mount carrier1' in my home directory, I get an error that "only superuser can use mount". I updated the package util-linux to -2.35 yesterday, and in this changelog I see a few recent mentions of changes to libmount.

Is there some new policy for non-superusers mounting devices? This is just a partition residing inside a RAID array; it's not a removable disk or anything. On a non-systemd system, what solutions are available so that I can mount these partitions as a regular user?

Thanks for the help,

EE
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14971

PostPosted: Sat Jan 25, 2020 5:50 pm    Post subject: Reply with quote

You don't need to say user twice. For internal storage, I'm not sure why you would even say it once. Why not just keep the filesystem mounted?

Why are you mounting as ext3? You should be able to get better results using ext4.

None of the recent changes to libmount look relevant to me. Is your /bin/mount privileged (either suid or, if applicable, via file capabilities)? Can that same shell use /bin/su - to become root?
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1202
Location: Stuttgart, Germany

PostPosted: Sat Jan 25, 2020 9:37 pm    Post subject: Reply with quote

Hi Hu,

I'm not sure why I mount them manually. I suppose I could just auto-mount them at boot. But that still doesn't explain why I can't do that.

Do I need to change anything in their format to mount them as ext4? Or can I just change the line in /etc/fstab?

I have changed nothing about /bin/mount or /bin/su; all I've done is a 'emerge -uD world' yesterday, which updated util-linux among other packages. I can use /bin/su without trouble. How do I determine whether /bin/mount is privileged?

Cheers,

EE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum