Re: allow mount to normal user

1997-12-03 Thread Adam Klein
On Tue, Dec 02, 1997 at 08:15:41AM -0600, W Paul Mills wrote:
 On Mon, 1 Dec 1997, Adam Klein wrote:
 
  On Mon, Dec 01, 1997 at 05:02:06PM -0600, Paul Serice wrote:
   Adam Klein wrote:

The problem with that is that you can only specify one filesystem type.
I've got this problem two.  Is there a solution?

   
   I believe using auto as the file type should do the trick.
   
   
   Paul Serice
  
  Nope, that doesn't work.
  
  Adam
  
 
 I use auto, it works fine for me as long as the proper module is
 loaded.
 

That was my problem.  I have MS-DOS as a module, and it auto-loads when I
use it.  Thanks!.

Adam Klein


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-03 Thread David Wright
On Tue, 2 Dec 1997, Paul Serice wrote:

 Adam Klein wrote:
 
 man mount and search for the following language:
 
   Note  that  the  auto  type may be useful for user-
   mounted floppies.
 
 
 Make sure you're putting auto in the right place.  For example,
 
 /dev/scd0  /cdrom  iso9660  ro,suid,dev,exec,noauto,user,async 0 1
 /dev/fd0   /floppy auto rw,suid,dev,exec,noauto,user,sync  0 0
  ^^
 
 This definitely works for me as far as auto detecting ext2 or vfat
 floppies via the KDE floppy mount icon (or the rustic command line).
 
 Something else I've learned is that if you plan on using auto, I
 would recompile your kernel to exclude msdos support but include
 vfat support.  The reason is that auto will check first for msdos
 8.3 format.  Because vfat floppies meet the criteria, they will be
 mounted as 8.3.  If you compile out msdos support, you'll be able to
 mount the floppies as vfat.

Shouldn't a bug report be filed against mount? It only makes sense for mount 
auto to check in the order Specific - Generic, not the other way round.

--
David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA
U.K.  email: [EMAIL PROTECTED]  tel: +44 1908 653 739  fax: +44 1908 655 151


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-03 Thread W Paul Mills
On Wed, 3 Dec 1997, David Wright wrote:

 On Tue, 2 Dec 1997, Paul Serice wrote:
 
  Adam Klein wrote:
  
  man mount and search for the following language:
  
Note  that  the  auto  type may be useful for user-
mounted floppies.
  
  
  Make sure you're putting auto in the right place.  For example,
  
  /dev/scd0  /cdrom  iso9660  ro,suid,dev,exec,noauto,user,async 0 1
  /dev/fd0   /floppy auto rw,suid,dev,exec,noauto,user,sync  0 0
   ^^
  
  This definitely works for me as far as auto detecting ext2 or vfat
  floppies via the KDE floppy mount icon (or the rustic command line).
  
  Something else I've learned is that if you plan on using auto, I
  would recompile your kernel to exclude msdos support but include
  vfat support.  The reason is that auto will check first for msdos
  8.3 format.  Because vfat floppies meet the criteria, they will be
  mounted as 8.3.  If you compile out msdos support, you'll be able to
  mount the floppies as vfat.
 
 Shouldn't a bug report be filed against mount? It only makes sense for mount 
 auto to check in the order Specific - Generic, not the other way round.

The last time I read the man page, this is what you would expect. 
Mount looks for the FIRST match. Actually mount does not seem to see
any difference between the two. It is not a bug, it is just the way
it is. 

Look at the -t option under man mount(8).

/*** Running Debian Linux ***
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...John 3:16  *
* W. Paul Mills  * Topeka, Kansas, U.S.A.   *
* [EMAIL PROTECTED] * http://homepage.midusa.net/~wpmills/ *
* [EMAIL PROTECTED]  * http://www.sound.net/~wpmills/   *
* Bill, I was there several years ago, why would I want to go back? *
/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-02 Thread Adam Klein
On Mon, Dec 01, 1997 at 05:02:06PM -0600, Paul Serice wrote:
 Adam Klein wrote:
  
  On Mon, Dec 01, 1997 at 12:46:47AM +1100, Anand Kumria wrote:
   On Sun, 30 Nov 1997, Benoit Joly wrote:
  
i want to allow normal user to use mount for floppy and cdrom.
because i dont want to run apps in root account...
what should i do.
  
   One of the options you can specify to mount is the 'user' option which
   allows ordinary users to mount a filesystem. Check 'man 8 mount' for
   further details.
  
   Anand.
  
  The problem with that is that you can only specify one filesystem type.
  I've got this problem two.  Is there a solution?
  
 
 I believe using auto as the file type should do the trick.
 
 
 Paul Serice

Nope, that doesn't work.

Adam


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-02 Thread Paul Serice
Adam Klein wrote:
 
 On Mon, Dec 01, 1997 at 05:02:06PM -0600, Paul Serice wrote:
  Adam Klein wrote:
  
   On Mon, Dec 01, 1997 at 12:46:47AM +1100, Anand Kumria wrote:
On Sun, 30 Nov 1997, Benoit Joly wrote:
   
 i want to allow normal user to use mount for floppy and cdrom.
 because i dont want to run apps in root account...
 what should i do.
   
One of the options you can specify to mount is the 'user' option which
allows ordinary users to mount a filesystem. Check 'man 8 mount' for
further details.
   
Anand.
  
   The problem with that is that you can only specify one filesystem type.
   I've got this problem two.  Is there a solution?
  
 
  I believe using auto as the file type should do the trick.
 
 
  Paul Serice
 
 Nope, that doesn't work.

man mount and search for the following language:

  Note  that  the  auto  type may be useful for user-
  mounted floppies.


Make sure you're putting auto in the right place.  For example,

/dev/scd0  /cdrom  iso9660  ro,suid,dev,exec,noauto,user,async 0 1
/dev/fd0   /floppy auto rw,suid,dev,exec,noauto,user,sync  0 0
     ^^

This definitely works for me as far as auto detecting ext2 or vfat
floppies via the KDE floppy mount icon (or the rustic command line).

Something else I've learned is that if you plan on using auto, I
would recompile your kernel to exclude msdos support but include
vfat support.  The reason is that auto will check first for msdos
8.3 format.  Because vfat floppies meet the criteria, they will be
mounted as 8.3.  If you compile out msdos support, you'll be able to
mount the floppies as vfat.


Regards,
Paul Serice


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-02 Thread W Paul Mills
On Mon, 1 Dec 1997, Adam Klein wrote:

 On Mon, Dec 01, 1997 at 05:02:06PM -0600, Paul Serice wrote:
  Adam Klein wrote:
   
   On Mon, Dec 01, 1997 at 12:46:47AM +1100, Anand Kumria wrote:
On Sun, 30 Nov 1997, Benoit Joly wrote:
   
 i want to allow normal user to use mount for floppy and cdrom.
 because i dont want to run apps in root account...
 what should i do.
   
One of the options you can specify to mount is the 'user' option which
allows ordinary users to mount a filesystem. Check 'man 8 mount' for
further details.
   
Anand.
   
   The problem with that is that you can only specify one filesystem type.
   I've got this problem two.  Is there a solution?
   
  
  I believe using auto as the file type should do the trick.
  
  
  Paul Serice
 
 Nope, that doesn't work.
 
 Adam
 

I use auto, it works fine for me as long as the proper module is
loaded.

One can also put multiple entries in fstab for the same device with
different mount points. This will allow different types of disks to
be mounted without using the auto feature.


/*** Running Debian Linux ***
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...John 3:16  *
* W. Paul Mills  * Topeka, Kansas, U.S.A.   *
* [EMAIL PROTECTED] * http://homepage.midusa.net/~wpmills/ *
* [EMAIL PROTECTED]  * http://www.sound.net/~wpmills/   *
* Bill, I was there several years ago, why would I want to go back? *
/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-01 Thread Remco Blaakmeer
On Mon, 1 Dec 1997, Anand Kumria wrote:

 On Sun, 30 Nov 1997, Benoit Joly wrote:
 
  i want to allow normal user to use mount for floppy and cdrom.
  because i dont want to run apps in root account...
  what should i do.
 
 One of the options you can specify to mount is the 'user' option which
 allows ordinary users to mount a filesystem. Check 'man 8 mount' for
 further details.

Yes, but there is more to this. The disk, floppy and cdrom devices (I mean
the /dev/* files for them) have permissions 0660 on a default Debian
system, so that normal users can't access them. The solution to this is
_not_ to make the permissions 0666, but to make the user a member of the
group that owns the device, i.e.

# adduser user1 floppy

if you want the user with username 'user1' to be able to access the floppy
devices.

Remco


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-01 Thread Fabrizio Polacco
Remco Blaakmeer wrote:
 
 Yes, but there is more to this. The disk, floppy and cdrom devices
 (I mean the /dev/* files for them) have permissions 0660 on a default
 Debian system, so that normal users can't access them. The solution
 to this is _not_ to make the permissions 0666, but to make the user
 a member of the group that owns the device, i.e.
 

Why?
Command mount is setuid root and after mount you don't need to access
the /dev file that is already mounted elsewhere on the filesystem.


fabrizio
-- 
| [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
| Pluto Leader - Debian Developer  Happy Debian 1.3.1 User - vi-holic
| 6F7267F5 fingerprint 57 16 C4 ED C9 86 40 7B 1A 69 A1 66 EC FB D2 5E


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-01 Thread Adam Klein
On Mon, Dec 01, 1997 at 12:46:47AM +1100, Anand Kumria wrote:
 On Sun, 30 Nov 1997, Benoit Joly wrote:
 
  i want to allow normal user to use mount for floppy and cdrom.
  because i dont want to run apps in root account...
  what should i do.
 
 One of the options you can specify to mount is the 'user' option which
 allows ordinary users to mount a filesystem. Check 'man 8 mount' for
 further details.
 
 Anand.

The problem with that is that you can only specify one filesystem type.
I've got this problem two.  Is there a solution?

Adam Klein


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-01 Thread Steve Kostecke
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Adam Klein) writes:
 The problem with that is that you can only specify one filesystem type.
 I've got this problem two.  Is there a solution?

How about two seperate lines in your /etc/fstab ??

fs mount point   type  options   dump  pass
/dev/cdrom   /cdrom  iso9660 ro,user,unhide,noauto   0   0
/dev/fd0 /floppy ext2rw,user,noauto  0   0

See what groups these devices belong to (in my case):
$ ls -l /dev/fd0 /dev/cdrom
lrwxrwxrwx   1 root cdrom   8 Oct  2 16:25 /dev/cdrom - /dev/hdc
brw-rw   1 root floppy 2,   0 Sep 25 19:34 /dev/fd0
$

Add the users for each device to the appropriate groups...
-- 
   _ _  
Steve Kostecke| (_)_ __  _   ___  __
[EMAIL PROTECTED]| | | '_ \| | | \ \/ /
http://kostecke.home.ml.org   | | | | | | |_| |   
  |_|_|_| |_|\__,_/_/\_\


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-01 Thread Martin Bialasinski
On Mon, 1 Dec 1997, Adam Klein wrote:

   i want to allow normal user to use mount for floppy and cdrom.
   because i dont want to run apps in root account...
   what should i do.
  
  One of the options you can specify to mount is the 'user' option which
  allows ordinary users to mount a filesystem. Check 'man 8 mount' for
  further details.
  
 The problem with that is that you can only specify one filesystem type.
 I've got this problem two.  Is there a solution?
 
Use this way:

install super.deb

check /etc/login.defs for

CONSOLE_GROUPS  floppy:audio:cdrom:dialout:dip:dosdisks 
^^
Hmm, this only works for console logins. So better add the local users who
should be able to mount the floppy to the folppy group in /etc/group

and check /dev/fd0 for

$ ls -l /dev/fd0
brw-rw   1 root floppy 2,   0 Apr 14  1997 /dev/fd0   

insert into /etc/super.tab

fon /usr/local/bin/fon  :floppy uid=root
foff /usr/local/bin/foff:floppy uid=root

Here are the scripts that allow the actuall mount:

cat /usr/local/bin/fon
#!/bin/sh

prog=`basename $0`
# If script invoked w/o super, then exec super to run this script.

test X$SUPERCMD = X$prog || exec /usr/bin/super $prog ${1+$@}

mount -o  rw,nodev,noexec,uid=0,gid=25,umask=007,quiet -t vfat /dev/fd0
/floppy  echo Floppy gemountet unter /mnt/a

cat /usr/local/bin/foff
#!/bin/sh

prog=`basename $0`
# If script invoked w/o super, then exec super to run this script.

test X$SUPERCMD = X$prog || exec /usr/bin/super $prog ${1+$@}

umount /floppy  echo Floppy unmounted   

Now, if you also want to mount a xiafs floppy, simply create copies of
these scripts and change the -t fstype expression.

Ciao,
Martin


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-12-01 Thread Paul Serice
Adam Klein wrote:
 
 On Mon, Dec 01, 1997 at 12:46:47AM +1100, Anand Kumria wrote:
  On Sun, 30 Nov 1997, Benoit Joly wrote:
 
   i want to allow normal user to use mount for floppy and cdrom.
   because i dont want to run apps in root account...
   what should i do.
 
  One of the options you can specify to mount is the 'user' option which
  allows ordinary users to mount a filesystem. Check 'man 8 mount' for
  further details.
 
  Anand.
 
 The problem with that is that you can only specify one filesystem type.
 I've got this problem two.  Is there a solution?
 

I believe using auto as the file type should do the trick.


Paul Serice


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


allow mount to normal user

1997-11-30 Thread Benoit Joly
hi,

now my linux box running good, thanks for your answers :)


i want to allow normal user to use mount for floppy and cdrom.
because i dont want to run apps in root account...
what should i do.

Thanks i advance.

Benoit Joly


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: allow mount to normal user

1997-11-30 Thread Anand Kumria
On Sun, 30 Nov 1997, Benoit Joly wrote:

 i want to allow normal user to use mount for floppy and cdrom.
 because i dont want to run apps in root account...
 what should i do.

One of the options you can specify to mount is the 'user' option which
allows ordinary users to mount a filesystem. Check 'man 8 mount' for
further details.

Anand.

--
 `When any government, or any church for that matter, undertakes to say to
  its subjects, This you may not read, this you must not see, this you are
  forbidden to know, the end result is tyranny and oppression no matter how
  holy the motives' -- Robert A Heinlein, If this goes on --


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .