Can a normal user format, mount the card

Can a normal user format, mount the card

am 09.11.2005 12:06:32 von mukundjb

Dear users,

I am just here to confirm whether a normal user can mount and format a device.
As for as I rememder a normal user is not allowed to mount. I tried it & I am not able to do it.

Then fhow can a normal user access a device. I am seeing that he is not even able to place files into a mounted device.

Regards,
Mukund Jampala
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Can a normal user format, mount the card

am 09.11.2005 12:25:24 von Carl Lawton

At 11:06 09/11/2005, Mukund JB. wrote:

>Dear users,
>
>I am just here to confirm whether a normal user can mount and format a device.
>As for as I rememder a normal user is not allowed to mount. I tried
>it & I am not able to do it.
>
>Then fhow can a normal user access a device. I am seeing that he is
>not even able to place files into a mounted device.
>
>Regards,
>Mukund Jampala
>-

man fstab
man chown


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Can a normal user format, mount the card

am 09.11.2005 13:34:27 von chuck gelm net

Hi, Mukund Jampala:

Mount; yes. Format; I don't know.

fstab:
/dev/sda1 /mnt/flash msdos noauto,users
/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0

HTH, Chuck

Mukund JB. wrote:
> Dear users,
>
> I am just here to confirm whether a normal user can mount and format a device.
> As for as I rememder a normal user is not allowed to mount. I tried it & I am not able to do it.
>
> Then fhow can a normal user access a device. I am seeing that he is not even able to place files into a mounted device.
>
> Regards,
> Mukund Jampala
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Can a normal user format, mount the card

am 09.11.2005 14:46:59 von beolach

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mukund JB. wrote:
> Dear users,
>
> I am just here to confirm whether a normal user can mount and format a device.
> As for as I rememder a normal user is not allowed to mount. I tried it & I am not able to do it.
>
> Then fhow can a normal user access a device. I am seeing that he is not even able to place files into a mounted device.
>
> Regards,
> Mukund Jampala

For mounting, just add either user or users to the options column in
/etc/fstab on the line for the device. User allows any user to mount
the device if it isn't already mounted, and once it's mounted only that
user (or root, of course) can unmount it. Users allows any user to
mount or unmount the device, even if a different user mounted it.

For example, if your CD-ROM drive was /dev/hdc, and you wanted anyone to
mount it, but only the user that mounted it can unmount it, you would
have this line in /etc/fstab:
/dev/hdc /mnt/cdrom iso9660 defaults,noauto,user,ro 0 0

To format a device, you would probably want to be root. I'm not
positive, but a regular user would likely be able to format a device if
they had execute permission on the mkfs utility (mke2fs, mkreiserfs,
etc.), and write permission on the device node (/dev/hd*, /dev/sd*,
etc), but giving regular users those permissions would probably not be a
good idea.

Good luck,
Conway S. Smith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDcf3SGL3AU+cCPDERAmGwAJ9YrVwjTX00BYEwErjK6lyjn67QTACg xvhI
5yBpG7MgwMyMkX3YfG08tcc=
=VgtG
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs