public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Can a normal user format, mount the card
@ 2005-11-09 11:06 Mukund JB.
  2005-11-09 11:25 ` Carl
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mukund JB. @ 2005-11-09 11:06 UTC (permalink / raw)
  To: linux-newbie


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can a normal user format, mount the card
  2005-11-09 11:06 Can a normal user format, mount the card Mukund JB.
@ 2005-11-09 11:25 ` Carl
  2005-11-09 12:34 ` chuck gelm
  2005-11-09 13:46 ` Conway S. Smith
  2 siblings, 0 replies; 4+ messages in thread
From: Carl @ 2005-11-09 11:25 UTC (permalink / raw)
  To: linux-newbie

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can a normal user format, mount the card
  2005-11-09 11:06 Can a normal user format, mount the card Mukund JB.
  2005-11-09 11:25 ` Carl
@ 2005-11-09 12:34 ` chuck gelm
  2005-11-09 13:46 ` Conway S. Smith
  2 siblings, 0 replies; 4+ messages in thread
From: chuck gelm @ 2005-11-09 12:34 UTC (permalink / raw)
  To: Mukund JB.; +Cc: linux-newbie

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can a normal user format, mount the card
  2005-11-09 11:06 Can a normal user format, mount the card Mukund JB.
  2005-11-09 11:25 ` Carl
  2005-11-09 12:34 ` chuck gelm
@ 2005-11-09 13:46 ` Conway S. Smith
  2 siblings, 0 replies; 4+ messages in thread
From: Conway S. Smith @ 2005-11-09 13:46 UTC (permalink / raw)
  To: Mukund JB.; +Cc: linux-newbie

-----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+cCPDERAmGwAJ9YrVwjTX00BYEwErjK6lyjn67QTACgxvhI
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-09 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-09 11:06 Can a normal user format, mount the card Mukund JB.
2005-11-09 11:25 ` Carl
2005-11-09 12:34 ` chuck gelm
2005-11-09 13:46 ` Conway S. Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox