🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #75

Re: Using mount from user account

#75
From: Andrew Lockhart
Date: Mon, 08 May 2000 00:00
39 lines
1981 bytes
jason denton wrote:
> 
> I'm running Suse 6.3 and I have several devices marked as user mount in fstab;
> my floppy drive, zip drive, and cdrom. However, whenever I try to mount these
> devices as anything other than root I get a message saying that only root may
> use mount. All the docs seem to suggest that this is not the case, and that
> I should be able to mount those things appropriate marked in fstab. How can
> I fix this so that I can mount floppy/zip/cdroms without being root?
> 
> Jason Denton

well, you can do it the sloppy way and set the suid bit on /bin/mount
(aka chmod +s) or you can go the elegant way and use autofs, a kernel
module that you use with automount package.  

as far as config files, here's my /etc/auto.master:

#mountpoint map	options
/misc   /etc/auto.misc  --timeout 3

and here's my /etc/auto.misc
cdrom           -fstype=iso9660,ro      :/dev/cdrom
cdrom-efs       -fstype=efs,ro          :/dev/cdrom

you probably won't need the efs one tho - i use that to automount my
IRIX cds.

with this setup i mount my iso cds by just accessing anything under
/misc/cdrom.

you can add a floppy to the config by just adding this to auto.misc:

floppy	-fstype=auto	:/dev/fd0

---
mAL
---
"If you have nothing to hide, then you have nothing to fear...."
               "....What's wrong with having something to hide?"
Technical Details
Message-ID: <391726F8.2B8B5EA3@gitech.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3916f9d6@news.ColoState.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1159f7,783617b1ed4f9af4
X-Google-Attributes: gid1159f7,public
From: Andrew Lockhart <andrew@gitech.com>
Subject: Re: Using mount from user account
Date: 2000/05/08
Message-ID: <391726F8.2B8B5EA3@gitech.com>
X-Deja-AN: 620816871
Content-Transfer-Encoding: 7bit
References: <3916f9d6@news.ColoState.EDU>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 8 May 2000 14:43:37 -0700, res098193.halls.colostate.edu
Organization: Global Image Technologies
MIME-Version: 1.0
Newsgroups: csu.unix.linux