Please re-read my post again...Bad idea.
You should have /tmp mounted with custom options in fstab that you don't want on /home.
actually, this is exactly my question.@Dougy:
Such as? And why?
@MtK:
What user Dougy is writing is that if you point /home/tmp to /tmp you'll be using /tmp's mount options for /home/tmp. Dougy believes this is unwise. I've asked him to explain.
Jeff
@Dougy:
Such as? And why?
@MtK:
What user Dougy is writing is that if you point /home/tmp to /tmp you'll be using /tmp's mount options for /home/tmp. Dougy believes this is unwise. I've asked him to explain.
Jeff
and why should I want to allow user's to upload through DA's file manager something that could run from /home/tmp ?!/tmp should at least be mounted with nosuid,noexec.
And why can't /home/tmp be redirected to a /tmp partition with the same restrictions?/tmp should at least be mounted with nosuid,noexec.
Why? I read evey post made to DirectAdmin forums. Why should I pay special attention to this one now? If you're pointing out a response to my question, then please be so kind as to let me know in which post.PS: Jeff, take a look over at my ssl thread
You've lost me. I don't see how a user can upload into /home/tmp.and why should I want to allow user's to upload through DA's file manager something that could run from /home/tmp ?!
when a user uploads something through DA's file manager, it uses /home/tmp (or whatever tmp directory set in configuration) to upload the file until moved to its final destination.You've lost me. I don't see how a user can upload into /home/tmp.
Jeff
I don't want anything being "accidentally" left in /home/tmp and if it happens at least have it secured to prevent it from executing (like my real /tmp partition).
OK, but do you agree that /tmp is probably more secure than /home/tmp ?If it is a interpreted script it can still be executed even in a secured /tmp. Its done by simply putting the interpreter name in front of it. A perl script can be run in secured /tmp as "perl /tmp/script.pl" There is nothing you can do to prevent that.
OK, but do you agree that /tmp is probably more secure than /home/tmp ?
[root@server /]# pecl install zip
downloading zip-1.8.10.tgz ...
Starting to download zip-1.8.10.tgz (66,972 bytes)
.................done: 66,972 bytes
58 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
/usr/local/bin/phpize: /tmp/pear/cache/zip-1.8.10/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.
ERROR: `phpize' failed
well,Found the problem I had because of securing /tmp.
Code:[root@server /]# pecl install zip downloading zip-1.8.10.tgz ... Starting to download zip-1.8.10.tgz (66,972 bytes) .................done: 66,972 bytes 58 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 /usr/local/bin/phpize: /tmp/pear/cache/zip-1.8.10/build/shtool: /bin/sh: bad interpreter: Permission denied Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. ERROR: `phpize' failed
http://www.directadmin.com/forum/showthread.php?t=29608&page=2
you don't want the average hacker to be able to un/install stuff too, right?
yes, and I'm saying why worry about 2 places, when one (/tmp) is clearly enough...The average hacker cannot install anything anyway regardless of the state of /tmp.
I have nothing against somebody else securing /tmp. Yes it will make it slightly more secure. I am just saying don't be fooled into thinking that you don't have to worry about /tmp anymore.
The average hacker runs stuff in /tmp as "perl /tmp/script.pl" because they already know that most people have /tmp secured so they do not even try with "/tmp/script.pl"
When the above happens you are going to asking "How could this happen? I had /tmp secured."
yes, and I'm saying why worry about 2 places, when one (/tmp) is clearly enough...
appreciate the infoI believe you to be correct. But I again I do not know all the things DA might try to do in /home/tmp so if you have any problems with DA that you have never had before this should be the first place to look.
Sometimes I digress and give more information than was asked.