Archive for the 'How's To' Category

Basic vmware-cmd VM Management tips

Monday, August 18th, 2008

Sometimes using a command line is much more faster than using GUI. Personally I found VMware Virtual Center always have bugs. The following article will guide you how to use vmware-cmd VM management tool for some basic VMware administrative tasks.
The figure below illustrates states, transitions, and state changing commands for virtual machines.

List path and names [...]

Using Active Directory for SuSE Linux 10 Authentication

Monday, August 18th, 2008

My previous post about How to Authenticate to Active Directory on SuSE Linux 9 & How to join Fedora Core 6 Samba Server to Windows 2003 Active Directory talked about using Microsoft Active Directory(AD) for Linux authentication. Yes! Linux & Microsoft can be friends.
Now we talk about SuSE Linux 10 and Microsoft AD authentication.
Basically everything [...]

How to DENY SSH access for certain user on Linux

Monday, August 18th, 2008

Due to some security reason, you may require to block certain user SSH access to Linux box.
Edit the sshd_config file, the location will sometimes be different depend on Linux distribution, but it’s usually in /etc/ssh/.
Open the file up while logged on as root:
vi /etc/ssh/sshd_config
Insert a line:

DenyUsers username1 username2 username3 username4

Referring to #man sshd_config:

DenyUsers
[...]

How To Configure Home Directories Permission on Linux

Monday, August 18th, 2008

In order to change all home directory permission, I will run the following script:

for DIR in \
`awk -F: ‘($3 >= 500) { print $6 }’ /etc/passwd`; do
chmod g-w $DIR
chmod o-rwx $DIR
done

Basically the script as above will remove WRITE permission for group, remove READ, WRITE, EXECUTE for [...]

How To Disable ipv6 on SuSE Linux

Monday, August 18th, 2008

For some strange reason, ipv6 is switched ON by default in SuSE Linux.
To check whether you are currently running ipv6, run the following command as root:

ifconfig
eth0 Link encap:Ethernet HWaddr 00:0F:1F:89:8F:D5
inet addr:192.168.1.100 Bcast:140.171.243.255 Mask:255.255.254.0
[...]