public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Beolach <beolach@comcast.net>
To: Karthik <karthikv@Alum.Dartmouth.ORG>
Cc: linux-newbie@vger.kernel.org
Subject: Re: mounting vfat partitions
Date: Mon, 26 Apr 2004 20:48:37 -0600	[thread overview]
Message-ID: <408DCA05.60705@comcast.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0404261824550.12785-100000@legolas.personal.engin.umich.edu>

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

I would recommend something like:

/dev/hdb1	/dosd	vfat	defaults,umask=0,utf8,uid=1000,gid=100
/dev/hda1	/dosc	vfat	defaults,umask=0,utf8,uid=1000,gid=100

Most importantly, the umask=0 option tells mount to grant all
permissions for all users.  Less important, the uid & gid specify the
user & group ids for all files on the vfat filesystem.  uid=1000 should
usually be the first regular user, and gid=100 should be group users.
If you want regular (non-root) users to be able to mount & umount the
filesystem, you should add user or users to the options in fstab.
'users' will allow any user to mount or umount the filesystem, while
'user' will allow any user to mount, and only that user (or root, of
course) to umount.  See man 8 mount for more options.

HTH,
Conway S. Smith

Karthik Vishwanath wrote:
> changing the /etc/fstab entries to the ones you listed below, Amin,
mounts
> the devices at boot but does not allow a user to read them.
>
> The problem persists.
>
> -K
>
> On Mon, 26 Apr 2004, at 9:26am, Amin wrote:
>
>
>>Karthik Vishwanath wrote:
>>
>>
>>>/dev/hdb1	/dosd	vfat	defaults
>>>/dev/hda1	/dosc	vfat	defaults
>>>
>>>This mounts the partitions correctly. However, I am able to access these
>>>mount points only as root, and not as a user.  I would prefer that these
>>>vfat partitions be writable by root alone, but be readble for all
users on
>>>the machine. How can I fix that?
>>>
>>>Thanks,
>>>
>>>-K
>>
>>/dev/hdb1	/dosd	vfat	defaults,owner,user
>>/dev/hda1	/dosc	vfat	defaults,owner,user
>>
>>HTH
>>
>>Yawar
>>
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAjcoDGL3AU+cCPDERAnTYAJ9zd3u/by3H71UCNcDGP95z07bCuwCfa79g
Ao5XobzNXsmd732sfwl467o=
=mJMV
-----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

      reply	other threads:[~2004-04-27  2:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-25 22:31 mounting vfat partitions Karthik Vishwanath
2004-04-26  3:26 ` Amin
2004-04-26 22:27   ` Karthik Vishwanath
2004-04-27  2:48     ` Beolach [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=408DCA05.60705@comcast.net \
    --to=beolach@comcast.net \
    --cc=karthikv@Alum.Dartmouth.ORG \
    --cc=linux-newbie@vger.kernel.org \
    /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