Re: [SLUG] LinNeighborhood with Joe User: "smbmount not found" - Why?

From: Brian Coyle (brian@linuxwidows.com)
Date: Mon Oct 07 2002 - 22:16:27 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 07 October 2002 18:09, Paul M Foster wrote:
> On Mon, Oct 07, 2002 at 02:06:50PM -0400, John Clay wrote:

[snip]

> > So: It works with root, is in Joe User's path, has loads of permissions
> > but can't be found when called by Joe U.
> >
> > What's up with that??
>
> Mounting anything on a Linux box requires being root or modifying the
> permissions so that one can do it without being root.

Or you need to have an entry in /etc/fstab with the 'user' option.
Like:
        /dev/cdrom /mnt/cdrom iso9660 user,ro,exec,noauto 0 0
        /dev/fd0 /mnt/floppy auto user,noexec,noauto 0 0

Or for example, I (as a regular user) smbmount these

        //hank/brian /mnt/hank/brian smbfs noauto,user,exec 0 0
        //hank/slash /mnt/hank/slash smbfs noauto,user,exec 0 0

with a bit of magic in my $HOME/.bash_profile file:

        if [ ! -d /mnt/hank/brian/data ]; then
            smbmount //hank/brian /mnt/hank/brian -o username=brian%$PASSWD
        fi

        if [ ! -d /mnt/hank/slash/boot ]; then
            smbmount //hank/slash /mnt/hank/slash -o username=brian%$PASSWD
        fi

The tests for the known sub-directories prevents multiple mounts...

HTH!

- --
"We choose to go to the moon, and do the other things...
 Not because they are easy, but because they are hard." -JFK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Brian Coyle, GCIA

iD8DBQE9oj/8ER3MuHUncBsRAquAAKCAv19uE+Mbk51U8ts/K8Ij27IbjQCeIAZd
r5XLTd+a726lxzczIk5P/8s=
=GhYa
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:42:25 EDT