Mount Windows Share on RHEL

In CLI

   mount -t cifs //ntserver/dir -o username=user,password=pass /mnt/ntserver   

In /etc/fstab

   //ntserver/dir   /mnt/ntserver   cifs   credentials=/root/.smbpasswd,file_mode=0777,dir_mode=0777   0   0

Then create a file /root/.smbpasswd  with permissions set to 600

   username=user

   password=pass

In /etc/hosts add IP address of ntserver.   

Similar Posts

  • Configure redhat remote printers

    On system connected to printer In system-config-settings under server settings check Share published printers connected to this system. On system connecting to remote printer Using makePrinter, create a printer using the same printer name as server. Also, hostname of server must be in /etc/hosts.  The UIR(port) should be ipp-1. Using system-config-printers, modify Device URI to read ipp//host-IP:631/printers/printer-name This allows for remote printing using the internet printer protocol.

  • Invalid or Missing Entitlement Certificates

    How to turn off the warning message, “Invalid or Missing Entitlement Certificates” last modified by Moritoshi Oshiro on 09/21/11 – 04:29Issue We manage entitlement/subscription in RHN Classic (not Customer Portal) The system is not connected to the Internet with RHN Classic (in disconnected mode), therefore the system is not registered in RHN Classic When the…

  • Installing Real VNC on RHEL

    Red Hat-compatible Linux The following instructions are valid for CentOS 5 running the GNOME desktop environment. Instructions may differ slightly fordifferent versions of CentOS, and versions of Fedora or Red Hat Enterprise, running different desktop environments, but theprinciple is the same. If in doubt, consult the operating system documentation. Downloading VNC Download a VNC for Linux…

  • ACPI Errors on Ubuntu bootup

    You can get rid of those ACPI Error messages by 1. Open ‘/etc/default/grub’ in an editor with root access. In your case I believe Ubuntu uses gedit as it’s text editor Code: 2. The line with ‘GRUB_CMDLINE_LINUX_DEFAULT’, add the loglevel=3 part. The original looks like GRUB_CMDLINE_LINUX_DEFAULT=’quiet splash’ Change it to this: Code: Then save the…

  • Authentication Error with VNC

    Issue User is reciving a GUI pop-up messages that says the following, and asks for the root password at login: When logging into a VNC session as user the following message is received: Environment Red Hat Enterprise Linux 6 gnome-packagekit, several versions  Resolution Solution 1: Ensure that the system is properly registered with RHN/Satellite (Re)register…