[64studio-devel] HDD: Write permissions for ordinary

Michael Pacey michael at wd21.co.uk
Mon Feb 26 20:03:56 UTC 2007


Hi,

I'm using DeMuDi on this machine but this should apply to 64 Studio too.

The permissions of the device files are managed through the
file /etc/udev/permissions.rules

My user account is mpacey and I am in the group mpacey as seen from the
output of the id command:

uid=1000(mpacey) gid=1000(mpacey)
groups=7(lp),20(dialout),24(cdrom),25(floppy),29(audio),44(video),46(plugdev),106(camera),107(scanner),1000(mpacey)


I have a FAT filesystem on /dev/hda3. To make the device file read/write
to me, I added the following line to /etc/udev/permissions.rules:

KERNEL=="hda3",                                 GROUP="mpacey"

I added it near the end, so it overwrites the default GROUP applied to
BLOCK devices (disk).

I created a mount point (as root): mkdir /mnt/hda3

To make it mountable by a normal user, I added the following
to /etc/fstab:

/dev/hda3       /mnt/hda3       vfat    noauto,defaults,user 0 0

To get this mounted automatically on startup, I changed this to:

/dev/hda3       /mnt/hda3       vfat    auto,defaults,user,uid=1000 0 0

1000 is my UID, yours is probably 500, id will tell you.

So if you know the /dev/ names of your FAT32 filesystems, then make
suitable mount points, add suitable lines in /etc/udev/permissions.rules
and add suitable /etc/fstab entries like I have shown.

Hope this helps!

--
Michael

On Mon, 2007-02-26 at 19:56 +0100, R.Wolff wrote:
> They're all Fat32 drives/partitions.
> And like I said, I've tried several methods to gain ownership or at 
> least write permissions for those drives.
> For the moment being, I simply logon as root.
> 
> Cheers
> Raphael ;)
> 
> 
> 
> guerrier schrieb:
> > Hi
> > 
> > what is the format for your HDs?
> > 
> > If you are trying to write to ntfs, i suggest that you install Fuse
> > and ntfs-3g.  Try to find a repo with the latest version of both
> > applications.  you can find the latest ntfs-3g here ( deb
> > http://www.vobcopy.org/mirror/elive/ elive main efl elive ).
> > 
> > My other suggest is to use chown to gain owner's access of the HD.
> > this page (http://en.wikipedia.org/wiki/Chown) explains how to use it
> > and has examples.
> > 
> > Once you have the proper driver and permission, you can add the drive in 
> > fstab.
> > 
> > guerrier
> > 
> >>  Message: 5
> >> Date: Mon, 26 Feb 2007 10:59:32 +0000
> >> From: Daniel James < daniel at 64studio.com>
> >> Subject: Re: [64studio-devel] HDD: Write permissions for ordinary
> >>         user?
> >> To: Quentin Harley < qharley at wbs.co.za>
> >> Cc: 64-Studio <  64studio-devel at 64studio.com>
> >> Message-ID: <45E2BD94.4050405 at 64studio.com>
> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >>
> >> Hi Quentin, hi Raphael,
> >>
> >> > I had to change change the owner group of my secondary HDD to "audio".
> >> >  From then on I had realtime full access to that HDD.
> >>
> >> That's one way to do it; another is to set the second hard disc as the
> >> /home partition during the install.
> >>
> >> I appreciate the security model can be frustrating for a new user. The
> >> distro is configured by default for a multi-user environment, where you
> >> don't want to give write access to files outside of /home/username/ to
> >> just anyone.
> >>
> >> Cheers!
> >>
> >> Daniel
> > 
> 
> _______________________________________________
> 64studio-devel mailing list
> 64studio-devel at 64studio.com
> http://lists.64studio.com/mailman/listinfo/64studio-devel
> 




More information about the 64studio-devel mailing list