FAQ #14: ImageCTN always stores incoming images in /tmp [Unix]

Frequently Asked Questions regarding DCMTK

Moderator: FAQ Team

Post Reply
Marco Eichelberg
Posts: 1280
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany

FAQ #14: ImageCTN always stores incoming images in /tmp [Unix]

#1 Post by Marco Eichelberg » Thu, 2004-11-04, 18:41

:?: When I run the "imagectn" application on my UNIX system, it seems to put image files in /tmp instead of the directory specified as the storage area in my "configrc" file, although the "index.dat" file does get put there. Is there anything I might be doing wrong?

:!: Imagectn uses the tempnam(3S) system call to create the filename for an image file to be stored in the database. tempnam() will use /tmp as target directory if
  • the target directory (from configrc) does not exist
  • imagectn has no write access rights to the target directory
  • you have an environment variable TMPDIR pointing to /tmp
  • you are running imagectn as root
We generally recommend not to run imagectn as root. If you want imagectn to listen on port 104, change the owner of the imagectn binary to "root" and the access rights to 4755 (s-bit mode). This will allow imagectn to open the socket with super-user rights and then switch to the "safe" user ID of the calling user.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest