Results 1 to 12 of 12
-
07-22-2009, 03:28 PM #1Newbie
- Join Date
- Jul 2009
- Posts
- 7
how to secure /tmp folder-Permissions?
How to secure /tmp folder on cpanel server with Centos?
what is permissions?
-
07-22-2009, 04:35 PM #2Web Hosting Master
- Join Date
- Apr 2009
- Posts
- 865
/scripts/securetmp should do the trick
-
07-22-2009, 04:54 PM #3Web Hosting Master
- Join Date
- Apr 2005
- Posts
- 1,767
You may also want to ensure that this line is in your /etc/rc.local file:
/scripts/securetmp --auto
-
07-22-2009, 04:57 PM #4Junior Guru
- Join Date
- Mar 2009
- Location
- Chicago, IL
- Posts
- 219
Also don't forget /dev/shm.
Just modify the line in your fstab that has the /dev/shm portion and replace 'defaults' with 'noexec,nosuid' then do a umount /dev/shm && mount /dev/shm
-
07-22-2009, 05:51 PM #5Web Hosting Industry Expert
- Join Date
- Dec 2007
- Location
- Indiana, USA
- Posts
- 19,196
█ Michael Denney - MDDHosting.com - Proudly hosting more than 37,700 websites since 2007.
█ Ultra-Fast Cloud Shared and Pay-By-Use Reseller Hosting Powered by LiteSpeed!
█ cPanel • Free SSL • 100% Uptime SLA • 24/7 Support
█ Class-leading support that responds in minutes, not days.
-
07-23-2009, 03:17 AM #6Web Hosting Master
- Join Date
- Jun 2003
- Location
- World Wide Web
- Posts
- 581
/scripts/securetmp , will secure the /tmp partition for c-panel servers.
Permission of /tmp will be as follows after executing the above script
1) /tmp partition will be remounted as " noexec,nosuid "
2 ) It will change /tmp to sticky bit directory ( chmod 1777 /tmp )
SupportExpertz.com - the name says it all!
Managed Cloud Servers
Server Management and Monitoring
24x7 outsourced customer support
-
07-23-2009, 03:23 AM #7Junior Guru
- Join Date
- May 2009
- Location
- Utopia.
- Posts
- 222
That will work on dedicated servers, but it won't on VPS - I'm pretty sure about that, but please correct me if I'm wrong.
-
07-23-2009, 03:47 AM #8Disabled
- Join Date
- May 2009
- Location
- US
- Posts
- 2,503
/scripts/securetmp - run that command via SSH to secure your /tmp folder.
-
07-23-2009, 04:36 AM #9Web Hosting Master
- Join Date
- Jun 2003
- Location
- World Wide Web
- Posts
- 581
Hi shad0wz,
In a vps you need to secure /tmp manualy
You can do it by adding following entry in “/etc/fstab”
====
none /tmp tmpfs nodev,nosuid,noexec 0 0
====
save the file and reboot the VPS, now vps get mounted with “nosuid” and “noexec”
Also you can setup stickybit to /tmpSupportExpertz.com - the name says it all!
Managed Cloud Servers
Server Management and Monitoring
24x7 outsourced customer support
-
07-23-2009, 04:45 AM #10Junior Guru
- Join Date
- May 2009
- Location
- Utopia.
- Posts
- 222
Yeah, that's what I said - that script only works on dedicated servers Thanks for the tutorial though.
-
07-23-2009, 09:01 AM #11Web Hosting Master
- Join Date
- Jun 2003
- Location
- World Wide Web
- Posts
- 581
Hi shad0wz,
Np. Thank you for the update.SupportExpertz.com - the name says it all!
Managed Cloud Servers
Server Management and Monitoring
24x7 outsourced customer support
-
07-26-2009, 02:25 PM #12Newbie
- Join Date
- Jul 2009
- Posts
- 7
Hello,
Thanks to all for help, Is there any way other than /scripts/securetmp, if I am not using cpanel server. I am newbie, so,curious. what will be commands and tricks other than /scripts/securetmp to secure tmp folder on dedicated server.
Thanks guys, /scripts/securetmp is worked for me
Similar Threads
-
IIS permissions/ folder permissions management
By under_gravity in forum Hosting Software and Control PanelsReplies: 9Last Post: 11-30-2007, 05:20 AM -
/tmp folder 777 ... use as sessions folder... secure?
By marikas in forum Hosting Security and TechnologyReplies: 3Last Post: 08-14-2007, 05:27 AM -
folder permissions on a downloads folder
By VideoJunky in forum Hosting Security and TechnologyReplies: 3Last Post: 04-05-2005, 05:10 PM -
Folder Permissions
By Daemon1 in forum Hosting Security and TechnologyReplies: 12Last Post: 08-08-2004, 02:40 AM -
Folder permissions
By diesel1 in forum Dedicated ServerReplies: 1Last Post: 10-30-2002, 12:00 AM