LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-01-2005, 09:49 PM   #1
Kalidor
LQ Newbie
 
Registered: Mar 2004
Location: Cortland, NY
Distribution: Mandrake
Posts: 9

Rep: Reputation: 0
smbmount - permission denied


Hello folks,

This problem has been posted before, but so far no one who did was able to get an answer. Anyway, here goes... maybe I'm lucky and someone has an idea what the problem is by now.

I have two servers, both with Windows 2003 and a lonely Linux box which tries to mount shares from these servers via Samba.

Now, winbind authentication and everything is working perfectly fine, BUT as soon as I use a Samba version higher than 3.0.2a or 3.0.3 I have problems with mounted shares. Interestingly mounting them works fine without any errors in logs, but as soon as I try to list the directory content of one of these I get "ls - permission denied".

Of course I made sure that the permissions are right for the mount point, I have been playing around off and on for several months with parameters in fstab - to no avail. Everytime a new Samba version is released I try and end up having to go back to 3.0.2a to be able to mount these shares.

Oh and, mounting them via CIFS works fine, I do not get any such error messages when accessing shares that way. But alas CIFS currently has problems with shares of a distributed file system which renders it useless for my purposes.

Does anyone out there know how to fix either of these problems? If more information is required please let me know.

Thanks.
 
Old 02-01-2005, 10:09 PM   #2
jerky
Member
 
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38

Rep: Reputation: 15
fstab

I assume you want to mount the remote address by name, to do this you have to have proper Wins resolution, either by Query or Wins server on local broadcast.

mount -t smbfs //SERVERNAME/SERVERSHARE /mnt/SHARE -o username=user1,password=123456

another way is to have text file, with root read-only persmission (chmod 600) containing with this context
call it whatever you like, put it in the directory you want to mout, ie /mnt/SHARE/pass

username = user1
password = 123456

You then can add in your /etc/fstab , an arguement "credentials=/mnt/SHARE/pass"

This will then call the file to supply the password authentication to your windows share. See "man smbmount"

in your /etc/fstab, more options can be applied
/mnt/SHARE //SERVERNAME/SHARE smbfs credentials=/mnt/SHARE/pass 0 0


See "man fstab"



Also verify in your /etc/samba/smb.conf , that your

interfaces = eth0
remote browse sync = 192.168.1.255
remote announce =192.168.1.255

Verify these are correct for your network configuration, this will help resolve WINS name resolution. Add Static names to local /etc/samba/lmhosts file.


Last edited by jerky; 02-01-2005 at 10:14 PM.
 
Old 02-01-2005, 10:18 PM   #3
Kalidor
LQ Newbie
 
Registered: Mar 2004
Location: Cortland, NY
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your quick response.

I am actually using a credentials file (located in /etc/samba). Aside from the different location of the credentials file the lines in /etc/fstab looks just like your example (with a ro parameter).

As I said, it works fine like this with Samba 3.0.2a and 3.0.3 but not with a version higher than this.

But I run into the same problem even if I do a command line smbmount with a credentials file or not. This is a really confusing problem.

WINS resolution is working fine, it does mount the share just fine. I just cannot access anything in it afterwards. A normal "ls" shows the mount point but when I do "ls -la" the mount point is invisible. Curiously I can "cd" into the mount point, but a "ls" results in the "permission denied" problem I mentioned.

I can access samba shares from the windows machines and I can access windows shares with smbclient. Only smbmount is giving me a headache.

Last edited by Kalidor; 02-01-2005 at 10:23 PM.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Permission DEnied NomadABC Linux - Software 3 01-02-2005 09:53 AM
smbmount works but I get permission denied when access the drive jeickal Linux - Networking 0 12-17-2004 11:22 AM
Permission denied? soujrnr Linux - Software 2 07-18-2004 07:35 AM
Permission denied? jbhoo Linux From Scratch 1 04-27-2002 09:12 PM

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

All times are GMT -5. The time now is 07:39 PM.

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