You are not logged in.

#1 2009-01-10 00:20:24

north
Member
Registered: 2009-01-09
Posts: 2

[SOLVED] Mounting a samba share - mount error 13 = Permission denied

I'm probably missing something little here. I'm trying to mount a share hosted by a samba server (a ReadyNAS), and I keep getting "mount error 13 = Permission denied". The ReadyNas is set up with "share" as the security mode. It happens both in fstab and using the mount command.

Here's what I'm doing:

sudo mount -t cifs //server/share /mnt/folder -o guest,uid=myuser,gid=users

What is interesting is that I can connect using smbclient:

smbclient //server/share

It uses my username, and asks for a password. I just enter an empty password and it connects. It says "Server not using user level security and no password supplied." after it connects.

So, I tried using the following mounts:

sudo mount -t cifs //server/share /mnt/folder -o user=myuser,pass=,uid=myuser,gid=users
sudo mount -t cifs //server/share /mnt/folder -o user=guest,pass=,uid=myuser,gid=users

and I still get the same error 13.


I'm starting from a newly installed arch system, fully updated, and installed the smbclient package. Any other ideas?

Last edited by north (2009-01-12 20:24:04)

Offline

#2 2009-01-10 10:08:33

gishten
Member
Registered: 2009-01-09
Posts: 39

Re: [SOLVED] Mounting a samba share - mount error 13 = Permission denied

According to http://threebit.net/mail-archive/centos/msg00017.html  you might want to add the domain or workgroup of your server.

And http://groups.google.se/group/linux.deb … cc2c364232 makes a good point about whitespaces.

Maybe that will help? smile


Believe in the Ideal, not the Idol.

Offline

#3 2009-01-12 03:55:11

north
Member
Registered: 2009-01-09
Posts: 2

Re: [SOLVED] Mounting a samba share - mount error 13 = Permission denied

Thanks for the suggestion smile It still didn't connect, but I think it had to do with the ReadyNas I was connecting to--I had to set the username equal to the sharename.

Cheers smile

Offline

Board footer

Powered by FluxBB