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

  • Installing Nvidia driver in Ubuntu 22.04

    sudo apt update sudo apt-get remove ‘^nvidia’ sudo apt autoremove sudo apt install nvidia-driver-450 sudo reboot After you have installed the nvidia-driver-450 graphics driver in Ubuntu 20.04 it may be updated from nvidia-driver-450 to nvidia-driver-460 by the normal software update activity. As an alternative to step 4 you can let the ubuntu-drivers program automatically select the proprietary…

  • 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…

  • 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…

  • RHEL 6 NFS

    Ensuring NFS Services are running on RHEL 6 The first task is to verify that the NFS services are installed and running on your RHEL 6 system. This can be achieved either from the command line, or using the graphical services tool. Begin by confirming that the NFS service is installed by running the following command from a…