Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Sat Feb 04, 2012 9:48 pm


News News of Linux Distributions

Site map of Linux Distributions » Forum : Linux Distributions

Guides and tutorials for Red Hat Linux, Debian, Suse and others.

Message
 Post subject: CentOS Apache 2.2.3 Directory index forbidden by Options directive
PostPosted: Thu Jul 29, 2010 6:34 pm 
After installing Apache 2.2.3 on Centos 5.5, adding virtual domains with Directory indexes will not be possible and the apache welcome page will be displayed if there isn't an index file in the root directory of the vhost.

Quote:
Directory index forbidden by Options directive


This behavior can be fixed by editing /etc/httpd/conf.d/welcome.conf and change it from:
Code:
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>


to
Code:
<LocationMatch "^/+$">
    Options Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>
...

Read more : CentOS Apache 2.2.3 Directory index forbidden by Options directive | Views : 3276 | Replies : 0

Top
 Post subject: Configure bind (named server) to listen on localhost on Debian
PostPosted: Wed Jun 02, 2010 12:16 am 
By default on a Debian distro, named daemon listens on all available interfaces. In order to change it to listen on a specific IP address or localhost, edit the named.conf.options

# vim /etc/bind/named.conf.options
options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// forwarders {
// 0.0.0.0;
// ...

Read more : Configure bind (named server) to listen on localhost on Debian | Views : 1177 | Replies : 0

Top
 Post subject: Linux umount -f: umount2: Device or resource busy
PostPosted: Fri Apr 09, 2010 2:52 pm 
Code:
# umount -fv /test
umount2: Device or resource busy
umount: /data: device is busy


Code:
# fuser -mvu /test
#


Make sure that the filesystem is not exported via NFS (locked by lockd). Stop NFS/portmap services and retry unmounting.

Read more : Linux umount -f: umount2: Device or resource busy | Views : 1977 | Replies : 0

Top
 Post subject: Linux change the password with output from echo command (standard input)
PostPosted: Fri Jan 15, 2010 12:58 am 
In Linux it is possible to change a user's password with the ouput of an echo command, coming from standard input, via pipe.

NAME
passwd - update a user’s authentication tokens(s)

SYNOPSIS
passwd [-k] [-l] [-u [-f]] [-d] [-n mindays] [-x maxdays] [-w warndays] [-i inactivedays] [-S] [--stdin] [user-
name]

DESCRIPTION
Passwd is used to update a user’s authentication token(s).

Passwd is configured to work through the Linux-PAM API. Essentially, it initializes itself as ...

Read more : Linux change the password with output from echo command (standard input) | Views : 1467 | Replies : 0

Top
 Post subject: Linux reloading inittab without reboot
PostPosted: Thu Nov 26, 2009 11:49 am 
Linux refresh init process after modifying inittab without reboot

man init
Quote:
After it has spawned all of the processes specified, init waits for one of its descendant processes to die, a powerfail signal, or until it is signaled
by telinit to change the system's runlevel. When one of the above three conditions occurs, it re-examines the /etc/inittab file. New entries can be
added to this file at any time. However, init still waits for ...

Read more : Linux reloading inittab without reboot | Views : 1656 | Replies : 0

Top
 Post subject: Linux Shell: "Cannot overwrite existing file" when the file is owned by you
PostPosted: Mon Aug 24, 2009 5:26 pm 
If the shell noclobber environment variable is set, you will not be able to overwrite a file's content by redirecting some output to it.
Code:
# echo "2nd Overwritten content">tmp.file
bash: tmp.file: cannot overwrite existing file

First option would be to disable the noclobber variable:
Code:
# set +o noclobber; set -o | grep nocl
noclobber       off


The second option is to use the pipe (|)right after the redirection sign:
# echo "2nd Overwritten content" ...

Read more : Linux Shell: "Cannot overwrite existing file" when the file is owned by you | Views : 1789 | Replies : 0

Top
 Post subject: Linux Shell: Protecting against accidental output redirection and file overwrite
PostPosted: Mon Aug 24, 2009 5:14 pm 
Redirecting standard output/error in a Linux/BSD shell can very easy overwrite a file, removing it's content, making it impossible to recover (unless there's a backup).

To prevent this sh, bash and ksh shells implement an evironment variable called noclobber.

# cat tmp.file
If you use a lot of file redirection in your scripts it's quite easy to overwrite existing files accidentaly.
To prevent this, most shells implement the noclobber environment variable.

# echo "Overwritten content">tmp.file ...

Read more : Linux Shell: Protecting against accidental output redirection and file overwrite | Views : 2091 | Replies : 0

Top
 Post subject: Debian: Quick dpkg query commands
PostPosted: Thu Aug 06, 2009 2:16 pm 
Here are a few tricks for querying Debian's dpkg command.

Upgrade or install a package:
Code:
# dpkg -i package-name.deb


Listing installed packages in Debian. You can use directly package name after '-l' if you know it's name.:

# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-============================================-============================-============================================
ii acl 2.2.47-3 Access control list utilities
ii acpi 1.4-2 displays information on ACPI devices
ii acpi-support-base 0.123-1 scripts for handling base ...

Read more : Debian: Quick dpkg query commands | Views : 962 | Replies : 0

Top
 Post subject: Installing /w PXE booting RHEL 5 over the network
PostPosted: Wed Aug 05, 2009 2:00 pm 
Installing and PXE booting RHEL 5 over the network

In the past weeks I needed to install Red Hat Enterprise 5 on two remote HP DL385 blades (if I remember correctly) and I had no one in the datacenter to insert the DVD in the drives. So the situation needed a network installation using PXE booting (Pre-boog eXecution Environment).

Since this was my first encounter with PXE booting and network installations on Linux Google ...

Read more : Installing /w PXE booting RHEL 5 over the network | Views : 3956 | Replies : 0

Top

Last 10 active topics


Apache, Nginx, Lighttpd and other web server software

No new posts Nginx + php-fpm setting php upload_max_filesize and other php values per vhost
View the latest post

Mysql

No new posts Mysql> how to store select Zulu / UTC timestamp in database
View the latest post

TCP/IP Networking

No new posts Quagga ospf neighbour stuck in ExStart/DROther state
View the latest post

FTP, Scp, Sftp, Rsync

No new posts How to disable anonymous access in samba 3
View the latest post

Package and Software Management

No new posts "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"
View the latest post

Server and Network Security

No new posts CentOS Install Nemesis packet crafting tool + Libnet
View the latest post

Tutorials for general Unix

No new posts Using curl to get the HTTP response from an HTTP server
View the latest post
No new posts Linux - Unable to login (and authentication succeeds) - File size limit exceeded
View the latest post
No new posts Linux/FreeBSD how to check ntp time synchronization
View the latest post

Memory, Storage, Backup and Filesystems

No new posts Mdadm - Linux software RAID
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 188 | Total topics 681 | Total members 811



News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO