public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: "Conway S. Smith" <beolach@comcast.net>
To: "Mukund JB." <mukundjb@esntechnologies.co.in>
Cc: linux-newbie@vger.kernel.org
Subject: Re: Can a normal user format, mount the card
Date: Wed, 09 Nov 2005 06:46:59 -0700	[thread overview]
Message-ID: <4371FDD3.2020303@comcast.net> (raw)
In-Reply-To: <3AEC1E10243A314391FE9C01CD65429B04F016@mail.esn.co.in>

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

      parent reply	other threads:[~2005-11-09 13:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4371FDD3.2020303@comcast.net \
    --to=beolach@comcast.net \
    --cc=linux-newbie@vger.kernel.org \
    --cc=mukundjb@esntechnologies.co.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox