Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
:Operation not permitted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MCK
n00b
n00b


Joined: 25 Jul 2002
Posts: 6

PostPosted: Fri Jul 26, 2002 8:25 am    Post subject: :Operation not permitted Reply with quote

Hi!
I got samba configured, and can browse other windoze-machines with konquerer/whatever. As root, I can mount a share on a windoze-server (which I can access with guest account) with
mount -t smbfs -o guest //server/share /mnt/server/share
No Problem here. Now I put a line in /etc/fstab:
//server/share /mnt/server/share smbfs guest,noauto,user 0 0
to allow my user to mount the share. If I mount it as root now with
mount /mnt/server/share
it still works. But if I try mount /mnt/server/share as user, I get:
cannot mount on /mnt/deepnetserv/deepnet1: Operation not permitted
smbmnt failed: 1
I really dunno why Operation is not permitted... :( Anyone a suggestion?

TIA
Back to top
View user's profile Send private message
MCK
n00b
n00b


Joined: 25 Jul 2002
Posts: 6

PostPosted: Fri Jul 26, 2002 9:44 am    Post subject: Reply with quote

Small update:
If I create the directory which the share will be mounted on with the user who will mount it, then it works! But I don't understand why it is not allowed to mount on /mnt/share... I mean it works with cdroms e.g. too... just not with smbfs... I don't think that I have to set some special permissions to the /mnt/share directory to be able to mount as a user, as I don't need to do that with /mnt/cdrom or something... :( any ideas?

TIA
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20494

PostPosted: Fri Jul 26, 2002 5:57 pm    Post subject: Reply with quote

In order to mount the cdrom as a user, you probably have something like this in your /etc/fstab
Code:
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro,users 0 0
The 'users' option allows users to mount the cdrom. I'm guessing there might be a permission issue on /mnt/share. Just a guess, I've used samba very little (and not recently).
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
miez
n00b
n00b


Joined: 30 Jun 2002
Posts: 14
Location: Hamburg, Germany

PostPosted: Sat Jul 27, 2002 1:05 pm    Post subject: :Operation not permitted Reply with quote

I had the same problem while mounting a samba share in my company.
For working on a project deploying HELIOS on linux for our customers, i've no spare time to struggle aroud with this problem.
Here's my ugly workaround:
Do an id <your login> and put a line like
//<server>/<share> <mountpoint> smbfs noauto,uid=<your uid>,gid=<your gid>,username=<your login>,password=<your passwd> 0 0
in your /etc/fstab.
You can mount the share sa root and use it as ordinary user.
Maybe i can post a better solution in in the near future.. :?
Back to top
View user's profile Send private message
MCK
n00b
n00b


Joined: 25 Jul 2002
Posts: 6

PostPosted: Sun Jul 28, 2002 8:22 pm    Post subject: Reply with quote

hi, THX for your solution ;).
Well, I also have a "solution": I just made a directory /mnt/<user>/<share> which is owned by the user and which the share is mounted on... seems to work. :)
Back to top
View user's profile Send private message
Oo.et.oO
Apprentice
Apprentice


Joined: 23 Apr 2002
Posts: 291
Location: burlington

PostPosted: Tue Nov 12, 2002 8:53 pm    Post subject: smbmount as a user Reply with quote

so smbmount has a "feature" whereby the "mounter" must have permissions on the mountpoint.

this is because it doesn't pay attention to /etc/fstab

if one runs mount /mnt/blah
where /mnt/blah is specified as a smb share in /etc/fstab, mount uses the entries, but doesn't care about the user option as it just passes them to smbmount which ignores the user option because if it did it would be "locked in, in future versions of samba"

why this is a bad thing is beyond me and i guess the samba maintainers are content leaving smbmount different from the other mounters it is trying to emulate.

my solution is to make a samba group, who has permission on all the "samba" mount points i make.
then put the users who need to mount samba shares in that group.

crappy situation. only solution really without making smbmount suid root (ack!).

-e
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum