Fedora Linux Support Community & Resources Center
  #1  
Old 2nd March 2005, 08:06 PM
Flo Offline
Registered User
 
Join Date: Mar 2005
Posts: 16
permanent change of owner for /dev/hdc

Hi,
I would like to change permanently the owner of /dev/hdc from root to my a user or enable a general access of all users to this drive. The problem is that this is the cdrom and a mountpoint in /media/cdrecorder does not satisfy all programs (like grip, cdplayer) and therefore I have to change it each time manually before I can mount those. The same applies for /dev/hda7 which is my data-hard-drive. I have to umount and mount after reboot to be able to write on that drive as a normal user.
Since the computer changes the made settings automatically back to before I have to perform this procedure everytime anew. In other forums this problem does not seem to be present so I assume that this is something specific for Fedora. I never had those Prblems with Suse (but some others).
Thanks for you help.
Flo
Reply With Quote
  #2  
Old 2nd March 2005, 08:13 PM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
Here's my /etc/fstab entry that does that, works just fine. (not I mount my device on "/cdrom". less typing for me )

/dev/cdrom /cdrom iso9660 defaults,user 0 0
__________________
Only dead fish go with the flow....

Hmmm, what did I miss?
Reply With Quote
  #3  
Old 2nd March 2005, 08:18 PM
Flo Offline
Registered User
 
Join Date: Mar 2005
Posts: 16
Great, my fstab entry looks pretty much the same and that actually allows me to do this umount and mount stuff. Here is my fstab
Quote:
/dev/hdc /media/cdrecorder iso9660 users 0 0
But I really would like to change the woner of /dev/hdc or /dev/hda7 permanently. Why does the computer change it back to how it was before after a reboot.
Thanks
Reply With Quote
  #4  
Old 2nd March 2005, 08:19 PM
ghaefb Offline
Retired Community Manager
 
Join Date: Apr 2004
Location: Slovenia
Age: 31
Posts: 1,713
You can put 'chown user.user /dev/hdc' line to /etc/rc.d/rc.local file.
(user = your username)
__________________
_ghaefb


blog & sysinfo
Reply With Quote
  #5  
Old 2nd March 2005, 09:00 PM
Northwood Offline
Registered User
 
Join Date: Mar 2005
Posts: 5
Quote:
Originally Posted by Flo
But I really would like to change the woner of /dev/hdc or /dev/hda7 permanently. Why does the computer change it back to how it was before after a reboot.
Thanks
Ok, to accomplish something similar to this you can make a file in /etc/udev/permissions.d called something.permissions (replace 'something' with something apropriate) with a line like this:
Code:
 hdc:root:root:0666
After rebooting your user should be able to access the cddrive. To give your user write ability to the mount point of /dev/hda7 you can make your fstab entry for it similar to this:
Code:
/dev/hda7  /mnt/datadrive   filesystemthatituses   auto,users,umask=0111,dmask=0000,rw   0 0
I hope this helps.

Edit: I had the permissions wrong.

Last edited by Northwood; 2nd March 2005 at 09:42 PM.
Reply With Quote
Reply

Tags
change, or dev or hdc, owner, permanent

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how i change permanent mount for /home... sam09 Using Fedora 4 24th March 2009 05:35 PM
Cannot change owner fedora1968 Using Fedora 8 4th February 2007 07:58 AM
change folder owner(many folders/files) elian85 Using Fedora 5 28th December 2004 07:24 PM


Current GMT-time: 14:29 (Saturday, 30-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin Copyright 2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat