Re: How to disable automatic mounting of CDROM?

2015-10-04 Thread Lisi Reisz
On Sunday 04 October 2015 16:17:24 Richard Owlett wrote:
> Lisi Reisz wrote:
> > On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:
> >> It may address the
> >> one thing I've found most annoying while trying to move to Linux.
> >> Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
> >> universe of mainframes. Not so much in a setting where only one
> >> individual has access.
> >
> > It makes sense in lots of situations, real life ones for schools,
> > colleges, workplaces, families, single users attached to the Internet. 
> > You can always achieve what you seem to want by always running as root. 
> > So LInux can do what you want fine.  Let it also do what others
> > want/need.
>
> I don't always wish to "swat flies with 100mm cannon".
> Or as old saying cautions "When all you have is a hammer,
> everything looks like a nail."

Then stop moaning.  Linux is a multi-user operating system.  It always has 
been.  Why should it change totally to suit you?  And anyway, root access is 
what you are saying you want.  So why not use it?  What disadvantages would 
it have in your scenario?  You want "everyone" to be able to do everything.

Lisi



Re: How to disable automatic mounting of CDROM?

2015-10-04 Thread Richard Owlett

Brian wrote:

On Sat 26 Sep 2015 at 17:11:32 -0500, Richard Owlett wrote:


Brian wrote:


I see what you mean.

Try

   gsettings set org.mate.media-handling automount false



"apparently" works
*NOTE BENE* the quotation marks
I ran one DVD
am now running a second


Successfully, we expect.


I'll have to go back and redo from scratch. Just spent a week in 
bed with stomach bug. Don't recall some of the side issues I was 
dealing with.





HOWEVER I suspect I've made system wide changes without being asked for root
permission


Policykit will take care of privileges. Nothing to worry about.


Hadn't done any previous reading on Policykit. It may address the 
one thing I've found most annoying while trying to move to Linux. 
Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a 
universe of mainframes. Not so much in a setting where only one 
individual has access. I have one machine that has no network 
access whatsoever (let alone internet) - going to lengths to 
protect it from external "threats" can become ludicrous.






*ALSO* it affected BOTH flash drives and CDs


Indeed. Is is worth digging into udisks and udev to handle CDs and USB
differently when a left or right click of the mouse does mounting so
quickly?


Quite possibly. Remember the "P" in PC stands for Personal. YMMV ;)




http://manpages.debian.org/cgi-bin/man.cgi?query=gsettings+=0=0=Debian+8+jessie=html=en
*NOT* informative


Nothing to fret about if the easier route is taken:

System Tools/dconf Editor/org/mate/desktop/media-handling


Front ends are nice, but I want to understand what's under the hood.





It also does not address pre-systemd


I don't follow that.


I had had the impression that D-bus was inherently part of systemd.
Just had an interesting read through 
https://en.wikipedia.org/wiki/D-Bus and 
http://www.freedesktop.org/wiki/Software/dbus/ [even mentions a 
Windows port ;].




Re: How to disable automatic mounting of CDROM?

2015-10-04 Thread Lisi Reisz
On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:
> It may address the
> one thing I've found most annoying while trying to move to Linux.
> Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
> universe of mainframes. Not so much in a setting where only one
> individual has access.

It makes sense in lots of situations, real life ones for schools, colleges, 
workplaces, families, single users attached to the Internet.  You can always 
achieve what you seem to want by always running as root.  So LInux can do 
what you want fine.  Let it also do what others want/need.

Lisi



Re: How to disable automatic mounting of CDROM?

2015-10-04 Thread Richard Owlett

Lisi Reisz wrote:

On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:

It may address the
one thing I've found most annoying while trying to move to Linux.
Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
universe of mainframes. Not so much in a setting where only one
individual has access.


It makes sense in lots of situations, real life ones for schools, colleges,
workplaces, families, single users attached to the Internet.  You can always
achieve what you seem to want by always running as root.  So LInux can do
what you want fine.  Let it also do what others want/need.



I don't always wish to "swat flies with 100mm cannon".
Or as old saying cautions "When all you have is a hammer, 
everything looks like a nail."





Re: How to disable automatic mounting of CDROM?

2015-10-04 Thread Richard Owlett

Lisi Reisz wrote:

On Sunday 04 October 2015 16:17:24 Richard Owlett wrote:

Lisi Reisz wrote:

On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:

It may address the
one thing I've found most annoying while trying to move to Linux.
Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
universe of mainframes. Not so much in a setting where only one
individual has access.


It makes sense in lots of situations, real life ones for schools,
colleges, workplaces, families, single users attached to the Internet.
You can always achieve what you seem to want by always running as root.
So LInux can do what you want fine.  Let it also do what others
want/need.


I don't always wish to "swat flies with 100mm cannon".
Or as old saying cautions "When all you have is a hammer,
everything looks like a nail."


Then stop moaning.  Linux is a multi-user operating system.  It always has
been.  Why should it change totally to suit you?  And anyway, root access is
what you are saying you want.  So why not use it?  What disadvantages would
it have in your scenario?  You want "everyone" to be able to do everything.



You missed my point. I had said:
"Hadn't done any previous reading on Policykit. It may address 
the one thing I've found most annoying while trying to move to 
Linux."


Obviously stating that Debian apparently had a solution for my 
percieved problem.





Re: How to disable automatic mounting of CDROM?

2015-09-27 Thread Brian
On Sat 26 Sep 2015 at 17:11:32 -0500, Richard Owlett wrote:

> Brian wrote:
> >
> >I see what you mean.
> >
> >Try
> >
> >   gsettings set org.mate.media-handling automount false
> >
> 
> "apparently" works
> *NOTE BENE* the quotation marks
> I ran one DVD
> am now running a second

Successfully, we expect.

> HOWEVER I suspect I've made system wide changes without being asked for root
> permission

Policykit will take care of privileges. Nothing to worry about.

> *ALSO* it affected BOTH flash drives and CDs

Indeed. Is is worth digging into udisks and udev to handle CDs and USB
differently when a left or right click of the mouse does mounting so
quickly?
 
> http://manpages.debian.org/cgi-bin/man.cgi?query=gsettings+=0=0=Debian+8+jessie=html=en
> *NOT* informative

Nothing to fret about if the easier route is taken:

   System Tools/dconf Editor/org/mate/desktop/media-handling

> It also does not address pre-systemd

I don't follow that.



Re: How to disable automatic mounting of CDROM?

2015-09-26 Thread Richard Owlett

Brian wrote:

On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:


I'm trying to troubleshoot a problem.
That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
time the drawer is closed is a nuisance requiring to manually run umount
before I can proceed.

/etc/fstab has noauto under options.


Probably nothing to do with your problem. From fstab(5)

   noauto do not mount when "mount -a" is given (e.g., at boot time)


Where else should I look.
I would prefer to disable on a per session basis.
Total disabling is acceptable.


Automounting is usually handled by the file manager of whatever DE you
are using.



I'm using Debian 8.0 with Mate as DE. There have been no updates 
installed as internet is not physically available to that machine.


I went to
Applications->System Tools->Caja then to
Edit->Preferences which displayed "File Management Preferences"
chose Media
  selected "Never prompt or start program on media insertion"
  deselected "Browse media when inserted"

It still mounts everything :<

Anything else?




Re: How to disable automatic mounting of CDROM?

2015-09-26 Thread rlharris
...
>>> Jessie ... automatically mounts the cdrom drive
>>> every time the drawer is closed is a nuisance requiring to manually
>>> run umount before I can proceed.

I have a similar experience when plugging in an external USB drive.  I
wish to mount each of several drives at a particular mount point which is
unique to the drive, and not at the next available generic mount point
"/dev/usb..."  And the fact that I have connected a USB drive does not
mean that I wish to mount it.

RLH




Re: How to disable automatic mounting of CDROM?

2015-09-26 Thread Brian
On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:

> I'm trying to troubleshoot a problem.
> That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
> time the drawer is closed is a nuisance requiring to manually run umount
> before I can proceed.
> 
> /etc/fstab has noauto under options.

Probably nothing to do with your problem. From fstab(5)

  noauto do not mount when "mount -a" is given (e.g., at boot time)
 
> Where else should I look.
> I would prefer to disable on a per session basis.
> Total disabling is acceptable.

Automounting is usually handled by the file manager of whatever DE you
are using.



Re: How to disable automatic mounting of CDROM?

2015-09-26 Thread Richard Owlett

Brian wrote:

On Sat 26 Sep 2015 at 11:27:46 -0500, Richard Owlett wrote:


Brian wrote:

On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:


I'm trying to troubleshoot a problem.
That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
time the drawer is closed is a nuisance requiring to manually run umount
before I can proceed.

/etc/fstab has noauto under options.


Probably nothing to do with your problem. From fstab(5)

   noauto do not mount when "mount -a" is given (e.g., at boot time)


Where else should I look.
I would prefer to disable on a per session basis.
Total disabling is acceptable.


Automounting is usually handled by the file manager of whatever DE you
are using.



I'm using Debian 8.0 with Mate as DE. There have been no updates installed
as internet is not physically available to that machine.


Updates wouldn't matter because they would not (or should not) alter
such a fundamental process.


I went to
Applications->System Tools->Caja then to
Edit->Preferences which displayed "File Management Preferences"
chose Media
   selected "Never prompt or start program on media insertion"
   deselected "Browse media when inserted"


Very useful. I think the deselection just stops the CD's contents being
displayed when the CD tray is closed and doesn't affect automounting.


It still mounts everything :<


I see what you mean.

Try

   gsettings set org.mate.media-handling automount false



"apparently" works
*NOTE BENE* the quotation marks
I ran one DVD
am now running a second

HOWEVER I suspect I've made system wide changes without being 
asked for root permission


*ALSO* it affected BOTH flash drives and CDs

http://manpages.debian.org/cgi-bin/man.cgi?query=gsettings+=0=0=Debian+8+jessie=html=en
*NOT* informative

It also does not address pre-systemd




Re: How to disable automatic mounting of CDROM?

2015-09-26 Thread Brian
On Sat 26 Sep 2015 at 11:27:46 -0500, Richard Owlett wrote:

> Brian wrote:
> >On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:
> >
> >>I'm trying to troubleshoot a problem.
> >>That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
> >>time the drawer is closed is a nuisance requiring to manually run umount
> >>before I can proceed.
> >>
> >>/etc/fstab has noauto under options.
> >
> >Probably nothing to do with your problem. From fstab(5)
> >
> >   noauto do not mount when "mount -a" is given (e.g., at boot time)
> >
> >>Where else should I look.
> >>I would prefer to disable on a per session basis.
> >>Total disabling is acceptable.
> >
> >Automounting is usually handled by the file manager of whatever DE you
> >are using.
> >
> 
> I'm using Debian 8.0 with Mate as DE. There have been no updates installed
> as internet is not physically available to that machine.

Updates wouldn't matter because they would not (or should not) alter
such a fundamental process.

> I went to
> Applications->System Tools->Caja then to
> Edit->Preferences which displayed "File Management Preferences"
> chose Media
>   selected "Never prompt or start program on media insertion"
>   deselected "Browse media when inserted"

Very useful. I think the deselection just stops the CD's contents being
displayed when the CD tray is closed and doesn't affect automounting.

> It still mounts everything :<

I see what you mean.

Try

  gsettings set org.mate.media-handling automount false