How do I set permissions to Samba shares?
November 16th, 2010 by upa_kid
Samba is essentially a TCP/IP file and print server for Microsoft Windows clients. In fact, it can support any SMB/CIFS-enabled client. One of Samba’s big strengths is that you can use it to blend your mix of Windows and Linux machines
together without requiring a separate Windows server. Samba includes support for Active Directory, unicode, new authentication and filename mangling systems,...Solaris: How do I setup a default static route / static router IP address?
November 15th, 2010 by upa_kid
/etc/defaultrouter is the configuration file for default router under Solaris os. The /etc/defaultrouter file can contain the IP addresses or hostnames of one or more default routers, with each entry on its own line. If you use hostnames, each hostname must also be listed in the local /etc/hosts file, because no name services are running at the time that defaultrouter is read.
The default routes listed...How do I write CD at Debian Linux command prompt
November 15th, 2010 by upa_kid
We have couple of Debian Linux boxes with CD/DVD combo drive. We have an automated solution over network to backup all data everyday. However recently we decided to make backup of logs and few modified application on a CD. Don’t ask me why but my manager asked me to do so. He said if not possible to take backup using command line fetch all files using ftp/http to windows XP and then write them...How do I Apply Debian Linux Security update?
November 15th, 2010 by upa_kid
It is very easy to update Debian Linux over Internet so that you can get updated packages in stable distribution. This short article explains you how to keep up to date your Debian server/workstation along with small tips.
Step # 1 Configure Debian to get updates
You need to configure the package resource list, which is used to locate archives of the package distribution system in use on the system....How Do I Run a Firewall Script As Soon As eth0 Interface Brings Up?
November 15th, 2010 by upa_kid
I use ADSL at home via ISP modem. As soon as my eth0 comes up I would like to have my firewall script get executed and setup the iptables firewall rules for me.
Earlier, I used to type the command /root/fs.dsl.start via the sudo command. However, while reading the man page of interfaces command I came across the post-up option which run command after bringing the interface up. Following step demonstrates...How Do I Secure Grub Boot Loader?
November 15th, 2010 by upa_kid
You can set a password for the GRUB bootloader. This prevents users from entering single user mode or changing settings at boot time.
When your system is rebooted, grub presents the boot option menu. From this menu one can easily login into a single user mode without the password which might result into compromise system security.
For example, anyone can access the data or change the settings. However...How do I synchronise my single Debian Linux desktop clock to network?
November 15th, 2010 by upa_kid
You will find lots of tutorials about how to setup NTP server. However if you just wanna synchronize single Linux desktop connected via A/DSL Internet connection use ntpdate command. It is very easy to configure and install ntp client. Following instructions are only compatible with Debian / Ubuntu Linux.
ntpdate client
ntpdate sets the local date and time by polling the Network Time Protocol (NTP)...How do I use Iptables connection tracking feature?
November 15th, 2010 by upa_kid
Connection tracking is an essential security feature of Iptables. But, what is connection tracking?
It is the ability to maintain connection information in memory. This is new feature added in 2.4.xx Linux kernel. Eariler only commercial firewall has this feature but now it is part of Linux. It can remember connection states such as established & new connections along with protocol types,...How do I build a Simple Linux Firewall for DSL/Dial-up connection?
November 15th, 2010 by upa_kid
If you’re new to Linux, here’s a simple firewall that can be setup in minutes. Especially those coming from a Windows background, often lost themselves while creating linux firewall.
This is the most common question asked by Linux newbies (noobs). How do I install a personal firewall on a standalone Desktop Linux computer. In other words “I wanna a simple firewall that allows or...HP-UX: How Do I configure routing or add route?
November 15th, 2010 by upa_kid
You can use route command to configure routing. Syntax is as follows:
route add net {network-address} netmask {subnet} {router-address}
Let us assume your router address is 192.168.1.254 and network ID is 192.168.1.0/24, then you can type route command as follows:
# route add net 192.168.1.0 netmask 255.255.255.0 192.168.1.254
OR
To add a default route:
# route add default 192.168.1.254
Verify that...How do I replace text string in many files at once?
November 15th, 2010 by upa_kid
Recently I came across nice littile nifty utility called replace. replace changes strings in place in files or on the standard input. Uses a finite state machine to match longer strings first. Can be used to swap strings. Sure sed (stream editor) can be use to replace any string in files but replace command is easy to use and quicker for simpler replacement. Syntax is as follows:
replace OLD-STRING...How do I find out what shell I’m using?
November 15th, 2010 by upa_kid
Asked by Chetan Joshi
Q. What is the best way to find out what shell I’m using. echo $SHELL is not so reliable. Please let me know any tiny command or trick.
A. Chetan, echo $SHELL should work. But here is old good UNIX trick. Use the command ps with -p {pid} option, which selects the processes whose process ID numbers appear in pid. Use following command to find out what shell you are in:
ps...