LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-22-2005, 07:44 AM   #1
hyllplan
Member
 
Registered: Nov 2004
Location: Stockholm, Sweden
Distribution: Debian (Sarge), Red Hat, Ubuntu, Knoppix
Posts: 99

Rep: Reputation: 15
Angry smbclient fine, smbmount NOT fine


Hi,
I am trying to mount a share on a windows server.

It works fine when I do smbclient //server/share -U username, I getting logged in can walk around look at files and everything

BUT when I try to moun the same share with (in fstab):

//sameserver/sameshare /mnt/localdir smbfs users,noauto,rw,username=user/domain 0 0

The login and mounting and stuff works just fine, but when I try to do a ls in /mnt/localdir I just get "access denied". How weird is that? However it works just fine on my own homedirectory that are located on one of the company windows server? Crazy or am I crazy?
 
Old 06-30-2005, 07:08 PM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
is the username not made out of domain/username??
 
Old 07-01-2005, 02:22 AM   #3
hyllplan
Member
 
Registered: Nov 2004
Location: Stockholm, Sweden
Distribution: Debian (Sarge), Red Hat, Ubuntu, Knoppix
Posts: 99

Original Poster
Rep: Reputation: 15
yes it is, but this was just a writing error in the thread
 
Old 07-01-2005, 02:33 AM   #4
hyllplan
Member
 
Registered: Nov 2004
Location: Stockholm, Sweden
Distribution: Debian (Sarge), Red Hat, Ubuntu, Knoppix
Posts: 99

Original Poster
Rep: Reputation: 15
BTW, I recently got access to a new windows share and I had no problem to mount that one! So it feels like the shares that I have a problem to mount are those that has access for 'everyone'. Those shares that I get specific rights for my user work just fine. Do I have to add something to my mount command to be able to mount shares that have the permission ''everyone'?:

//server/share /mnt/localdir smbfs users,noauto,rw,username=user 0 0
 
Old 07-01-2005, 07:45 AM   #5
Jeiku
Member
 
Registered: Jul 2005
Posts: 64

Rep: Reputation: 18
You might want to try username 'guest' instead if the share is accessable by everyone.

You could also try writing a shell script and use smbmount instead of fstab...

/usr/bin/smbmount //server/share /mnt/localdir -N


Since the share is accessable by everyone, I presume there is no password protection for it, so that -N option won't ask for a password and just mount that share. If that works you could just stick that command in your /etc/rc.d/rc.local

 
  


Reply



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
why can't I mount with smbmount if i'm able to connect with smbclient? eantoranz Linux - Networking 3 12-17-2004 12:41 PM
smbclient v.s smbmount linuxtesting2 Linux - Networking 2 12-01-2004 07:20 AM
smbclient connects to a M$ share, smbmount fails douchev Linux - Networking 2 09-03-2004 02:26 AM
FC2: smbmount->ERRDOS; smbclient->works fine! WHY? danielson Linux - Networking 3 06-23-2004 10:02 AM
Smbclient is working fine but smbmount is not.. sandy Linux - Networking 1 07-31-2003 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:09 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