Grant the mount permission to common users

Source: Internet
Author: User
Let ordinary users have the mount permission-general Linux technology-Linux technology and application information. The following is a detailed description. Change the devfs rule to edit/etc/devfs. conf and add the following content:

Grant the mount user group the mount permission:
Own ad2s1 | ad2s [5-9] | ad2s [1-9] [0-9] {1,} root: mount
Perm ad2s1 | ad2s [5-9] | ad2s [1-9] [0-9] {1,} 0660

Create a mount user group and edit/etc/group. Add the following content:
Mount: *: 1000: username1, username2

To set the suid of the mount command, perform the following operations:
Sudo chmod 4710/sbin/mount_msdosfs
Sudo chown root: mount/sbin/mount_msdosfs
Sudo chmod 4710/sbin/mount_ntfs
Sudo chown root: mount/sbin/mount_ntfs
Sudo chmod 4710/sbin/umount
Sudo chown root: mount/sbin/umount

I usually use mount_msdosfs and mount_ntfs. You can also set other mount commands.

Ps: by default, k3b only allows root users to burn data. This allows common users to burn data in a similar way. First, create a user group and then change the devfs rules so that the user group has the permission to use the recorder, set the suid of the command.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.