29.11.10

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)



  1. Create a .sh file
[ sudo mount –t cifs –o username=test,password=test  //192.168.1.1/tutor  /mnt/test ]

  1. Set execute permission for the .sh file

  1. /etc/rc.d/rc.local --- Add the entry for the .sh file

Change the static IP address of a DOMAIN CONTROLLER

To perform this procedure, you must be a member of the Domain Admins group in the domain of the domain controller whose IP address you are changing.

To change the static IP address of a domain controller
  1. Log on locally (also known as interactively) to the system console of the domain controller whose IP address you want to change. If you are not able to log on to the domain controller by using the domain, you may have to start the domain controller in Directory Services Restore Mode (DSRM). For more information, see Restart the domain controller in Directory Services Restore Mode locally
  2. On the desktop, right-click My Network Places, and then click Properties.
  3. In the Network Connections dialog box, right-click Local Area Connection, and then click Properties.
  4. In the Local Area Connection Properties dialog box, double-click Internet Protocol (TCP/IP).
  5. In the Internet Protocol (TCP/IP) Properties dialog box, in the IP address box, type the new address.
  6. In the Subnet mask box, type the subnet mask.
  7. In the Default gateway box, type the default gateway.
  8. In the Preferred DNS server box, type the address of the DNS server that this computer contacts.
  9. In the Alternate DNS server box, type the address of the DNS server that this computer contacts if the preferred server is unavailable.
  10. If this domain controller uses WINS servers, click Advanced and then, in the Advanced TCP/IP Settings dialog box, click the WINS tab.
  11. If an address in the list is no longer appropriate, click the address, and then click Edit.
  12. In the TCP/IP WINS Server dialog box, type the new address, and then click OK.
  13. Repeat steps 11 and 12 for all addresses that need to be changed, and then click OK twice to close the TCP/IP WINS Server dialog box and the Advanced TCP/IP Settings dialog box.
  14. Click OK to close the Internet Protocol (TCP/IP) Properties dialog box.
After you change the IP address of a domain controller, you should run the ipconfig /registerdns command to register the host record and dcdiag /fix command to ensure that service records are appropriately registered with DNS.

Access Control Lists...

To Create ACL;
telnet
enable
config termainal
access-list <listname> deny <mac> <mask>

To Delete an ACL list;
telnet
enable
config termainal
no access-list <listname>

To View ACL list;
telnet
enable
show access-lists