Can't mount NT filesystem unless root
rvargo at vargo.org
rvargo at vargo.org
Mon Sep 11 16:02:35 GMT 2000
The regular user has to have read/write permissions to the directory you are
trying to mount the share to. Also make sure that you are using the
smbmount/smbumount commands, using the mount/umount command is still strictly
a superuser command (with exceptions).
Rick
Ho-Kuo Chan <hchan at Matrox.COM> said:
> Thanks Nick and Rick for your input, I set suid on both smbmnt and smbumount
> but it still failed. Here is the error message:
> cannot mount on /mnt/shp3: Operation not permitted
> smbmnt failed: 1
> mount.smbfs: ioctl failed, res=-1
> Could not umount /mnt/theDirectory: Invalid argument
>
> Thanks again for your help!
>
> Nick Austin wrote:
>
> > You need to set suid on the smbmnt and smbumount to do that.
> >
> > try this
> >
> > # chown root:root /usr/bin/smbmnt /usr/bin/smbumount
> > # chmod u+s /usr/bin/smbmnt /usr/bin/smbumount
> >
> > that should do it!
> >
> > Hope this helps!
> >
> > On Fri, 08 Sep 2000 15:43:28 -0500, Ho-Kuo Chan said:
> >
> > > Hi,
> > > I am trying to mount a directory on an NT Server on my Linux
machine
> > > (Debian potato Linux kernel 2.2.17) using Samba. I have tried the
> > > following:
> > > smbmount //theServer/theDirectory /mnt/theDirectory -o
> > > username=myUsername workgroup=theWorkgroup.
> > > This works when I am logged in as root, but I can't mount as a user. I
> > > have also tried adding the follwing to fstab:
> > > //theServer/theDirectory /mnt/theDirectory
> > > defaults,ro,user,username=myUsername,workgroup=theWorkgroup,gid=100 0 0
> > > with no success. Is it possible to use smbmount as non-root? I have
read
> > > the FAQ's and checked some of the archives with no success. Thanks for
> > > you help.
> > >
> > >
> >
> > --
> > -----
> > Nick Austin Systems Administrator
> > <nick at digitalpipe.net> Digital Pipe Communications, Inc.
> > Phone: 650-627-5100x5224
> > Fax: 650-212-2301
>
>
>
--
More information about the samba-ntdom
mailing list