LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error with mounting samba share on linux as normal user (https://www.linuxquestions.org/questions/linux-software-2/error-with-mounting-samba-share-on-linux-as-normal-user-81662/)

dwof 08-13-2003 12:57 PM

error with mounting samba share on linux as normal user
 
Hi people,

I get an error when I try to mount a share from my red-hat 7.3 samba server on my red-hat 9 box.
When I type

¨mount -t smbfs //this.ip.samba.server/sharename /mnt/mnt1 -o user-name=bladiebla,password=somethingelse¨

and I use the root user-name and password, the share gets mounted just fine. If I use another users credentials though, it will not moun. It gives the following error:

6301: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed

If I type

smbclient -L this.ip.samba.server -U username

and use the user-name I used when trying to mount the share, it is listed. So the share exists, I see it when giving smbclient -L..... and still it will only mount when mounted with the root credential. I do not understand why it will not mount.

I hope someone can help me. Thanks,

Dolf.
:Pengy::newbie:

tangle 08-13-2003 01:10 PM

I thinkthat the -o option has to be before the sharename.
mount -t smbfs -o user-name=bladiebla,password=somethingelse //this.ip.samba.server/sharename /mnt/mnt1

dwof 08-13-2003 01:17 PM

Nope that's not the problem. It does exactely the same with your order. It also does the same when I use smbmount instead of mount -t smbfs

Cheers,

Dolf.

tangle 08-13-2003 01:22 PM

I should have seen this. user-name needs to be username.

dwof 08-13-2003 01:28 PM

nope that's not the problem either. It is something more complicated I think. there are no spaces, dashes, etc in the usernames. the only difference between the mounting going right and wrong is that with the one that works I use

-o username=root,password=****** and the other one is
-o username=somename,password=******

That's is the only difference between working and not working.

Electric_Blue 08-13-2003 03:21 PM

I get that message when my user does not have connect rights to the share. Also I "think" when the directory does not have access rights for the user or group.

Is the user set up on both of the linux boxes?

I'm assuming this is a share you have set up in the share definitions of the smb.conf file and the valid users include your user.

dwof 08-13-2003 03:53 PM

In both the server and the client the user admin exists, both in the same administrator group. The directory on the server is owned by admin:administrator and the folder where I want to mount the share on the client is owned by admin:administrator too. The share has admin and @administrator in the valid users list. Part of my smb.conf is online at http://smokeyd.homelinux.com/tmp/smb.conf.txt
It includes my Global settings and the settings for the share. I also defined the admin user in the smbpasswd. I would get a different error if it wasn't defined or the password was wrong.

Thnx,

Dolf.

Electric_Blue 08-13-2003 04:57 PM

Quote:

-o username=root,password=****** and the other one is
-o username=somename,password=******

That's is the only difference between working and not working.
Yea you're right.

The only time I got that error was when the actual mount point or share point truly did not exist. If the user didn't have rights to the share you get the no access message first, regardless of the share point's validity.

very weird

BUT that was to an NT share, I don't have another linux box running samba to play with at the moment.


All times are GMT -5. The time now is 10:32 AM.