Results 1 to 7 of 7
-
29th May 2011, 02:03 AM #1OPMemberWebsite's:
ihide.info experthide.com hideonthe.net[TUT] Securing /tmp and /dev/shm partion
Hello,
So here I am again for another tut. This time we are securing /tmp and /dev/shm.
Lets get started.
Part 1 : Securing /tmp
Step 1 : Make a 1GB(Or more) file for /tmp and an ext3 filesystem for tmp
Code:dd if=/dev/zero of=/dev/tmpFS bs=1024 count=1000000 /sbin/mkfs.ext3 /dev/tmpFS
Code:cp -Rpf /tmp /tmpbackup
Code:mount -o loop,noexec,nosuid,rw /dev/tmpFS /tmp chmod 1777 /tmp
Code:cp -Rpf /tmpbackup/* /tmp/
Code:/dev/tmpMnt /tmp ext3 loop,nosuid,noexec,rw 0 0
Code:mount -o remount /tmp
Step 1 : Rename it and create a symbolic link to /tmp
Code:mv /var/tmp /var/tmp1 ln -s /tmp /var/tmp
Code:cp /var/tmpold/* /tmp/
Part 3 : Securing /dev/shm
Step 1 : Edit your /etc/fstab
Code:nano /etc/fstab
"none /dev/shm tmpfs defaults,rw 0 0" to
"none /dev/shm tmpfs defaults,nosuid,noexec,rw 0 0"
Step 2 : Remount /dev/shm
Code:mount -o remount /dev/shm
And their you go All done!
*Note* if you have cpanel installed just run /scripts/securetmp in ssh.:Raymond:. Reviewed by .:Raymond:. on . [TUT] Securing /tmp and /dev/shm partion Hello, So here I am again for another tut. This time we are securing /tmp and /dev/shm. Lets get started. Part 1 : Securing /tmp Step 1 : Make a 1GB(Or more) file for /tmp and an ext3 filesystem for tmp dd if=/dev/zero of=/dev/tmpFS bs=1024 count=1000000 Rating: 5
-
29th May 2011, 02:06 AM #2MemberWebsite's:
EastsideHosting.com MediaONAIR.com ImgWiz.com cPadmin.net EastsidePCWorks.com HostedTalk.comand if you're in cPanel;
/scripts/securetmpEastsideHosting - (Web Hosting, Proxy Hosting, Reseller Program)
MediaONAIR - (SHOUTcast Servers, ICEcast Servers, Reseller Program)
Server Administrator - (Dedicated Servers, VPS Management, One Time Services)
ImgWiz - (Free Image Hosting)
-
29th May 2011, 02:07 AM #3OPMemberWebsite's:
ihide.info experthide.com hideonthe.net@Cory
again cory this is a general tut. Not everyone has cpanel installed. But thanks for posting that lemme add it
-
29th May 2011, 02:20 AM #4MemberWebsite's:
EastsideHosting.com MediaONAIR.com ImgWiz.com cPadmin.net EastsidePCWorks.com HostedTalk.comCan't you tell I'm a cPanel user?
but only reason why I mentioned it is because I simply said I used the similar steps you posted above above; to expand my /tmp on a cPanel server instead of using /scripts/securetmp
Just incase if anyone is looking to know how to do that on a 'cPanel Server'.
Questions could be asked: "Can I do this on a cPanel Server?" -Simply, yes...trying to simply avoid a lot of posts.EastsideHosting - (Web Hosting, Proxy Hosting, Reseller Program)
MediaONAIR - (SHOUTcast Servers, ICEcast Servers, Reseller Program)
Server Administrator - (Dedicated Servers, VPS Management, One Time Services)
ImgWiz - (Free Image Hosting)
-
29th May 2011, 02:22 AM #5MemberWebsite's:
WRZhost.com WExplain.comKeep up the good work and keep on ignoring nooby comments
Any questions? Want to make money?My Online Marketing Forum
WRZhost offshore hosting! Still the best offshore hosting after 7 years! Hongkong,Russia,NL,Germany
-
29th May 2011, 02:59 AM #6OPMemberWebsite's:
ihide.info experthide.com hideonthe.net@cory
Lol i wasnt thinking straight. Thanks
@tippie
-
9th Jun 2011, 08:47 AM #7Member
I am getting this at step 3:-
mount: no permission to look at /dev/loop#
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Securing php-fpm with nginx
By masterb56 in forum Technical and Security TutorialsReplies: 4Last Post: 29th Aug 2011, 08:46 AM -
[TUT] Securing SSH a bit ;)
By .:Raymond:. in forum Technical and Security TutorialsReplies: 13Last Post: 9th Jun 2011, 08:29 AM -
[Selling] VPS Securing Services
By iL < in forum Completed TransactionsReplies: 2Last Post: 31st Mar 2010, 05:13 AM -
Need help securing VPS!!
By lukip006 in forum Server ManagementReplies: 5Last Post: 31st Aug 2009, 04:14 PM -
securing vb forum
By lenney in forum vBulletinReplies: 16Last Post: 19th Jul 2009, 08:43 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...