Oct 08

The reason i make this article is because i want to connect windows sharing folder and i need to copy my backup to windows SAN storage, you need samba to connect

logo-samba

What is SAMBA ?

Samba is the standard Windows interoperability suite of programs for Linux and Unix.

Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy.

Since 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others.

Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments using the winbind daemon.

Okay let’s start the connection .

First, you need to install samba first

on Ubuntu

# apt-get install samba smbfs

on CentOS

# yum install samba samba-client

Then to make it easier, edit your /etc/hosts file and give the Windows machine a name:

#vim /etc/hosts

10.21.21.105  storage.test.com       storage

Create a directory where the share will appear on your local filesystem.

# mkdir /mnt/storage

Edit /etc/fstab and add a line for the mount. Here “storage” is the name of the machine and “backuplinux$” is the name of the share.

# vim /etc/fstab

//storage\backuplinux$ /mnt/storage cifs exec,credentials=/etc/cifspw 0 0

Create a password file /etc/cifspw with the login credentials for your Windows account.

# vim /etc/cifspw

username=storage/backuplinux

password=passwrod

And secure the file:

# chmod 600 /etc/cifspw

Then the last thing

mount -a

or

mount /mnt/storage

Now you copy the backup to /mnt/storage

Oct 06

Url referer : – http://ubuntuforums.org/showthread.php?t=513820

One of my friend are having hard time to remember hist ubuntu intrepid ibex 8.10 password, and he asked me is it possible to set the passwordless ? , after some googling around i found this forum http://ubuntuforums.org/showthread.php?t=513820

you can simply changes your encrypted password of your user on /etc/shadow and set it to U6aMy0wojraho

Example :

# vim /etc/shadow

look for  your username, in my case it will be test

test:$1$gEF/FyxR$V40saBgHX4EsFX4JtrP5i0:14460:0:99999:7:::
You just need to changes the bold text into  U6aMy0wojraho
test:U6aMy0wojraho:14460:0:99999:7:::
then save and quit
:wq!
Then reboot it
# reboot
then go to your sheel or GUI to test it :)
I have test it on ubuntu 8.04 and 8.10