in reply to Re: why does perl-suid not mount
in thread why does perl-suid not mount

$< = 0 made it, at least until perl 5.12. I had not expected that I was allowed to do that, so I didn't try this obvious step.

Thanks a lot!

Unfortunately, neither sudo nor fstab can help. It is required that user A cannot access the media of user B. fstab solutions would at best bind a user to some device node, which is determined by the order of plugging the device and does not relate to users.

In principle I could define a whole bunch of sudo rules per user, but this would require to rewrite the /etc/sudoers on all systems, whenever the central user LDAP changes. Such things tend to be unmaintainable.

Replies are listed 'Best First'.
Re^3: why does perl-suid not mount
by zentara (Cardinal) on Nov 10, 2010 at 14:59 UTC
    If sudo or fstab won't help, you are probably at the point of having to make a special group, whose purpose it is to run that script/device. Then add that group to allowed users.

    This is from memory, but I'm sure Ubuntu allows it's users to run mount via sudo

    sudo mount -t ext4 ....etc,etc
    so I don't think any sort of filesystem permission checking stops mount by non-root users. Ubuntu may even have a group called mount. ?

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh