error with mounting samba share on linux as normal user
Linux - SoftwareThis 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
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.
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 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
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.
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.
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.
-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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.