I have a problem with my Windows Domain share. I can't connect to it.
Here is my fstab file:
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=cd24500e-3f48-44fa-b7f1-ca188f0e116f / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=234D-8B07 /boot/efi vfat defaults 0 1
# swap was on /dev/sda3 during installation
UUID=e0108d16-999f-42f0-baf7-bcf4f26de592 none swap sw 0 0
//DOMAIN-PC/MediaContents /home/likewise-open/Test/Media cifs sec=ntlmv2,credentials=/root/.kencred,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Here is my .kencred file:
Code:
username=MAINDC\Ken
password=*******
If I use sec=ntlm and run mount -a then I get this error:
Code:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
If I use sec=ntlmlv2 and run mount -a then I get this error:
Code:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
But I can manually mount an Windows Domain share with this command line.
Code:
mount -t cifs //DOMAIN-PC/MediaContents /home/likewise-open/TEST/Media -o username=Ken,domain=MAINDC,iocharset=utf8,file_mode=0777,dir_mode=0777
Can somenone help how to mount a windows domain share automatically?