This is a discussion on Copy a door? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> How does one make a copy of a door file? (Solaris 8)...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| dust <powdery@dusty.stuff> writes in comp.unix.solaris: |How does one make a copy of a door file? (Solaris 8) You don't - like a pipe or socket, there's nothing to copy. -- __________________________________________________ ______________________ Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM http://www.csua.berkeley.edu/~alanc/ * http://blogs.sun.com/alanc/ Working for, but definitely not speaking for, Sun Microsystems, Inc. |
| |||
| In article <MPG.1b72048e99043ef5989925@news.alt.net>, dust <powdery@dusty.stuff> wrote: >How does one make a copy of a door file? (Solaris 8) It makes no sense. A door file is a file from DOORFS mounted on top of a usually empty file. If you like to make a backup from a FS, you usually first create a snapshot and mount it. This mounted snapshot does not include the DOOR. If you use star -copy .... the DOOR file will be "archived" as DOOR but extracted as plain file. -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) If you don't have iso-8859-1 schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily |
| |||
| In article <cea37a$26i1$1@agate.berkeley.edu>, Alan Coopersmith <alanc@alum.calberkeley.org> wrote: >dust <powdery@dusty.stuff> writes in comp.unix.solaris: >|How does one make a copy of a door file? (Solaris 8) > >You don't - like a pipe or socket, there's nothing to copy. There is definitely a difference between a door and a pipe or a socket. Pipes and sockets both live in the hosting filesystem, a door doesn't. You definitely need to copy a pipe because you don't know whether it has been created intermediately by the process that needs it or if it has been manually created by the admin for some reason. You may copy a socket, but you cannot copy a door. -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) If you don't have iso-8859-1 schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily |
| |||
| js@cs.tu-berlin.de (Joerg Schilling) writes: > If you use > star -copy .... > > the DOOR file will be "archived" as DOOR but extracted as plain file. Why? What would be the purpose of creating an empty file upon restore, instead of a door? Dragan -- Dragan Cvetkovic, To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer !!! Sender/From address is bogus. Use reply-to one !!! |
| |||
| In article <lmbrhz6keh.fsf@privacy.net>, Dragan Cvetkovic <dragan_usenet@gmx.net> wrote: >js@cs.tu-berlin.de (Joerg Schilling) writes: > >> If you use >> star -copy .... >> >> the DOOR file will be "archived" as DOOR but extracted as plain file. > >Why? What would be the purpose of creating an empty file upon restore, >instead of a door? Doors arre usually mounted on empty files. -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) If you don't have iso-8859-1 schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily |
| |||
| In article <cea37a$26i1$1@agate.berkeley.edu>, alanc@alum.calberkeley.org says... > dust <powdery@dusty.stuff> writes in comp.unix.solaris: > |How does one make a copy of a door file? (Solaris 8) > > You don't - like a pipe or socket, there's nothing to copy. a. Pipes can be copied. The -R switch to "cp" allows one to replicate a pipe. b. Sockets don't exist or appear in the file system, so nobody would ever think to try to copy one. c. If it appears in the file system (as doors do) then there is probably a way to either replicate it or re-create it, although not necessarily with common Solaris commands. |
| |||
| In article <ceahiq$k9g$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de says... > > Pipes and sockets both live in the hosting filesystem, a door doesn't. Can you elaborate? I don't think I've ever seen a socket in a directory listing. I've seen pipes and doors, though. > You definitely need to copy a pipe because you don't know whether > it has been created intermediately by the process that needs it > or if it has been manually created by the admin for some reason. > > You may copy a socket, but you cannot copy a door. Just out of curiosity, how does one copy a socket? |
| |||
| On Thu, 29 Jul 2004, dust wrote: > b. Sockets don't exist or appear in the file system, so nobody would ever > think to try to copy one. Some do, e.g., those of AF_UNIX (aka AF_LOCAL). -- Rich Teer, SCNA, SCSA President, Rite Online Inc. Voice: +1 (250) 979-1638 URL: http://www.rite-online.net |
| ||||
| In article <ceahd5$jtp$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de says... > In article <MPG.1b72048e99043ef5989925@news.alt.net>, > dust <powdery@dusty.stuff> wrote: > >How does one make a copy of a door file? (Solaris 8) > > It makes no sense. > > A door file is a file from DOORFS mounted on top of a usually > empty file. > > If you like to make a backup from a FS, you usually first create > a snapshot and mount it. This mounted snapshot does not include > the DOOR. > > If you use > star -copy .... > > the DOOR file will be "archived" as DOOR but extracted as plain file. Alright, then, allow me to be more specific... There may not be a way to copy a door file (or door represented by the empty "door" file) in the general sense, but is there a way to either copy or recreate /etc/.name_service_door? That's really what I was after. You see, I've "jailed" a user in a chroot environment, and that user needs to execute some commands that access /etc/.name_service_door. (Which means I need to somehow put a duplicate of that in the chroot environment.) |