Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2001 08:05:14 -0500 (EST)
From:      robdefriesse@mail.com (Rob deFriesse)
To:        cjclark@alum.mit.edu
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Permissions on UFS floppy.
Message-ID:  <200102041305.f14D5ES20586@chmls05.mediaone.net>

next in thread | raw e-mail | index | archive | help

> > I am unable to set the permissions I desire on a diskette with a UFS
> > file system. Specifically, I would like to be able to mount the
> > diskette with group write permission at the mount point.
> > 
> > I prepared the diskette with :
> > 
> > fdformat -f 1440 fd0
> > disklabel -w -r /dev/fd0 fd1440
> > newfs -T fd1440 /dev/fd0
> > 
> > Then I mounted it with:
> > 
> > mount -w -t ufs /dev/fd0a /fd
> > 
> > Before the mount command, the permissions on the "/fd" directory are:
> > 
> > > ll -d /fd
> > drwxrwxrwx 2 root wheel 512 Jan 24 18:33 /fd
> > 
> > After the mount, the permissions are:
> > 
> > > ll -d /fd
> > drwxr-xr-x 2 root wheel 512 Feb 3 22:45 /fd
> 
> Can't you change permissions of the floppy right now? You should get
> the permissions of the root directory of the floppy's filesystem when
> it is mounted.

That's it!  Thank you.

After the diskette was mounted, I tried:

    chmod g+w /fd

and the permissions were:

    ll -d /fd
    drwxr-xr-x  2 root  wheel  512 Feb  3 22:45 /fd

but when I do:

    chmod g+w /fd/.

I get the permissions I want:

    ll -d /fd
    drwxrwxr-x  2 root  wheel  512 Feb  3 22:45 /fd

Now I know there's a difference between /fd and /fd/.

Thank you,
Rob.

> -- 
> Crist J. Clark cjclark@alum.mit.edu



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102041305.f14D5ES20586>