[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mount ext2/ext3 as specific user at system start?



* W Paul Mills <Paul-NOT@Mills-USA.com> [2006 Nov 17 06:18 -0600]:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Wackojacko wrote:
> > Wackojacko wrote:
> >> Kamaraju Kusumanchi wrote:
> >>> On Wednesday 15 November 2006 20:48, Roberto C. Sanchez wrote:
> >>>> On Wed, Nov 15, 2006 at 08:28:27PM -0500, Kamaraju Kusumanchi wrote:
> >>>>> So your sample line in /etc/fstab will look like
> >>>>> /dev/sda1       /home/user/partition  auto    user,auto,exec    
> >>>>> 0      0
> >>>>>
> >>>>> The above line is untested so try it only after reading all the
> >>>>> relevant
> >>>>> manual pages.
> >>>> That will not fix his problem.  Since it will automatically mount at
> >>>> boot, it will be mounted by root.  That means that only root will be
> >>>> able to unmount it.  Of course, this will not fix any of the ownership
> >>>> issues.
> >>>>
> >>>
> >>> Thanks Roberto! I use
> >>>
> >>> /dev/sda1       /home/user/partition  auto    user,noauto,exec    
> >>> 0      0
> >>>
> >>> to allow the users to mount the USB drive. I did not think of all the
> >>> consequences of changing noauto to auto.
> >>>
> >>> sorry for the noise.
> >>>
> >>> raju
> >>>
> >>>
> >> What about the uid,gid options in mount.  my fstab for a vfat shared
> >> windows partition is
> >>
> >> /dev/sda6       /mnt/Windowsdat vfat
> >> rw,user,auto,uid=1000,gid=1000,umask=002        0       2
> >>
> >> and it's mounted a boot with user and group ownership I want.
> >>
> >> These options are not available on all fs types I think.
> >>
> >> HTH
> >>
> >> Wackojacko
> >>
> > 
> > Sorry for the noise, just read the subject line again and the manpage
> > for mount and ext2/3 dont support these options afaict.  Brain in gear :)
> > 
> > Wackojacko
> > 
> > 
> 
> Why not mount it from crontab with an @reboot parameter?

Did anyone not read my followup to myself (bad form, I know) that I
solved this quite simply and easily?  Once mounted, change the
ownership and group to whatever and it will hold through reboots.  It
has worked several times now, so I consider the issue solved.

Thanks for the replies, but this is not as complicated as it seems.

- Nate >>

-- 
 Wireless | Amateur Radio Station N0NB          |  Successfully Microsoft
  Amateur radio exams; ham radio; Linux info @  | free since January 1998.
             http://www.qsl.net/n0nb/           |  "Debian, the choice of
             My Kawasaki KZ-650 SR @            |     a GNU generation!"
        http://www.networksplus.net/n0nb/       |   http://www.debian.org



Reply to: