Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You are going to need to provide the path to smbmnt when you do a chmod. It will not look it up in the path as far as I know. His command works because he was running it from the directory where smbmnt is.
When you run the command smbmnt on the command line it looks it up in the path...but when you are using chmod it just considers it a file and doesnt try looking it up in the path.
Try that. This is based on my experience so I may not be exactly right. I am not sure if it is possible to have it look it up in the path or if some systems are setup to do that already. In my experience it doesnt.
So do this:
chmod u+s /path_to_smbmnt/smbmnt
Where path_to_smbmnt is the full path to the file.
ok we are getting closer... i was able to chmod u+s /usr/bin/smbmnt and not get an error. now mind you i did that as root... i hope that was correct.
now when i try to mount im still getting an error:
Code:
[ray2@raylap ray2]$ mkdir /home/ray2/tmp
[ray2@raylap ray2]$ smbmnt //192.168.2.100/movies /home/ray2/tmp/
Failed to find real path for mount point
[ray2@raylap ray2]$ smbmnt //192.168.2.100/Movies /home/ray2/tmp/
Failed to find real path for mount point
tried it with cap on M as that is exactly how it is on the XP box...
still dont get why in Debian i can do this with zero issues, yet RH9 gives all kinds of fits for something as simple as mounting a share.
more help would be great. id love to be able to get my laptop to connect to my XP box instead of being forced to use winSCP all the time.
That error message sounds strange. was the mount point (in your case, /home/ray2/tmp/) created correctly? Try removing the trailing slash from the mount point (/home/ray2/tmp)
Originally posted by Lleb_KCir now mind you i did that as root... i hope that was correct.
Yes, you would need to have been root to change permissions on smbmnt.
Quote:
Originally posted by urzumph That error message sounds strange. was the mount point (in your case, /home/ray2/tmp/) created correctly? Try removing the trailing slash from the mount point (/home/ray2/tmp)
Yes, strange.
Even though smbmnt is the file that needs to be +s I seem to remember that you should use smbmount instead of smbmnt directly (smbmount uses smbmnt).
So try:
smbmount //192.168.2.100/Movies /home/ray2/tmp
I am not too familiar with mounting samba shares on the command line as I usually use a graphical prog.
I honestly have no idea what is going wrong. Sorry I couldnt be of more help.
In a quick google search I didnt find much other than a reference to commenting some ssl related lines from your samba config file. I would suggest searching around a bit more. Maybe ask on a red hat specific forum.
scratch this, was replying to an old cache of the forum. sorry...
--------------------------------
notice where you're running the command from:
[root@raylap root]# chmod u+s smbmnt
that's telling chmod to go to work on the smbmnt file in the current directory, which in this case looks like /root. smbmnt almost certainly doesn't live there. try /usr/bin/smbmnt or from / do a "find . -name smbmnt"
have you check to see what the share name is on the xp box? the way you stated below
Quote:
Originally posted by Lleb_KCir
tried it with cap on M as that is exactly how it is on the XP box...
it sounds like you are trying to mount a file in the windows filesystem.
incase you don't know:
go into the windows puter and go to the folder you want to share. make sure that there is a hand on the bottom of the folder icon. if not right click on it and chose "properties"
chose the sharing tab and click the radio button to "share this folder" and then look for a listing for "share name" or something like that. then put in Movies (or what ever you want to name the share and what you will be putting in the smbmount command) from this point go back to your linux box and try the command again.
if you know all of this info i am sorry to bore you and to let you know.. it is not to belittle your knowledge. sometimes the simple things get overlooked.
I know I am bringing up an older post, but I was just following the steps of this message and am getting further than I did at my start. I was getting the same error that started this message (except in the parenthese was 500, 500). I did the chmod and was able to mount the share now without any error. The share is mounted to /home/myhomedirectory/mnt/share When I cd to share and then do ls I get a message stating "ls: .: Permission denied" When I go back to the mnt directory and do ls -l this is what I see:
total 0
?--------- ? ? ? ? ? share
I can also tell you I am using the KDE desktop, and when I do this from the terminal window, the share directory is flashing red. Can anyone explain what is wrong? The share I am connecting to is a Windows 2003 Server black ice is also running. The ip and hostname are both allowed on the server and am seeing no errors in black ice (anymore).
did you overlook including the rw in the fstab options for the mount? that is the onlything i can think of... to tell you the truth i am having my own smbmount probs. maybe you can take a look and help?
I am not even to the point of trying to set up a persistent connection, I am just trying to do this at the command prompt. I get no errors know (after dealing with the suid issue). I even trying accessing it as root and still get a permission denied message. Everyone has read access to the share so I do not know why I cant at least see whats in the directory???
I have to agree with the earlier poster than the "experienced" Linux users tend towards a patronising attitude more than is useful. I've stuck with Linux despite them, not because of them. No explanations as to why you should use one option over another, ambiguous command fragments which implicitly accuse you of being an idiot if you can't immediately inuit what they mean, no references to any other doco that a newbie can look up, and snarky remarks about how "the doco is there" or "you should take the time", as if we have nothing better to do than spend 8 hours a day trawling through the internet when we have jobs of our own to work and children to look after. Next they'll be saying that you should only use Linux if you're jobless and friendless.
In any case, if there's anyone who's come to this thread looking for answers, this is what worked for me in Kubuntu, although heaven knows WHY!
1) I installed Smb4K, "the SMB/CIFS Share Browser" via Adept
2) I did a "whereis smbmnt" and found that smbmnt lives in /usr/bin/smbmnt
3) I typed in the following: sudo chmod u+s /usr/bin/smbmnt
4) Following on from previous posts, I then typed:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.