[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: smbmount



Petteri Heinonen wrote:
> 
> >
> > Petteri Heinonen wrote:
> > >
> > > I've a problem with smbmount when trying to mount as ordinary
> > > (not root) user. I can mount samba shares if I mount them
> > > under ordinary users own home directory, for exmple in
> > > /home/orduser/mnt/ . Also, I can mount other hard drive
> > > partitions under /mnt/ as ordinary user. But I can _not_ mount
> > > samba shares under /mnt/ . If I try for example:
> > > smbmount //sharer/share /mnt/share -o
> > > username=orduser,password=passwd,
> > > I get following:
> > > cannot mount on /mnt/share: operation not permitted
> > > smbmnt failed: 1
> > > I have not any entries in fstab concerning this (I'd like to
> > > first make it work manually), and smbmount version is 2.2.1a,
> > > and kernel is 2.4.7, with smbfs compiled in it.
> > > Any ideas?
> > >
> > Forgot a thing: I've given all permissions for all user for
> > /mnt and /mnt/share directories, so it's not about that.
> >
> OK, I found the cause of problem: if I change the owner of
> mountpoint to orduser, it works. But of course, it can't be
> left like that. But this kind of behaviour is odd; in smbmnt's
> man page it is said that 'It checks whether the user has write
> permissions on the mount point and then mounts the directory.'
> But it seems like smbmnt truly checks the owner of the
> mountpoint too, not only permissions. Is this bug or what?
> 
I'm kind of surprised you can mount it at all, if you don't have the
'user' option in fstab.

What happens if you do that, and change the ownership of the mount point
back to root?



Reply to: