public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* mounting vfat partitions
@ 2004-04-25 22:31 Karthik Vishwanath
  2004-04-26  3:26 ` Amin
  0 siblings, 1 reply; 4+ messages in thread
From: Karthik Vishwanath @ 2004-04-25 22:31 UTC (permalink / raw)
  To: linux-newbie

The layout of partitions on my system here looks like the following:

/dev/hda1 -> vfat
/dev/hdb1 -> vfat
/dev/hdb2 -> ext2
/dev/hdb3 -> ext2
/dev/hdb4 -> swap

/dev/hdb2 corresponds to /, and /dev/hdb3 to /home. I want to be able to 
mount /dev/hda1 and /dev/hdb1 as /dosc and /dosd, respectively and have 
added the following lines to /etc/fstab:
/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

-
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: mounting vfat partitions
  2004-04-25 22:31 mounting vfat partitions Karthik Vishwanath
@ 2004-04-26  3:26 ` Amin
  2004-04-26 22:27   ` Karthik Vishwanath
  0 siblings, 1 reply; 4+ messages in thread
From: Amin @ 2004-04-26  3:26 UTC (permalink / raw)
  To: Karthik; +Cc: linux-newbie

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
-
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: mounting vfat partitions
  2004-04-26  3:26 ` Amin
@ 2004-04-26 22:27   ` Karthik Vishwanath
  2004-04-27  2:48     ` Beolach
  0 siblings, 1 reply; 4+ messages in thread
From: Karthik Vishwanath @ 2004-04-26 22:27 UTC (permalink / raw)
  To: linux-newbie

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
> 

-
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: mounting vfat partitions
  2004-04-26 22:27   ` Karthik Vishwanath
@ 2004-04-27  2:48     ` Beolach
  0 siblings, 0 replies; 4+ messages in thread
From: Beolach @ 2004-04-27  2:48 UTC (permalink / raw)
  To: Karthik; +Cc: linux-newbie

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

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

end of thread, other threads:[~2004-04-27  2:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox