mounting for non-root users

Todd Slater dontodd at columbus.rr.com
Mon Apr 18 13:58:58 UTC 2005


Hi Mario:

On Mon, Apr 18, 2005 at 03:40:49PM +0200, Mario Vukelic wrote:
> On Mon, 2005-04-18 at 09:24 -0400, Todd Slater wrote:
> > I'm trying to mount Novell shares using ncpmount. I can do it using sudo
> > but I'd like to be able to do it as a regular user. Here's what I've
> > done:
> > 
> > 1. created dir /mnt/novell
> > 2. sudo chmod 4755 /usr/bin/ncpmount
> > 
> > When I try to mount the volume I get the error "Cannot to mount on
> > /mnt/novell: Operation not permitted"
> 
> For users to be able to mount, the mountpoint must be known
> in /etc/fstab, as follows (everything goes on one line; the commented
> line tells you what each entry means) 
> 
> # <file system> <mount point> <type> <options> <dump> <pass>
> /dev/hdc /media/CDROM iso9660 ro,users,noauto,nosuid,nodev,noexec  0
> 0
> 
> If you use the option "user", any user can mount. However, he can only
> unmount those drives he has mounted himself. If you instead use
> "users" (note the s), the user can unmount drives that other users have
> mounted

My fstab looks like this, see anything wrong?

FILESERVER/USERNAME /mnt/novell ncpfs rw,user,noauto 0 0

Of course FILESERVER and USERNAME are replaced with real values here.

Thanks,
Todd




More information about the ubuntu-users mailing list