Article View: comp.sys.dec
Article #419Re: Help: how to set the ownership of a mounted floppy disk back to general user
From: John F Haugh II
Date: Fri, 17 Apr 1992 15:30
Date: Fri, 17 Apr 1992 15:30
40 lines
2428 bytes
2428 bytes
In article <1992Apr17.102950.24105@corp.telecom.co.nz> chuck@comp.vuw.ac.nz (Chuck Qun Zheng) writes: >In article <shlam.703387613@cucs11.cs.cuhk.hk>, shlam@cucs11.cs.cuhk.hk >(Alan S H Lam) writes: >|> I can mount a 5000/25 DEC station floppy disk drive as a general user >|> |> as long as the root has set: >|> >|> chmod +rwx /dev/rfd0a >|> chmod +rwx /dev/fd0a >|> >|> However after the mounting, the ownership of the mount directory is >|> root rather than the user even though the directory is created by >|> the >|> user and has been set to "chmod +rwx" by the user before mounting. >|> The status of the mounted directory is still drwxr-xr-x. Hence, >|> general >|> user cannot directly copy any file to the floppy disk. >|> >How about > > chown root.students /dev/rfd0a /dev/fd0a > >Or set gid to staff, grads, users, etc. Ultrix might well allow a user in >many groups, like BSD. That won't fix it either. The problem is in the root directory on the floppy disk, more likely than not. You need to fix the floppy diskette before that directory will ever be changed - mounting the floppy puts the mounted-on directory underneath the root directory on the floppy itself. So, you need to chmod the directory =after= mounting, not before. As for changing the device, that only grants you access to the device. Once the floppy has been mounted, the permissions on the filesystem control access. Changing the modes on the device does nothing at all. -- John F. Haugh II | SITUATION WANTED: Ma Bell: (512) 251-2151 | Will write device drivers, turn status UUCP: ...!cs.utexas.edu!rpp386!jfh | reports in late, and whine incessantly Domain: jfh@rpp386.cactus.org | for food. Serious inquiries only ;-)
Technical Details
Message-ID:
<20645@rpp386.lonestar.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!chinacat!rpp386!jfhReferences:
<shlam.703387613@cucs11.cs.cuhk.hk> <1992Apr17.102950.24105@corp.telecom.co.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!chinacat!rpp386!jfh From: jfh@rpp386.lonestar.org (John F Haugh II) Newsgroups: comp.sys.dec,comp.unix.ultrix,comp.unix.admin Subject: Re: Help: how to set the ownership of a mounted floppy disk back to general user Message-ID: <20645@rpp386.lonestar.org> Date: 17 Apr 92 15:30:20 GMT References: <shlam.703387613@cucs11.cs.cuhk.hk> <1992Apr17.102950.24105@corp.telecom.co.nz> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Organization: On the Beach, Simpson Bay, Sint Maarten, Nederland Antilles Lines: 40 X-Random-Thought: Practice random kindness and senseless acts of beauty