Mount Windows partitions in to Linux Rumi, May 6, 2011 Procedure to mount remote windows partition (NAS share) 1) Make sure you have following information: ==> Windows username and password to access share name ==> Sharename (such as //server/share) or IP address ==> root level access on Linux 2) Login to Linux as a root user (or use su command) 3) Create the required mount point: # mkdir -p /mnt/ntserver 4) Use the mount command as follows: # mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver Use following command if you are using Old version such as RHEL <=4 or Debian <= 3: # mount -t smbfs -o username=vivek,password=D1W4x9sw //ntserver/download /mnt/ntserver 5) Access Windows 2003/2000/NT share using cd and ls command: # cd /mnt/ntserver; ls -l Where, -t smbfs : File system type to be mount (outdated, use cifs) -t cifs : File system type to be mount -o : are options passed to mount command, in this example I had passed two options. First argument is password (vivek) and second argument is password to connect remote windows box //ntserver/download : Windows 2000/NT share name /mnt/ntserver Linux mount point (to access share after mounting) Creating Auto Mount after Reboot System: /etc/fstab file contains static information about the filesystems. The file fstab contains descriptive information about the various file systems. fstab is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file. To mount a Samba share to be mounted when a Linux system comes up after reboot edit the /etc/fstab file and put entry as follows for your Windows/Samba share: //ntserver/share /mnt/samba smbfs username=username,password=password 0 0 For example, if you want to mount a share called //ntserver/docs then you need to write following entry in /etc/fstab file://ntserver/download /mnt/ntserver cifs username=vivek,password=D1W4x9sw 0 0Where, //ntserver/docs: Windows 2003/NT/Samba share name /mnt/samba: Local mount point (you may need to create this directory first) smbfs: File system type (samba file system) username=docsadm,password=D1Y4x9sw: Share username and password Open file /etc/fstab using vi text editor:# vi /etc/fstabAppend line //ntserver/docs /mnt/samba smbfs username=docsadm,password=D1Y4x9sw 0 0, at the end your file should read as follows: proc /proc proc defaults 0 0 /dev/hdb1 / ext3 defaults,errors=remount-ro 0 1 /dev/hdb2 none swap sw 0 0 /dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0 //ntserver/download /mnt/ntserver cifs username=docsadm,password=D1Y4x9sw 0 0 Replace sharename, username and password with your actual parameters. Related Administrations Configurations (Linux)
Ozeki NG MySQL Connectivity Parameters July 5, 2012July 5, 2012 Databse connection =========================== Driver={mySQL ODBC 5.1 Driver};Server=192.168.0.100;Port=3306;Option=4;Database=mydb;Uid=userdb;Pwd=putmypwd; Sending-Polling ============ SELECT id,sender,receiver,msg,msgtype,operator FROM ozekimessageout WHERE status=’send’ Sending-sending ============= UPDATE ozekimessageout SET status=’sending’ WHERE id=’$id’ Sending-Sent ============== UPDATE ozekimessageout SET status=’sent’, senttime=’$senttime’ WHERE id=’$id’ Sending-Not sent =========== UPDATE ozekimessageout SET status=’notsent’ WHERE id=’$id’ SQL for receiving ============== INSERT INTO ozekimessagein (sender, receiver,… Read More
Auto installation of Zenoss on CentOS 6 June 19, 2016 The simplest way to install Zenoss Core 4.2 on a newly-deployed RHEL/CentOS 64-bit 5/6 system is to use our auto-deploy script, which downloads all required files for you. To use the script, first set up a new server running one of our supported operating systems. Then, as root, run the… Read More
NMAP Security Scanner on Linux August 21, 2015February 11, 2017 First of all, you should get the “nmap” package installed in your system. On CentOS yum install nmap On Debian apt-get install nmap On Ubuntu sudo apt-get install nmap NMAP Commands: sudo nmap -sS [IP address] or [website address] sudo nmap -O –osscan-guess [IP address] or [website address] sudo nmap… Read More