LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2009, 11:39 AM   #1
linuxroks88
LQ Newbie
 
Registered: Dec 2008
Distribution: Fedora 10, Ubuntu 8.10, CentOS 4.4
Posts: 20

Rep: Reputation: 0
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
 
Old 01-02-2009, 01:38 PM   #2
clayb226
Member
 
Registered: Sep 2007
Location: Missouri
Distribution: CentOS, and many others
Posts: 34

Rep: Reputation: 16
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?
 
Old 01-02-2009, 01:57 PM   #3
linuxroks88
LQ Newbie
 
Registered: Dec 2008
Distribution: Fedora 10, Ubuntu 8.10, CentOS 4.4
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by clayb226 View Post
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.
 
Old 01-02-2009, 03:10 PM   #4
clayb226
Member
 
Registered: Sep 2007
Location: Missouri
Distribution: CentOS, and many others
Posts: 34

Rep: Reputation: 16
Quote:
Originally Posted by linuxroks88 View Post
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 View Post
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.
 
Old 01-02-2009, 03:45 PM   #5
linuxroks88
LQ Newbie
 
Registered: Dec 2008
Distribution: Fedora 10, Ubuntu 8.10, CentOS 4.4
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by clayb226 View Post
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:

http://tldp.org/LDP/solrhe/Securing-...p29sec284.html

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.
 
Old 01-02-2009, 04:20 PM   #6
clayb226
Member
 
Registered: Sep 2007
Location: Missouri
Distribution: CentOS, and many others
Posts: 34

Rep: Reputation: 16
Quote:
Originally Posted by linuxroks88 View Post
Does anyone else have any advice?
OK, guess I'm officially off the case, Good Luck.
 
Old 01-11-2009, 12:54 AM   #7
linuxroks88
LQ Newbie
 
Registered: Dec 2008
Distribution: Fedora 10, Ubuntu 8.10, CentOS 4.4
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by clayb226 View Post
OK, guess I'm officially off the case, Good Luck.
clayb226,

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
"Permission denied" when trying to copy files into mounted windows with all rights twist3r Linux - Newbie 14 05-06-2008 05:30 PM
no writing permission to mounted cifs share on windows XP ntfs folder zpcanada Linux - General 1 08-30-2006 11:30 PM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Permission denied to drive when mounted at boot wr3ck3d Linux - General 2 12-30-2003 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration