Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Misc
Reload this Page Mounting movable device as user
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Misc Any questions or Linux discussion that does not fit in any of the other technical areas.

Reply
 
Thread Tools Display Modes
Old 04-28-2008   #1 (permalink)
satimis
Linux Engineer
 
Join Date: Sep 2004
Posts: 1,054
Mounting movable device as user

Hi folks,


Ubuntu 7.10 desktop amd64


Since only root can mount moveable device I run "sudo mount" to do the job. However all files copied onto the moveble device become owned by root. Is there a clue to allow a selected user (NOT all users) to mount movable device as user NOT as root so that the ownership of files copied on to the device can be retained as original. TIA


B.R.
satimis
satimis is offline   Reply With Quote
Old 04-28-2008   #2 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,036
Quote:
Originally Posted by satimis View Post
Hi folks,


Ubuntu 7.10 desktop amd64


Since only root can mount moveable device I run "sudo mount" to do the job. However all files copied onto the moveble device become owned by root. Is there a clue to allow a selected user (NOT all users) to mount movable device as user NOT as root so that the ownership of files copied on to the device can be retained as original. TIA


B.R.
satimis
I don't know if there's a more ubuntu-ish way to do this things.

However, you can setup your drives on /etc/fstab usually. If you are the mount option "users", any user will be able to mount the drive. For example, I use this line for my dvd drive:

Code:
/dev/scd0 /mnt/dvd iso9660 ro,users,noauto 0 0
Removable devices, however, don't have to have always the same device node by default. So, making rules on fstab for them is not that simple. To fix that you need to make an udev rule, so the device will always be named the same way.

I am not an ubuntu user myself. A quick google revealed a thread on the ubuntu forums that might be useful for you:

Create your own udev rules to control removable devices - Ubuntu Forums

Though it's mostly the same for all the distros.

As I said, there might be another way around. Maybe ubuntu is using ivman or something custom by default. So, wait for input from a ubuntu user, just in case that there's a better way around.
i92guboj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 09:21 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0