Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Fellow guys,

I encountered the error when I's mounting my Ubuntu server to a remote Windows share folder, the following is the error on terminal after I typed command line 'mount -a':

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The version of our Ubuntu server is Ubuntu 12.04.2 LTS, and the following is my /etc/fstab config:

//192.168.1.100/Development_Server /mnt/Development_Server cifs credentials=/home/developer/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

And .smbcredentials is of:

username=Developer
password=password

Actually I was following offical document from https://wiki.ubuntu.com/MountWindowsSharesPermanently to do this. I don't know how to fix it. What permission do I lack of?

share|improve this question
    
Not being an Ubuntu user, and not having to deal with CIFS that often, I may be missing something obvious, but what user are you running mount as, and what are the permissions of /home/developer/ and of /home/developer/.smbcredentials? –  njsg Jul 12 '13 at 5:48
    
Tks. I typed any command line by root user. –  Brady Zhu Jul 12 '13 at 5:50
    
what do you get if you try this: mount -t cifs //<MachineName>/<SharedFolder> /mnt/Shared -o username=<DomainName>/<username>,password=<password> –  Raza Jul 12 '13 at 7:08
    
@Salton, thanks so much. Actually I solved this problem by using a new Windows account. –  Brady Zhu Jul 12 '13 at 7:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.