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.
Originally posted by idaho Try changing the permissions on /mnt/encoder to allow anyone read and execute permisssions (chmod a+rx /mnt/encoder)
UPDATE:
It did fix the problem initially but when I booted up today, the problem has returned. When I type $ mount /mnt/encoder
I get this message: cannot mount on /mnt/encoder: Operation not permitted smbmnt failed: 1
I checked the fstab file and it has not changed. The mount command does work as root. Here is the mount directory list:
$ ls -l
drwxr-xr-x 2 root root 4096 Aug 8 17:44 cdrom
drwxrwxr-x 2 root root 4096 Oct 17 09:58 encoder
drwxr-xr-x 2 root root 4096 Aug 8 17:44 floppy
drwxr-xr-x 2 root root 4096 Oct 24 02:08 zip
Any ideas on what could have happened? It worked so well yesterday after the chmod.
Hi, I bumped into your post, and maybe I have some kind of solution.
I have the same problem as you. Apparently it all works fine if you set the directory's (/mnt/encoder in your case) owner to the user that mounts the share.
I know it sucks, but it's the only solution I've found so far.
If you have anything better, please let me know. I'd really like everyone to be able to mount my shares, but don't want to set them automount.
OK, hope it helps,
I discovered the same thing. What I have done to bypass the issue is to create a mnt directory under my home directory. I use that to mount shares or other drives not listed in fstab. Maybe not the best solution, but it works.
andrewstr, I've been thinking about the same thing. Maybe making some shell script to let users mount shares easier, not typing the hole mount -t smbfs ..... command.
Thanks for the idea.
Juan
HELP: I'm reunning a lan with a linux file server and a windows 2000 laptop. I'm trying to map a network drive from linux to the windows 2000 laptop without success.
the following line is from my /ETC/FSTAB
//WHISTLER/c /mnt/whistler/c smbfs noauto,users,guest,rw,username=administrator,password=xxxx 0 0
You should post the output of your mount command to have an idea of the error you are getting.
Anyway, there are two possibilities, as long as I've seen working with this:
1. Your smbmnt command doesn't have SUID, and it needs it for any user to be able to mount the share, otherwise it only allows root user to mount.
(in this case you get a "only root can mount.... smbmount needs to run with SUID" or something like that)
2. You do have SUID for smbmnt, but you don't have ownership of the /mnt/whistler/c directory, and you need that to mount.
(here you get a "Operation not permitted..." error)
Don ask why, but it just appears to be te way smbmount works.
SOLUTION: add SUID for /sbin/smbmnt (this have some security implications) and change ownership of /mnt/whistler/c/ directory to the user thet mounts the share, or better, put some mount directory on the home directory of that user. If you need multiple users to mount that, then I just don't have the solution yet.
OK... So if i follow this thread, there's no chance to have multiple users mount and unmount an smbfs to a directory under /mnt ???
I've tried to do it:
paul@nuxtek:~$ mount /mnt/Karaoke-Reseau/
Password:
Anonymous login successful
paul@nuxtek:~$ umount /mnt/Karaoke-Reseau/
umount: seul l'usager ROOT peut démonter //karaoke/Donnees de /mnt/Karaoke-Reseau
paul@nuxtek:~$
My /mnt/Karaoke-Reseau/ is...
drwxr-xr-x 1 paul users 4096 2004-05-14 10:15 Karaoke-Reseau/
I've tried with normal attibutes (full access):
drwxrwxrwx 1 root root 4096 2004-05-14 10:15 Karaoke-Reseau/
But it's worst:
paul@nuxtek:~$ mount /mnt/Karaoke-Reseau/
Password:
Anonymous login successful
cannot mount on /mnt/Karaoke-Reseau: Operation not permitted
smbmnt failed: 1
paul@nuxtek:~$
As i saw, we can't mount an smbfs to a directory wich isn't owned by the user who want's to mount it.!!!? This is Odd...
I've searched many forums but it seems everyone's blocked at the same place...
The only way for a user to mount & unmount an smbfs is on a directory located under is "home"...
No one have a clue to bypass this? Is yes, i'll have a big job to advise many people out-there on the net! hehehe
NB: Why I want to enabled users to be able to mount/unmount an smbfs share (from an entry in fstab) is because i want to use the new feature of Gnome 2.6 (showing the user-accessible fstab's entries with icons under "My Computer")...
Chris, that's wierd. Did you copy your fstab line literally? because window$ uses inverted slashes that's \ and not /. So your share should be \\server\share\something and not
//server/share/something, as you seem to have.
that could be something. Anyway, I suggest to use webmin or some other application to help you with your fstab file. I think that could be the problem.
About you, tipaul, the problem unmouting the share is because you should give /usr/bin/smbumount SUID as well.
If you find the way to let anybody mount smb shares please let me know
And for letting a user mounting a smbfs under /mnt, we must change the owner of the /mnt/xxx directory to the user that want's to mount it... That's a bit problematic...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.