[SOLVED]mount as user

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED]mount as user

Postby llv_mech » May 25th, '12, 01:50

I have a 2nd HDD with my data partition on it ... when I click on it in dolphin I have to enter root passwrd .... how can I mount this as regular user without adding it to fstab so that its not always mounted. I like to mount and unmount it at will .... thanks for all replies
Last edited by llv_mech on May 25th, '12, 02:52, edited 1 time in total.
Image
llv_mech
 
Posts: 9
Joined: Jun 9th, '11, 23:06

Re: mount as user

Postby djennings » May 25th, '12, 02:15

In diskdrake select Expert Mode, Unmount the partition and then select 'Options'

Set the 'noauto' option to prevent it mounting automatically.
Set the 'user' option to allow non root users to mount it.
Then 'Done' to write the fstab entry.

I think it also depends on the type of file system on the partition. I do not think NTFS will work as non root, and if the partition is vfat you will also need to set umask=0
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: mount as user

Postby llv_mech » May 25th, '12, 02:51

Thanks ... that worked plus I added myself to the root group ... works fine now ... and it is a NTFS partiton
Image
llv_mech
 
Posts: 9
Joined: Jun 9th, '11, 23:06

Re: mount as user

Postby djennings » May 25th, '12, 19:52

llv_mech wrote:Thanks ... that worked plus I added myself to the root group ... works fine now ... and it is a NTFS partiton


Well there goes all your security :D

A more secure way of doing what you want is to give your user the right to to use the mount command as root and nothing else using visudo.
See 'man sudoers'
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK


Return to Basic support

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest