Use of Root (su)

Gregory Boyce gboyce at badbelly.com
Thu Jan 27 21:23:41 EST 2005


On Thu, 2005-01-27 at 18:27 -0500, Derek Atkins wrote:
> <karina.popkova at verizon.net> writes:
> > Is the need to go to root, typical,
> > to mount a filesystem, or to make 
> > a ext2fs ???
> 
> It's typical that you cannot "mount" without root access.  But you
> should have the access to make the filesystem on /dev/fd0 (actually
> you should probably use /dev/fd0H1440) without being root.  At least
> on my RH system (Actually linux-athena 9.3) /dev/fd0 is owned by me.

You can mount as a non-root user as long as there is an /etc/fstab entry
for the device with "user" as an option.  

I would check for a floppy entry in /etc/fstab.  If the path is mounting
to is different, then you may successfully mount to the specified
mountpoint.

One note though:
> > mount -t /dev/fd0 /mnt/floppy 
> > mke2fs /dev/fd0 1440

Running mke2fs on a mounted filesystem isn't exactly recommended.  You
should mke2fs, and THEN mount.

Greg Boyce




More information about the Discuss mailing list