Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Jun 28, 2017 2:32 pm


News News of Red Hat Certified Engineer/Technician RHCE/RHCT

Site map of Red Hat Certified Engineer/Technician RHCE/RHCT » Forum : Red Hat Certified Engineer/Technician RHCE/RHCT

Red Hat Certified Engineer/Technician RHCE/RHCT topics and questions

Message
 Post subject: Bind: configuring key 'ddns_key': bad base64 encoding \ bad base64 encoding
PostPosted: Thu Jan 14, 2010 8:59 am 
Code:
Feb 25 20:38:49 bigboy named[4593]: /etc/named.conf:99: configuring key 'ddns_key': bad base64 encoding
Feb 25 20:38:49 bigboy named[4593]: loading configuration: bad base64 encoding


The above two errors will occur when bind(named) runs for the first time, unless you generate a valid base64 string and add it to named.conf:
Code:
# /usr/sbin/dns-keygen
H1Pl33tksEAXbEHq9rEfsVqxS7cCm8ie2W2Aa6UYTIGEGtXuhVFRGaIkjd6B


Copy the above string and updatenamed.conf, section key ddns_keyas follows:
Code:
key ddns_key
{
        algorithm hmac-md5;
        secret "H1Pl33tksEAXbEHq9rEfsVqxS7cCm8ie2W2Aa6UYTIGEGtXuhVFRGaIkjd6B";
};


Read more : Bind: configuring key 'ddns_key': bad base64 encoding \ bad base64 encoding | Views : 2504 | Replies : 0

Top
 Post subject: Disable IPv6 in Red Hat Enterprise Linux 5
PostPosted: Sat Jan 09, 2010 12:02 pm 
By default, RHEL kernel comes with IPv6 enabled. Since many of us don't need it, it's pointless to recompile the kernel just to disable IPv6.

To disable IPv6 on RHEL 5 add the following lines in /etc/modprobe.conf:
Code:
alias net-pf-10 off
alias ipv6 off


This will require a reboot.

Read more : Disable IPv6 in Red Hat Enterprise Linux 5 | Views : 8810 | Replies : 2

Top
 Post subject: Smbpasswd - Failed to find entry for user / Failed to modify password entry for user
PostPosted: Sat Jan 09, 2010 6:05 am 
Even if you add the user via useradd command, samba will still not see it returning the following messages:

Code:
# smbpasswd httpd
New SMB password:
Retype new SMB password:
Failed to find entry for user httpd.
Failed to modify password entry for user httpd

Solution:

Code:
# smbpasswd -a httpd
New SMB password:
Retype new SMB password:
Added user httpd.

The reason for this is that samba uses different user/passwd files then the system.

Read more : Smbpasswd - Failed to find entry for user / Failed to modify password entry for user | Views : 2753 | Replies : 0

Top
 Post subject: Linux GRUB and grub.conf troubleshooting - part2
PostPosted: Mon Jan 04, 2010 11:04 am 
Coming in contact for the first time with a server that fails to boot (from grub configuration errors) can be difficult, if you don't have a copy of the grub.conf at hand.

List available disks at grub prompt
Code:
grub> find (hd        -->TAB key
  Possible disks are:   hd0 hd1


List available disk partition at grub prompt

grub> find (hd0, -->TAB key
Partition num: 0, Filesystem type is ext2fs, partition type is 0x83
... ...

Read more : Linux GRUB and grub.conf troubleshooting - part2 | Views : 1266 | Replies : 1

Top
 Post subject: Linux GRUB and grub.conf troubleshooting - part1
PostPosted: Mon Jan 04, 2010 10:37 am 
Troubleshooting GRUB requires knowing how grub works. Looking at a sample grub.conf file, we can see the commands that grub will accept at command line prompt.
node1# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# ...

Read more : Linux GRUB and grub.conf troubleshooting - part1 | Views : 774 | Replies : 0

Top
 Post subject: Vsftpd and SELinux - Making them work together for system users
PostPosted: Sun Jan 03, 2010 2:53 pm 
Vsftpd will work by default if SELinux is turned of or set to permissive mode.

For security paranoias (like me), SELinux in Enforced mode will not, by default, allow users to FTP to their home directories. This is because their security context will be:
Code:
# ls -Zda ~user
drwxr-x---  user user system_u:object_r:default_t      /home2/user

system_u - system user
object_r - system object
default_t - default label

The above selinux security context will not allow vsftpd ...

Read more : Vsftpd and SELinux - Making them work together for system users | Views : 1873 | Replies : 0

Top

Last 10 active topics


Virtualization

No new posts SSH Login to Vmware ESXi with ssh keys
View the latest post
No new posts How to retrieve Vmware ESXi license from ssh shell command line
View the latest post

Shell Scripting and Programming

No new posts How to use $variable in conditional sentences?
View the latest post
No new posts Scan IP range using nmap
View the latest post
No new posts Password generator with user inputs bash script
View the latest post

TCP/IP Networking

No new posts TCP ack after two packets
View the latest post

Junos Tips & Tricks

No new posts MTR / My traceroute in Junos
View the latest post

VPS Hosting & Security

No new posts Host a gmod server on a vps or shared host?
View the latest post

Juniper virtual MX (vMX)

No new posts Juniper Virtual MX (vMX) 14.2R5.3 Phase 2 (RE and MPC on different VMs)
View the latest post

OpenLDAP - Lightweight Directory Access Protocol

No new posts cannot login in linux system with ldap user after changing the ldap user password
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 600 | Total topics 969 | Total members 1193



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 - 5 hours [ DST ]



phpBB SEO