Saturday, December 23, 2006

Some Linux guddies....

uptime - Prints the system uptime.
w - Prints the current system users.
wall - Prints a message to each user except those who've disabled message reception. Type Ctrl-D to end the message.
============================================================
no root!
If /etc/securetty is world writeable then root will not be able to log in.
Permission of /etc/securetty is 600
If you change this to 606, root can not log in.
============================================================
how to make ur floppy bootable...???
fdformat /dev/fd0
mkfs /dev/fd0
mount /dev/fd0
cp ks.cfg /media/floppy

in the prompt type (without quotes) "linux ks=floppy"
============================================================
wants to automount the samba shares
Edit the /etc/auto.master file

vi /etc/auto.master

# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/misc /etc/auto.misc --timeout=60

Then save this file

Now edit the /etc/auto.misc file
vi /etc/auto.misc

# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

samba -fstype=smbfs,username=[username],passwo
rd=[password] ://server/share

# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0

Then restart the autofs service
============================================================

No comments: