Permission denied when trying to list mounted Windows Share
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Permission denied when trying to list mounted Windows Share
I have a Windows 2003 R2 Server that I'm trying to connect to with a CentOS 4.4 server. I created the mountpoint and can successfully mount the share, but when I try to ls, I get a Permission denied error. I created a username specifically for this purpose, and gave it the appropriate rights on the ActiveDirectory side, so I know it's not truly a permissions issue. I also tried it with my user account, which has administrator privs and got the same error.
Here is the command I'm using to mount the smb share:
mount -t smbfs -o username=MyUser,password=MyPW //ip.address.of.server/share /mnt/sharepoint
I use CentOS 5.2, and when I set up my fstab to automatically mount my smb file system, I used cifs instead of smbfs. Mine works just fine, and mounts the windows share at boot. How did you create your user, and how did you join ActiveDirectory, with which commands? Also, what is the security set to in your smb.conf file? One may want to post file for review. Is this the only problem? Can you connect to the server using the connect to server option and navigate with the same problems?
I use CentOS 5.2, and when I set up my fstab to automatically mount my smb file system, I used cifs instead of smbfs.
CentOS 4.4 doesn't understand cifs, so smbfs has to be used. I learned this when I tried cifs and it didn't work (and found that RHEL-based distros v4 and prior should use smbfs in place of cifs).
Quote:
Mine works just fine, and mounts the windows share at boot. How did you create your user, and how did you join ActiveDirectory, with which commands? Also, what is the security set to in your smb.conf file? One may want to post file for review.
I'm not connecting to a Linux-based Samba share, so I don't think the smb.conf file has anything to do with it (correct me if I'm wrong). The CentOS 4.4 box is a client in this case and connecting to a genuine Microsoft Windows 2003 Server.
Quote:
Is this the only problem? Can you connect to the server using the connect to server option and navigate with the same problems?
Since this is a server, there is no GUI, so I can't use the Connect to Server option.
I'm not connecting to a Linux-based Samba share, so I don't think the smb.conf file has anything to do with it (correct me if I'm wrong). The CentOS 4.4 box is a client in this case and connecting to a genuine Microsoft Windows 2003 Server.
Any time you connect to a windows share, with Linux, you must use samba, or a program that can translate microsofts smb protocol, that is how Linux talks to Windows. Also, I do believe that for your Active Directory permissions to work you must join the domain. The proper command escapes me at this point, but I think when talking to a windows machine the smb.conf file is critical, especially if you want to access any shares, or join any domains.
Quote:
Originally Posted by linuxroks88
Since this is a server, there is no GUI, so I can't use the Connect to Server option.
I too, run a text based server, except my text based server runs Daper Drake. I prefer text based, because it helps one with administration, and is way more powerful.
Any time you connect to a windows share, with Linux, you must use samba, or a program that can translate microsofts smb protocol, that is how Linux talks to Windows.
The smb.conf file is for the Samba server, not the client. By using smbfs (or cifs in distros that support it) that is the protocol identifier that allows you to connect to an smb/cifs share. Please see this page for more info about smb.conf:
To mount an smb share on an Active Directory server, you do not *need* to join the domain. I have Macs in the office that connect to the Windows server and they are otherwise not part of the Windows Domain. The Mac OS uses a similar method that Linux GUIs use in that there is a Connect To Server command under the Go menu in the Mac Finder that allows you to enter a cifs:// (or smb://) server address and provide a username and password to mount shares.
Does anyone else have any advice?
Last edited by linuxroks88; 01-02-2009 at 03:46 PM.
I didn't mean that in a negative way toward you, dude. I'm sorry if you took it that way. I appreciate your assistance. If you have anything else to contribute, please feel free.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.