Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
It can be dangerous to set up a tmp dir for the users in their own
home directory. If you plan on using a lot of space (or even if it's
possible), you don't want to put their tmp directory in their home
directory -- this could cause the user to be locked out of the
system if they happen to go over quota because of the temporary
files. You should, instead, make a /tmp/username/appname (or
/tmp/appname/username) directory. This is safer, /tmp is by
default writable by the world. You should also give the user a
choice as to where the tmp directory is.
I'm not sure what the getttmppath() win API is, but you can
always set an environvent variable called APP_TMP, and use
the C function calls to grab that variable when necessary, if
that's what you are talking about.
Common temp file locations in Solaris are /tmp and /var/tmp. You'll notice that /usr/tmp is really a symlink to /var/tmp. You may also want to note that on a standard Solaris install, /tmp is taken from swap space unless a separate slice is created.
http://soldc.sun.com/ntmigration/ntt...emulation.html
has got the implementation for gettemppath() win api. The implementaiton returns
/tmp and /var/tmp directories only to the user and if /tmp or /var/tmp is not available they return the current dir[getcwd()] of the process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.