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've looked on this forum and found some advice, but it didn't seem to work for me. I'm trying to allow users to mount samba shares (winxp actually). Here's what I've done:
1) At first. it would not let me mount it at all. So I followed some advice on this forum and ran the following commands:
I am not sure how the smb mount works i\with the fstab file. I have never tried it like that. What I would suggest is trying to mount it manully first like this:
mount -t smbfs -o username=administrator,password=******** //Captain/Share /captain
obviously your directories will be different but if you get this command working then you know there is a problem with the fstab file
Okay, I used the elephant to squash the ant and uninstalled and reinstalled samba. It now works semi-appropriately, but I have a bizarre permissions problem:
Users can mount samba shares within their user directories with smbmount, i.e.
$smbmount //computer/service /mnt/sambamount
cannot mount on /mnt/sambamount: Operation not permitted
smbmnt failed: 1
Samba documentation states that this is a permission problem. So I changed the permissions to 777 on /mnt and /mnt/sambamount and I get the same thing. I think Samba is just out to get me!!!
If anyone has any ideas, I'd really appreciate them. This seems like it should be pretty simple. Thanks in advance!
I probably shouldn't say anything since I'm having problems of my own, but here's a way around mounting that I really like: smb://compname in the location bar of, say, Konqueror or whatever your file tool is. It works by hostname and ip, and if you have write access you can add/modify files just as if it were a regular, mounted share. It doesn't work on the command line, though. : (
You could try writing a simple script that mounts the drive and suiding that script to run as root. Suid is generally considered a security risk but it should be fine on home systems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.