Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,211
» Latest member: Pkavita
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 524 online users.
» 0 Member(s) | 522 Guest(s)
Bing, Google

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 379
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 84,215
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 38,930
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,834
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,303
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,250
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 114,266
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 52,591
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 42,950
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 41,543

 
  Securing your /tmp directory
Posted by: vandal - 2004-05-28, 09:35 AM - Forum: Filesystem Management - No Replies


Securing your /tmp directory could save you from an un-updated PHP script, where someone attempts to write an executable program with malicous code too.

 

I AM NOT RESPONSIBLE FOR ANY PROBLEMS THIS MAY CAUSE


 

that being said, lets get to it:

 



Code:
cd /dev




 

Create 500MB file for our /tmp partition. If you need more space, make count size larger.

 



Code:
dd if=/dev/zero of=tmpMnt bs=1024 count=500000




 

Make an extended filesystem for our tmpMnt file

 



Code:
/sbin/mke2fs /dev/tmpMnt




 

Backup your /tmp dir- I had mysql.sock file that I needed to recreate the symbolic link for. Other programs may use it to store cache files or whatever.

 



Code:
cd /




 



Code:
cp -pR /tmp /tmp_backup




 

Mount the new /tmp filesystem with noexec

 



Code:
mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp




 



Code:
chmod 0777 /tmp




 

Copy everything back to new /tmp and remove backup

 



Code:
cp -pR /tmp_backup/* /tmp/




 

Now we need to add this to fstab so it mounts automatically on reboots.

 



Code:
pico -w /etc/fstab




 

You should see something like this:

 

 

Code:
/dev/hda3

Print this item

  Turning off your apache version number
Posted by: vandal - 2004-05-28, 09:25 AM - Forum: LAMP - Replies (2)


Some people may check your server by trying to find 404 not founds in which your apache version is displayed. Here is how you turn it off.

 

pico -w /etc/httpd/conf/httpd.conf (or wherever your httpd.conf is located)

 

ctrl - w and put in 'ServerSignature'

 

change

 



Code:
ServerSignature On




 

to

 



Code:
ServerSignature Off




 

service httpd restart

 

and your Apache 1.3.31 is now gone.

 

Cheers.

Print this item

  Checking your website's A record ( ip address )
Posted by: grep420 - 2004-05-28, 06:52 AM - Forum: LAMP - No Replies


# This will find your primary nameserver of record and query it for an A record

#

 

bash-prompt: ~] whois domain.com > /tmp/whois && awk '/Name/{print x};{x=$0}' /tmp/whois ; awk '/Name/{getline;print}' /tmp/whois | xargs host domain.com

Print this item

  Fedora Core 2 & Wine
Posted by: enigma - 2004-05-27, 07:50 PM - Forum: Wine - Replies (3)


I am wondering if anyone has installed wine on core 2 from source... i have done everything that is required in order to install it...Steps as following .

 

./configure

make depend && make && make install then the following wrror comes up:

 

after ./configure is complete the following message is given:

 

*** Warning: X development files not found. Wine will be built without

*** X support, which currently does not work, and would probably not be

*** what you want anyway. You will need to install devel packages of

*** Xlib/Xfree86 at the very least.

 

then once the install is complete there are no errors...

Print this item

  got gmail yet ?
Posted by: anyweb - 2004-05-27, 07:08 AM - Forum: Linux - No Replies


and it works too !

 

cheers

 

anyweb

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/post-11-1085641700.png" data-fileid="152">[img]<fileStore.core_Attachment>/post-11-1085641700.png[/img]</a>



Attached Files
.png   Screenshot_7.png (Size: 163.9 KB / Downloads: 0)
Print this item

  linux-noob.com has been updated
Posted by: anyweb - 2004-05-27, 06:48 AM - Forum: Site News - Replies (2)


hi guys

 

thanks to Ritter for pointing out to me yesterday that apache 1.3.29 has multiple new vulnerabilities,

 

i upgraded this site from 1.3.29 to 1.3.31 (compiled from source)

 

the sites downtime was about 20 seconds in total :-) thanks to the backup server

 

have a look

 

Linux Apache/1.3.31 (Unix) PHP/4.3.5 27-May-2004

Windows Server 2003 Microsoft-IIS/6.0 26-May-2004

Linux Apache/1.3.29 (Unix) PHP/4.3.5 7-Apr-2004

 

[/url][url=http://uptime.netcraft.com/up/graph?site=w...oob.com&probe=1]http://uptime.netcraft.com/up/graph?site=w...oob.com&probe=1

 

if any of you are running apache <1.3.31 then UPGRADE IT NOW or face the consequences

 

cheers

 

anyweb

Print this item

  The Internet
Posted by: Guest - 2004-05-26, 10:48 AM - Forum: How Do I? - Replies (1)


I used UNIX at university... and installed RedHat last year... but ended up going back to windows because of the same problem of not being able to connect to the internet.

 

Could someone give some general pointers to areas of the filesystem and applications that I will need to set when I install Fedora.

 

I am writing this from the UK and so I have a broadband connection with the companys (NTL) own modem. However it doesn't come with a set of LINUX drivers... funny that!

 

Thanks

 

Progeniga

Print this item

  login
Posted by: Guest - 2004-05-26, 08:50 AM - Forum: How Do I? - Replies (2)


I am newbee to redhat.

during the installing of redhat v9 it couldn't able to create MBR (Lilo) but it create on floppy to boot. after complete of instaling i could n't able to logon to redhat v9

help me to login on graphice mode

 

screen remain

red hat v9 (shrike)

kernel 2.4.20-8 on an i686

localhost login:

 

i tried 'root' but

things remain here

[root@localhostroot]#

Print this item

  mySQL
Posted by: Oroshi - 2004-05-25, 09:49 PM - Forum: LAMP - Replies (2)


I am just wondering any of you use multi-user login for phpMyAdmin. I use login via HTTP which is pop up a login dailog a lot likely .htaccess, but just for mySQL's username ans password.

 

so i got root works and venom. What i want is, Root to keep Full settings such as "Privileges" access. other user are not supposed to see "Privileges". also i am trying to make user that allow to create databas after thier username such as venom_

 

so i want to add for forum, so i use venom_forum.

 

I cannot get it to work it kept apeared "Access Denied" the wild card use backsash like venom\_ it will turn out real undersorce. so i want to add after the undersorce. it won't i've tried to do this venom\_\ it won't write in SQL 's Privileges

 

Any idea?

Print this item

  Autorun on Login
Posted by: justin1911 - 2004-05-25, 03:34 PM - Forum: How Do I? - No Replies


Everytime I login as my standard user account, Linux tries to autorun a CD from my CD-ROM drive. I can login as root and it doesn't do this. I'm guessing its saving something in my session? I'm not sure though.

 

How can I stop this?

Print this item