 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

24th March 2007, 07:07 AM
|
 |
An ape descendant
|
|
Join Date: Dec 2006
Location: Mexico City
Age: 29
Posts: 3,101

|
|
|
Help with sudoers file
Hello everybody.
I know many of you might find this post quite dumb, anyway I will post it. Today I am looking forward to let my non privileged user to mount a partition in my Linux system. This extra partition will have all my data (music, school files, etc) so I want my user to gain ownership of the files so I thought sudo is my solution, isn't it?
Therefore I am looking forward to allow this user to mount/umount this partition at will (perhaps I add it to fstab as well). The problem I am having is that I can not configure the sudoers file (I use visudo).
The partition is /dev/hda4 and I plan to mount it either in /mnt/storage or in /home/joe/storage, how shall I add the line in the sudoers file? I have tried several ways to do so but when trying to run the command it does not work (only root can do that). By the way the file system is Reiser.
Thanks.
Joe.
__________________
Notebook: Acer Aspire 5536-5112.
AMD Athlon X2 QL64 @ 2.1GHz, 4GB DDR2 PC2-5300, ATI Radeon HD3200 (256MB), 250GB Toshiba HDD, HL-DT-ST DVDRAM GT20N
Fedora 16 x86_64
Netbook: Acer Aspire One A150
Intel Atom N270 @ 1.6GHz, 1.5 GB DDR2 PC2-4200, Intel Graphics (8MB?), 160GB Seagate HDD
Fedora 15 i686
|

24th March 2007, 07:35 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Location: Pueblo,Colorado
Posts: 724

|
|
|
Is it possible to make a group?
If so,add yourself and the other user to the group, and set the group permissions to what you need. Then add any other users to the group as needed.
Just a thought, but I been drinkin, so I may be WAY out of whack here.
Bill
__________________
Registered Linux User : 361761 Registered Machine (2nd time): 332471
Work is for people who don't know how to fish.......;)
Sometimes the obvious is so well hidden that it boggles the mind.
|

26th March 2007, 12:06 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Champaign, IL
Age: 49
Posts: 131

|
|
You can enter the following lines using visudo:
Code:
your_user's_username ALL=NOPASSWD: /bin/mount /MOUNTPOINT_YOU_WANT_TO_MOUNT
your_user's_username ALL=NOPASSWD: /bin/umount /MOUNTPOINT_YOU_WANT_TO_MOUNT
This should allow your user to mount and unmount the partition via the designated mountpoint with sudo. Partition and mount point information need to be in fstab.
__________________
Registered Linux User #391321
-----------------------------------
Fedora Core 7 32-bit, ASUS P4P800 SE mobo, Antec SLK1650 case with 450-watt Antec PS, Intel P4 2.8 GHz, 1GB DDR400 RAM, 256 MB ATI Radeon 9200 SE, Creative Labs SB Live! EMU10k1, 16X DVD-ROM Pioneer DVD-120, 16X DVD-RW Sony DRU-820A, 80GB IDE Western Digital WD800JB, 10GB IDE Quantum Bigfoot TS, 80GB SATA Western Digital IDE WD800JD, Samsung 19" LCD SyncMaster 912N.
|

26th March 2007, 12:14 AM
|
 |
An ape descendant
|
|
Join Date: Dec 2006
Location: Mexico City
Age: 29
Posts: 3,101

|
|
Quote:
|
Originally Posted by fedoraphile
You can enter the following lines using visudo:
Code:
your_user's_username ALL=NOPASSWD: /bin/mount /MOUNTPOINT_YOU_WANT_TO_MOUNT
your_user's_username ALL=NOPASSWD: /bin/umount /MOUNTPOINT_YOU_WANT_TO_MOUNT
This should allow your user to mount and unmount the partition via the designated mountpoint with sudo. Partition and mount point information need to be in fstab.
|
Thanks for the info, I'll check it out.
__________________
Notebook: Acer Aspire 5536-5112.
AMD Athlon X2 QL64 @ 2.1GHz, 4GB DDR2 PC2-5300, ATI Radeon HD3200 (256MB), 250GB Toshiba HDD, HL-DT-ST DVDRAM GT20N
Fedora 16 x86_64
Netbook: Acer Aspire One A150
Intel Atom N270 @ 1.6GHz, 1.5 GB DDR2 PC2-4200, Intel Graphics (8MB?), 160GB Seagate HDD
Fedora 15 i686
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 09:43 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|