Ahhhg Mount altering file access

Ahhhg Mount altering file access

Post by mmyns.. » Fri, 14 Jul 2000 04:00:00



I have an empty directory called "/usr/local/share/win98"
I did a "chmod 777 /usr/local/share/win98"

No problem it is now 777.

I mount my win98 partition /dev/sda2

"mount /dev/sda2 /usr/local/share/win98 -t vfat -o defaults"

They I check the access of the /usr/local/share/win98 directory and its
contents and it has all changed.  I need all users in group users to
have full access to the contents of this directory.

If I do a "chmod -R 777 /usr/local/share/win98" nothing happens, i.e.
only ROOT has 7 access to the contents of the directory.

The owning user is ROOT and the group is ROOT.

What am I doing wrong?

Any help will be well received.

--
MM

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Ahhhg Mount altering file access

Post by Keiich » Fri, 14 Jul 2000 04:00:00


Hi


Quote:> I have an empty directory called "/usr/local/share/win98"
> I did a "chmod 777 /usr/local/share/win98"

> No problem it is now 777.

> I mount my win98 partition /dev/sda2

> "mount /dev/sda2 /usr/local/share/win98 -t vfat -o defaults"

> They I check the access of the /usr/local/share/win98 directory and its
> contents and it has all changed.  I need all users in group users to
> have full access to the contents of this directory.

vfat doesn't support permissions. They are emulated by the kernel. It
doesn't use the permissions of the directory in which it is mounted but
those specified by the 'umask' option.

You should use :

    mount /dev/sda2 /usr/local/share/win98 -t vfat -o defaults,umask=xxx

with xxx the good umask (000 I guess)...

Quote:> If I do a "chmod -R 777 /usr/local/share/win98" nothing happens, i.e.
> only ROOT has 7 access to the contents of the directory.

> The owning user is ROOT and the group is ROOT.

> What am I doing wrong?

> Any help will be well received.

> --
> MM

Bye

--
Sylvain DEFRESNE

 
 
 

Ahhhg Mount altering file access

Post by Dances With Cro » Fri, 14 Jul 2000 04:00:00




Quote:>I mount my win98 partition /dev/sda2
>"mount /dev/sda2 /usr/local/share/win98 -t vfat -o defaults"
>They I check the access of the /usr/local/share/win98 directory and its
>contents and it has all changed.  I need all users in group users to
>have full access to the contents of this directory.
>If I do a "chmod -R 777 /usr/local/share/win98" nothing happens, i.e.
>only ROOT has 7 access to the contents of the directory.
>The owning user is ROOT and the group is ROOT.
>What am I doing wrong?

You haven't read the man page for mount.  "man mount", paying particular
attention to the options for a VFAT filesystem.  Since VFAT doesn't know
about permissions, all permissions are set at mount time, and the default
options make it so that the umask is 022 and all files are owned by the
mounting user's UID and GID.  If you mount the drive with "mount -t vfat
/dev/sda2 /mnt/win98 -o umask=002,uid=0,gid=users" then things will work
better.

--
Matt G / Dances With Crows      /\    "Man could not stare too long at the face
\----[this space for rent]-----/  \   of the Computer or her children and still
 \There is no Darkness in Eternity \  remain as Man." --David Zindell "So did
But only Light too dim for us to see\ they become Gods, or Usenetters?" --/me

 
 
 

1. Q: Altering/overriding mount counts?

Hi!

I was wondering if there was some way to read, or alter the "mount
counts".  Specifically though, I'm looking for a way to occasionally
override the filesystem check due to maximum mount counts.  For example,
for an earlier post, "Re: Tried mounting floppy, No Luck", I had to
reboot, go into Linux, and examine my fstab and mtab, move the important
info to a dos drive, and reboot.  I don't have any complaints about this
part.  But, when I booted into Linux, I hit maximum mount counts, and had
to wait 5-10 minutes for it to take care of it.  So, would there be any
way to override it once, for example have it ask you "Are you terribly
busy right now? [y/N]" timeout three seconds to no, and if you say yes, it
puts it off.  Puts it off, so that, for example, I won't be using the
computer for awhile after this, and I could just boot it into Linux and
have it take care of that without me needing to wait on it.

Would that be possible?  :D

Jeremy Weatherford

---
Have you heard about RARS? (Robot Auto-Racing System)

2. lpNet required for every printer?

3. File Access - Does Owner Access Override Group Access?

4. Crossreference like tool for shells scripts

5. mounting (accessing) a novell file system on unix box?

6. comp.security.unix and comp.security.misc frequently asked questions

7. Problems with ghostview accessing nfs-mounted file

8. ssh port forwarding

9. Unable to access files on NFS mount

10. How do I mount a file system for root access only?

11. Error accessing loop-back mounted file systems via nfs

12. NFS mount and RM/COBOL file access

13. How do I access a device on an NFS mounted file system ?