Unable to mount windows share in ubuntu
I am trying to mount windows machine directory in my ubuntu 10.04.3 server. When I try to see the shared directory in the windows server its showing properly using the below command. The windows mahcine is joined to local domain xyz.com
My doubt is, cant we mount the shared directory which is connected to local domain server? I am getting this error in both smbfs / cifs.
smbclient -L //192.168.39.152/ -U svnbackup
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
Android Disk
C$ Disk Default share
CENTOS Disk
E$ Disk Default share
G$ Disk Default share
IPC$ IPC Remote IPC
Nagios Disk
test Disk
When I try to mount the test directory using below command Its show error saying permission denied as below.
mount.smbfs //192.168.39.152/test /mnt/smbfs -o username=username,password=Svn1234,domain=xyz.com
mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Please help me to solve the issue.
Solution 1:
try:
mount -t cifs //address/sharename /mnt/whatever \
-o `**username=DomainName/username**,password=password`
if it doesnt work, try:
mount.cifs //address/Share /mnt/share/ -o username=address/username
dont add a password, it should prompt u for one and possible it'll work, gl
Solution 2:
I've found solution on this site: Issue Mounting CIFS Share | ubuntuforums.org
Generally in Windows you should add this key in regedit. It works for me now. Key goes in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Key DWORD (32-bit): LocalAccountTokenFilterPolicy Key Value : 1