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.
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.
I am not sure why I am not able to mount a smb share anymore but if anyone could help me out I would greatly appreciate it.
I am trying to mount, as a non-root user on my linux machine to another linux box that is running samba with many shares.
Every time I try to mount I get the msg only root can do that. I am running FC1.
When I run smbclient -L hostname I can see all the shares I just can not mount anything and have tried many times now.
If anyone could help me out I would greatly appreciate it.
The reason why I am trying to do this is because I have created some dir's on my linux box that I want mounted all the time to the samba server. For the reason being I will be able to sftp over some files directly through the share instead of sftping everything to my box and then sftping everything from my box to the samba server. For example, right now it goes something like this if I want to sftp something over.
sftp to my linux box --> login to my linux box and sftp to samba share
I want to be able to
sftp to my linux box to mounted smb share.
If anyone can help me out I would greatly appreciate it.
Thanks for your reply as I really do appreciate it.
Yes I am the owner and smbmnt is now fixed.
However, I am unfamiliar with the syntax of smbmnt or smbmount and I have looked at the man pages and have not been able to successfully mount a remote share.
If someone could please provide me with an example I would really appreciate it.
Here is an example of what I am trying to do:
local dir = /home/user/data
Samba server hostname = filsrv01
Samba share = data
If anyone could help me out I would really appreciate it.
It's easier to put the appropriate line in your fstab, so you can use 'mount directory' instead. Make sure to add the options "user" and "noauto" (noauto, because otherwise it will prompt you for a password every time you boot, holding up the boot sequence). My smb line in fstab looks like this:
Hrm, but to actually answer your question, you should be able to use
smbmount //filsrv01/data /home/user/data
if your current username is valid on filsrv01. Otherwise, add
-o username=validuser
to the end. Try replacing "filsrv01" with it's IP address if that doesn't work.
(Also, it would appear you could add "password=bla" to your fstab to avoid the prompting, but that file is usually world-readable)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.