Re: OT - gap -Re: Using bind mount

2016-01-16 Thread Daniel Bareiro

On 15/01/16 08:47, Chris Bannister wrote:
> On Thu, Jan 14, 2016 at 04:50:04PM +, Lisi Reisz wrote:
>> ;-)
>>
>> And please, no group "hugs" among strangers. ;-)

> I remember a 'poster' I had years ago which read "There are no strangers
> here, only friends we haven't met."  ;-)

What a good phrase!

About the group hug, I could not help remembering the end of this [1]
video (it has English subtitles) while writing the other email :-)


Kind regards,
Daniel

[1] https://www.youtube.com/watch?v=dkgvOA55JZ8



signature.asc
Description: OpenPGP digital signature


Re: OT - gap -Re: Using bind mount

2016-01-15 Thread Chris Bannister
On Thu, Jan 14, 2016 at 04:50:04PM +, Lisi Reisz wrote:
> ;-)
> 
> And please, no group "hugs" among strangers. ;-)

I remember a 'poster' I had years ago which read "There are no strangers
here, only friends we haven't met."  ;-)

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X



Re: OT - gap -Re: Using bind mount

2016-01-15 Thread Lisi Reisz
On Friday 15 January 2016 11:47:32 Chris Bannister wrote:
> On Thu, Jan 14, 2016 at 04:50:04PM +, Lisi Reisz wrote:
> > ;-)
> >
> > And please, no group "hugs" among strangers. ;-)
>
> I remember a 'poster' I had years ago which read "There are no strangers
> here, only friends we haven't met."  ;-)

:-)  O.K. Please, no group "hugs" among friends I haven't met yet.  ;-)  Let's 
wait until we know each other better. ;-)

Lisi



Re: OT - gap -Re: Using bind mount

2016-01-15 Thread Steve Matzura
On Fri, 15 Jan 2016 14:36:24 +, you wrote:

>:-)  O.K. Please, no group "hugs" among friends I haven't met yet.  ;-)  Let's 
>wait until we know each other better. ;-)

My arms are at my sides where they belong. :-)



Re: OT - gap -Re: Using bind mount

2016-01-14 Thread Lisi Reisz
On Thursday 14 January 2016 11:01:22 Daniel Bareiro wrote:
> On 13/01/16 19:08, Lisi Reisz wrote:
> > On Wednesday 13 January 2016 09:38:12 Steve Matzura wrote:
> >> And once again, I ask you to hand me the spatula so's I can scrape the
> >> egg off my face. I completely forgot I needed to `mkdir -p' the mount
> >> point directory! IT WORKS! Didn't I say I was missing something
> >> stupid? :-)
> >>
> >> Now to look up the syntax for putting it into fstab to make it
> >> permanent. THANK YOU AGAIN EVER SO MUCH!
> >
> > Thank you, Steve. That may not have been for my benefit, but was what I
> > was talking about.  Between the smiley and the word "Now" there is a nice
> > big gap.  If you could break larger paragraphs up with more of those it
> > would be very helpful.
>
> Let us not be such a grouch :-)
>
> It's good to let people expressing themselves freely. Debian comes from
> precisely that freedom. So let's try to be a "little" more tolerant and
> let's relax, focusing on help to others rather than telling them how
> they should express.

How can I help someone when I can't read what he has written?
>
> Let's try to keep the inner peace and regulating our emotions :-)

Where do emotions come into it?
>
> So now let's give yourseves a big hug with "gzip -9" factor :-D

  Were you in Cologne?
>
> Best regards,
> Daniel

So you don't want to include the disabled?  You prefer those with problems to 
just shut up and let everyone flow freely?  

I had asked Steve to help me.  I did it on list because I am unlikely to be 
the only one affected.  Steve has complied.  

I am not grouchy.  Grouchy is when I delete things for being illegible, not 
when I ask for help in reading them.

Steve himself cannot see.   I thought (hoped) that he might be sympathetic and 
helpful to others with visual handicaps.  I was right.  He has helped.

Lisi



Re: OT - gap -Re: Using bind mount

2016-01-14 Thread Steve Matzura
Whoa folks, let's apply the brakes.

The fact is, if you think about it, Lisi is quite correct, but for a
reason she may not even realize. Visually impaired people, at least
those of us whose visual impairment is to the point where we don't use
print at all, don't hear in paragraphs, but anybody who deals with
information input via the mechanism of sight, does. I freely admit
that sometimes I forget this, too, and write run-on paragraphs that
should be broken into smaller segments, which I'm quite happy to do in
order to accommodate those photo-dependent (ha ha) among us who need
such things. In short, it's nothing to fight about or be
over-sensitive about.

-End-



Re: OT - gap -Re: Using bind mount

2016-01-14 Thread Steve Matzura
On Wed, 13 Jan 2016 22:08:02 +, Lisi wrote:

>On Wednesday 13 January 2016 09:38:12 Steve Matzura wrote:
>> And once again, I ask you to hand me the spatula so's I can scrape the
>> egg off my face. I completely forgot I needed to `mkdir -p' the mount
>> point directory! IT WORKS! Didn't I say I was missing something
>> stupid? :-)
>>
>> Now to look up the syntax for putting it into fstab to make it
>> permanent. THANK YOU AGAIN EVER SO MUCH!
>
>Thank you, Steve. That may not have been for my benefit, but was what I was 
>talking about.  Between the smiley and the word "Now" there is a nice big 
>gap.  If you could break larger paragraphs up with more of those it would be 
>very helpful.

I suspect I got it.



Re: Using bind mount

2016-01-14 Thread Steve Matzura
Jonathan,

On Wed, 13 Jan 2016 16:07:47 +, you wrote:

>On Wed, Jan 13, 2016 at 04:38:12AM -0500, Steve Matzura wrote:
>> Now to look up the syntax for putting it into fstab to make it
>> permanent. THANK YOU AGAIN EVER SO MUCH!
>
>The syntax is 
> /olddir /newdir none bind
>
>You must put this after the /olddir (/mnt/nas) and /newdir (/home/steve)
>mount entries, if there are any (if /home is separate from /), to ensure
>that those mount points are resolved first. Or write systemd .mount unit
>files and set up the dependencies between them explicitly (instead of
>fstab entries)

Thank you. I didn't know the first part, but the second is mostly
obvious in that you can't use something whose existence you have not
yet declared or defined.



Re: OT - gap -Re: Using bind mount

2016-01-14 Thread Daniel Bareiro


On 13/01/16 19:08, Lisi Reisz wrote:
> On Wednesday 13 January 2016 09:38:12 Steve Matzura wrote:
>> And once again, I ask you to hand me the spatula so's I can scrape the
>> egg off my face. I completely forgot I needed to `mkdir -p' the mount
>> point directory! IT WORKS! Didn't I say I was missing something
>> stupid? :-)
>>
>> Now to look up the syntax for putting it into fstab to make it
>> permanent. THANK YOU AGAIN EVER SO MUCH!
> 
> Thank you, Steve. That may not have been for my benefit, but was what I was 
> talking about.  Between the smiley and the word "Now" there is a nice big 
> gap.  If you could break larger paragraphs up with more of those it would be 
> very helpful.

Let us not be such a grouch :-)

It's good to let people expressing themselves freely. Debian comes from
precisely that freedom. So let's try to be a "little" more tolerant and
let's relax, focusing on help to others rather than telling them how
they should express.

Let's try to keep the inner peace and regulating our emotions :-)

So now let's give yourseves a big hug with "gzip -9" factor :-D

Best regards,
Daniel



signature.asc
Description: OpenPGP digital signature


Re: OT - gap -Re: Using bind mount

2016-01-14 Thread Lisi Reisz
On Thursday 14 January 2016 10:09:30 Steve Matzura wrote:
> On Wed, 13 Jan 2016 22:08:02 +, Lisi wrote:
> >On Wednesday 13 January 2016 09:38:12 Steve Matzura wrote:
> >> And once again, I ask you to hand me the spatula so's I can scrape the
> >> egg off my face. I completely forgot I needed to `mkdir -p' the mount
> >> point directory! IT WORKS! Didn't I say I was missing something
> >> stupid? :-)
> >>
> >> Now to look up the syntax for putting it into fstab to make it
> >> permanent. THANK YOU AGAIN EVER SO MUCH!
> >
> >Thank you, Steve. That may not have been for my benefit, but was what I
> > was talking about.  Between the smiley and the word "Now" there is a nice
> > big gap.  If you could break larger paragraphs up with more of those it
> > would be very helpful.
>
> I suspect I got it.

Yes, so do I.  All your recent emails have been totally legible.  One or two 
of your earlier ones I just gave up on.  Thank you very much.

Lisi



Re: OT - gap -Re: Using bind mount

2016-01-14 Thread Lisi Reisz
On Thursday 14 January 2016 16:07:56 Steve Matzura wrote:
> Whoa folks, let's apply the brakes.
>
> The fact is, if you think about it, Lisi is quite correct, but for a
> reason she may not even realize. Visually impaired people, at least
> those of us whose visual impairment is to the point where we don't use
> print at all, don't hear in paragraphs, but anybody who deals with
> information input via the mechanism of sight, does.

I don't!!  I am forced to use vocabulary that people might understand.  My 
husband needs *sound* broken up.  

My only blind computer programmer friend can process sound at a speed at which 
I cannot even make out words.  It isn't that I need paragraphs.  I need 
breaks, spaces - in the middle of sentences will do.  If things are too close 
together, I just can't see them.  They run into each other and jumble up.  
Find Nemo is a non-starter!!  

> I freely admit 
> that sometimes I forget this, too, and write run-on paragraphs that
> should be broken into smaller segments, which I'm quite happy to do in
> order to accommodate those photo-dependent (ha ha) among us who need
> such things. 

> In short, it's nothing to fight about or be 
> over-sensitive about.

Of course not!  I wasn't moaning or criticising - I wanted to read what you 
had written and asked whether you could accommodate me.  You asked what I 
meant - and we ended up here.  For the record, this block of text, before I 
broke it up to answer, was difficult for me.

But this whole conversation has made me realise something else I can do to my 
email client for special cases.  So it has been useful to me.

> -End-

;-)

And please, no group "hugs" among strangers. ;-)

Lisi



Re: Using bind mount

2016-01-13 Thread Steve Matzura
On Wed, 13 Jan 2016 10:01:03 +0300, you wrote:

>strace is used for tracing system calls, it does not influence your
>problem per se. Please install it first, run mount via strace second.

In between your message and now, my mount problem was solved, but I
installed strace anyway for future use. Thanks for the info about
doing that. I thought it was part of the system.



Re: Using bind mount

2016-01-13 Thread Steve Matzura
On Tue, 12 Jan 2016 23:49:02 -0500, you wrote:

>On 12/01/16 10:23 PM, Steve Matzura wrote:
>> On Tue, 12 Jan 2016 18:12:11 -0300, Daniel wrote:
>>
>>> M... I used the following syntax:
>>>
>>> mount --bind /mnt/nas/doc /home/steve/doc
>>>
>>>
>>> That works for you?
>> Sorry ...
>>
>> mount: mount point docs does not exist
>>
>That error would indicate that /home/steve/doc doesn't exist.

And once again, I ask you to hand me the spatula so's I can scrape the
egg off my face. I completely forgot I needed to `mkdir -p' the mount
point directory! IT WORKS! Didn't I say I was missing something
stupid? :-)

Now to look up the syntax for putting it into fstab to make it
permanent. THANK YOU AGAIN EVER SO MUCH!



OT - gap -Re: Using bind mount

2016-01-13 Thread Lisi Reisz
On Wednesday 13 January 2016 09:38:12 Steve Matzura wrote:
> And once again, I ask you to hand me the spatula so's I can scrape the
> egg off my face. I completely forgot I needed to `mkdir -p' the mount
> point directory! IT WORKS! Didn't I say I was missing something
> stupid? :-)
>
> Now to look up the syntax for putting it into fstab to make it
> permanent. THANK YOU AGAIN EVER SO MUCH!

Thank you, Steve. That may not have been for my benefit, but was what I was 
talking about.  Between the smiley and the word "Now" there is a nice big 
gap.  If you could break larger paragraphs up with more of those it would be 
very helpful.

Lisi



Re: Using bind mount

2016-01-13 Thread Jonathan Dowland
On Wed, Jan 13, 2016 at 04:38:12AM -0500, Steve Matzura wrote:
> Now to look up the syntax for putting it into fstab to make it
> permanent. THANK YOU AGAIN EVER SO MUCH!

The syntax is 
 /olddir /newdir none bind

You must put this after the /olddir (/mnt/nas) and /newdir (/home/steve)
mount entries, if there are any (if /home is separate from /), to ensure
that those mount points are resolved first. Or write systemd .mount unit
files and set up the dependencies between them explicitly (instead of
fstab entries)



Re: Using bind mount

2016-01-12 Thread Steve Matzura
Reco:

On Wed, 13 Jan 2016 00:21:19 +0300, you wrote:

>Please post the output of:
>
>strace mount -B /mnt/nas/doc /home/steve/doc

I *knew* I was missing something. I get 'command not found".



Re: Using bind mount

2016-01-12 Thread Steve Matzura
Gary:

>I just tried something similar with an NFS share and was able to do it. 
>My situation was I have ///mnt mounted in ~/mnt. I was then 
>able to (as root) mount -o bind ./mnt/archives ./mnt1 while in my normal 
>~ folder.
>
>You could also try mounting the share locally or sharing the "doc" 
>folder in addition to sharing the entire volume.

Everything I try yields either the `is not a special device' or 'mount
point' error as previously described whether I choose the mount point
itself (e.g. /mnt/nas) or any directory (e.g. /mnt/nas/doc,
/mnt/nas/doc/household, etc.).



Re: Using bind mount

2016-01-12 Thread Steve Matzura
On Tue, 12 Jan 2016 18:12:11 -0300, Daniel wrote:

>M... I used the following syntax:
>
>mount --bind /mnt/nas/doc /home/steve/doc
>
>
>That works for you?

Sorry ...

mount: mount point docs does not exist



Re: Using bind mount

2016-01-12 Thread Steve Matzura
On Tue, 12 Jan 2016 22:56:28 +0100, you wrote:

>Le 12/01/2016 22:12, Daniel Bareiro a écrit :
>
>> mount --bind /mnt/nas/doc /home/steve/doc
>>
>>
>> That works for you?
>
>I use such syntax failry often
>
>jdd

Even on a virtual filesystem like a Windows share or NAS volume? Am I
maybe missing a special support package perhaps?



Re: Using bind mount

2016-01-12 Thread Reco
Hi.

On Tue, 12 Jan 2016 22:30:03 -0500
Steve Matzura  wrote:

> Reco:
> 
> On Wed, 13 Jan 2016 00:21:19 +0300, you wrote:
> 
> >Please post the output of:
> >
> >strace mount -B /mnt/nas/doc /home/steve/doc
> 
> I *knew* I was missing something. I get 'command not found". 

strace is used for tracing system calls, it does not influence your
problem per se. Please install it first, run mount via strace second.

Reco



Re: Using bind mount

2016-01-12 Thread Gary Dale

On 12/01/16 10:23 PM, Steve Matzura wrote:

On Tue, 12 Jan 2016 18:12:11 -0300, Daniel wrote:


M... I used the following syntax:

mount --bind /mnt/nas/doc /home/steve/doc


That works for you?

Sorry ...

mount: mount point docs does not exist


That error would indicate that /home/steve/doc doesn't exist.



Re: Using bind mount

2016-01-12 Thread Gary Dale

On 12/01/16 10:41 PM, Steve Matzura wrote:

Gary:


I just tried something similar with an NFS share and was able to do it.
My situation was I have ///mnt mounted in ~/mnt. I was then
able to (as root) mount -o bind ./mnt/archives ./mnt1 while in my normal
~ folder.

You could also try mounting the share locally or sharing the "doc"
folder in addition to sharing the entire volume.

Everything I try yields either the `is not a special device' or 'mount
point' error as previously described whether I choose the mount point
itself (e.g. /mnt/nas) or any directory (e.g. /mnt/nas/doc,
/mnt/nas/doc/household, etc.).

Interesting. Can you try sharing the volume using NSF instead of CIFS? 
It may be a problem with CIFS.


Another possibility that occurs to me is one of permissions. Usually I 
find with CIFS shares, I have to specify a username since root is rarely 
a valid Windows user.




Using bind mount

2016-01-12 Thread Steve Matzura
I am trying to get around the restriction of symlinks not resolving in
FTP when the account is DefaultRoot'ed and CHRoot'ed. I mounted a NAS
volume, some directories of which I want to appear as being rooted
elsewhere, thus:

# mkdir -p /mnt/nas
# mount.cifs //ds1/vol1 /mnt/nas -o [various options]

When I 'ls -l /mnt/nas', I see all the directories at the top level of
//ds1/vol1. Fine.

Now, according to everything I've read about bind mount, I should be
able to:

# mount -o bind /mnt/nas/doc /home/steve/doc

where `doc' is a directory on /mnt/nas as described above, and
`/home/steve/doc' is where I want it to appear in my own directory
structure. Therefore, if I FTP into the steve account, while I cannot
escape up the tree past /home/steve, the path /home/steve/doc should
have been able to be created, and I should be able to access it in the
normal FTP way. However, the above mount with bind command yields:

mount special device /mnt/nas/doc does not exist

While that path exist but isn't a special device, the documentation
(mount manpages and
http://backdrift.org/how-to-use-bind-mounts-in-linux) says this should
work. What am I missing about mount with the bind option?



Re: Using bind mount

2016-01-12 Thread Daniel Bareiro
On 12/01/16 18:12, Daniel Bareiro wrote:

> Now I see why I used mount with bind instead of hard links as saying in
> a previous email :)

I'm sorry. I meant to symlinks.

Best regards,
Daniel



signature.asc
Description: OpenPGP digital signature


Re: Using bind mount

2016-01-12 Thread Reco
Hi.

On Tue, 12 Jan 2016 09:17:35 -0500
Steve Matzura <s...@noisynotes.com> wrote:

> I am trying to get around the restriction of symlinks not resolving in
> FTP when the account is DefaultRoot'ed and CHRoot'ed. I mounted a NAS
> volume, some directories of which I want to appear as being rooted
> elsewhere, thus:
> 
> # mkdir -p /mnt/nas
> # mount.cifs //ds1/vol1 /mnt/nas -o [various options]
> 
> When I 'ls -l /mnt/nas', I see all the directories at the top level of
> //ds1/vol1. Fine.
> 
> Now, according to everything I've read about bind mount, I should be
> able to:
> 
> # mount -o bind /mnt/nas/doc /home/steve/doc
> 
> where `doc' is a directory on /mnt/nas as described above, and
> `/home/steve/doc' is where I want it to appear in my own directory
> structure. Therefore, if I FTP into the steve account, while I cannot
> escape up the tree past /home/steve, the path /home/steve/doc should
> have been able to be created, and I should be able to access it in the
> normal FTP way. However, the above mount with bind command yields:
> 
> mount special device /mnt/nas/doc does not exist

Please post the output of:

strace mount -B /mnt/nas/doc /home/steve/doc

Reco



Re: Using bind mount

2016-01-12 Thread jdd

Le 12/01/2016 22:12, Daniel Bareiro a écrit :


mount --bind /mnt/nas/doc /home/steve/doc


That works for you?


I use such syntax failry often

jdd



Re: Using bind mount

2016-01-12 Thread Daniel Bareiro
Hi, Steve.

On 12/01/16 11:17, Steve Matzura wrote:

> I am trying to get around the restriction of symlinks not resolving in
> FTP when the account is DefaultRoot'ed and CHRoot'ed.

Now I see why I used mount with bind instead of hard links as saying in
a previous email :)

> I mounted a NAS volume, some directories of which I want to appear as 
> being rooted elsewhere, thus:
> 
> # mkdir -p /mnt/nas
> # mount.cifs //ds1/vol1 /mnt/nas -o [various options]
> 
> When I 'ls -l /mnt/nas', I see all the directories at the top level of
> //ds1/vol1. Fine.

Good.

> Now, according to everything I've read about bind mount, I should be
> able to:
> 
> # mount -o bind /mnt/nas/doc /home/steve/doc
> 
> where `doc' is a directory on /mnt/nas as described above, and
> `/home/steve/doc' is where I want it to appear in my own directory
> structure. Therefore, if I FTP into the steve account, while I cannot
> escape up the tree past /home/steve, the path /home/steve/doc should
> have been able to be created, and I should be able to access it in the
> normal FTP way. However, the above mount with bind command yields:
> 
> mount special device /mnt/nas/doc does not exist

M... I used the following syntax:

mount --bind /mnt/nas/doc /home/steve/doc


That works for you?

Best regards,
Daniel



signature.asc
Description: OpenPGP digital signature


Re: Using bind mount

2016-01-12 Thread Gary Dale

On 12/01/16 09:17 AM, Steve Matzura wrote:

I am trying to get around the restriction of symlinks not resolving in
FTP when the account is DefaultRoot'ed and CHRoot'ed. I mounted a NAS
volume, some directories of which I want to appear as being rooted
elsewhere, thus:

# mkdir -p /mnt/nas
# mount.cifs //ds1/vol1 /mnt/nas -o [various options]

When I 'ls -l /mnt/nas', I see all the directories at the top level of
//ds1/vol1. Fine.

Now, according to everything I've read about bind mount, I should be
able to:

# mount -o bind /mnt/nas/doc /home/steve/doc

where `doc' is a directory on /mnt/nas as described above, and
`/home/steve/doc' is where I want it to appear in my own directory
structure. Therefore, if I FTP into the steve account, while I cannot
escape up the tree past /home/steve, the path /home/steve/doc should
have been able to be created, and I should be able to access it in the
normal FTP way. However, the above mount with bind command yields:

mount special device /mnt/nas/doc does not exist

While that path exist but isn't a special device, the documentation
(mount manpages and
http://backdrift.org/how-to-use-bind-mounts-in-linux) says this should
work. What am I missing about mount with the bind option?

I just tried something similar with an NFS share and was able to do it. 
My situation was I have ///mnt mounted in ~/mnt. I was then 
able to (as root) mount -o bind ./mnt/archives ./mnt1 while in my normal 
~ folder.


You could also try mounting the share locally or sharing the "doc" 
folder in addition to sharing the entire volume.




Re: bind mount

2014-12-24 Thread peter
From: The Wanderer wande...@fastmail.fm
Date: Tue, 23 Dec 2014 13:01:37 -0500
 I think what Andrei meant is asking what you're trying to accomplish by
 bind-mounting the one directory on the other as an ordinary user. That
 is, what is the problem to which you are attempting to apply this as a
 solution?

Oops; sorry.  An ext filesystem allows a link.  A FAT f.s. doesn't but a 
directory 
where the target is bind mounted is a useable substitute.  Inconvenient 
that the bind mount requires root. 

Regards, ... Peter E.

-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +1 360 639 0202   http://carnot.yi.org/   Bcc: peter at easthope. ca


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/E1Y3neE-pp-PI@armada.invalid



Re: bind mount

2014-12-24 Thread peter
From: The Wanderer wande...@fastmail.fm
Date: Tue, 23 Dec 2014 13:01:37 -0500
 I think what Andrei meant is asking what you're trying to accomplish by
 bind-mounting the one directory on the other as an ordinary user. That
 is, what is the problem to which you are attempting to apply this as a
 solution?

Oops; sorry.  An ext filesystem allows a link.  A FAT f.s. doesn't but a 
directory 
where the target is bind mounted is a useable substitute.  Inconvenient 
that the bind mount requires root. 

Regards, ... Peter E.

-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +1 360 639 0202   http://carnot.yi.org/   Bcc: peter at easthope. ca


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/E1Y3d6r-000140-Tg@armada.invalid



Re: bind mount

2014-12-23 Thread The Wanderer
On 12/23/2014 at 11:38 AM, pe...@easthope.ca wrote:

 From: Andrei POPESCU andreimpope...@gmail.com Date: Mon, 22 Dec
 2014 22:51:47 +0200

 What are you trying to accomplish?
 
 Mount a directory on a directory.  Scroll down to --bind.
 http://linux.die.net/man/8/mount

I think what Andrei meant is asking what you're trying to accomplish by
bind-mounting the one directory on the other as an ordinary user. That
is, what is the problem to which you are attempting to apply this as a
solution?

 Seems odd that ordinary mounts are available to users but bind is
 only for root.

Agreed that it does seem odd, but I can imagine that there could easily
be reasons for limiting it that way.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: bind mount

2014-12-23 Thread peter
From: Andrei POPESCU andreimpope...@gmail.com
Date: Mon, 22 Dec 2014 22:51:47 +0200
 What are you trying to accomplish?

Mount a directory on a directory.  Scroll down to --bind.
http://linux.die.net/man/8/mount

Seems odd that ordinary mounts are available to users but bind is 
only for root.

Thanks,   ... P.
-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +1 360 639 0202   http://carnot.yi.org/   Bcc: peter at easthope. ca


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/E1Y3STv-qp-SW@armada.invalid



bind mount

2014-12-22 Thread peter
This line in /etc/fstab allows bind mounting, except that 
the user option has no effect.
/usr/bin/aos /home/usr/.aoshome none bind,user

There is no simple way to allow a user?

Thanks,... Peter E.




-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +1 360 639 0202   http://carnot.yi.org/   Bcc: peter at easthope. ca


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/E1Y38G3-000249-2C@armada.invalid



Re: bind mount

2014-12-22 Thread Andrei POPESCU
On Lu, 22 dec 14, 11:03:07, pe...@easthope.ca wrote:
 This line in /etc/fstab allows bind mounting, except that 
 the user option has no effect.
 /usr/bin/aos /home/usr/.aoshome none bind,user
 
 There is no simple way to allow a user?

What are you trying to accomplish?

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: Setting [u|f]mask on a bind mount

2007-09-05 Thread Glen Pfeiffer
On 09/01/2007 01:00 PM, Bob Proulx wrote:
 Glen Pfeiffer wrote:
 I tried mounting a directory like so:

   mount --bind -o umask=0117 /home/files /home/glen/files

 What I am shooting for, is that all files created in 
 /home/glen/files will have the permissions 660.
 
 But those are the same files as files in another directory, right?
 The files can't have different permissions in different places.
 
 Or are you simply trying to make the files when created have a 
 specific permission?  If so then umask is the only way.

Yes, I am trying to change the default permissions of *newly 
created* files. That is why I tried umask, but it doesn't work 
with a bind mount. 

 You would have to change the original mount point options in 
 order to do this.  The directory would need to be on its own 
 filesystem.  You could create a filesystem specific for this 
 purpose.  Then you could bind mount it anywhere else fine.

I can't believe I didn't think of this earlier, but my /home is 
on a separate partition. I changed the umask in /etc/fstab - but 
that didn't work either. I got errors about a bad superblock when 
mounting.


 This is a good place for a plug for LVM because then a new 
 mount point could be created very easily.

I will consider that if I ever rebuild.
 

 Perhaps saying a little more about the overall problem that you 
 are trying to solve will spark an idea from someone on the 
 mailing list.

My reasons for this stem from paranoia. I see no reason to allow 
the world read access by default. Since it is on my home network 
it is overkill, but I like to prepare for the unknown. For 
example: I will have house guests that I want to allow use of my 
computers. But I don't want them to have read access to the 
shared family documents. So I want documents created within 
that directory to have permissions of 660. I have set the sticky 
group bit, so created files are owned by the family group.

-- 
Glen 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Setting [u|f]mask on a bind mount

2007-09-01 Thread Bob Proulx
Glen Pfeiffer wrote:
 I tried mounting a directory like so:
 
   mount --bind -o umask=0117 /home/files /home/glen/files
 
 What I am shooting for, is that all files created in 
 /home/glen/files will have the permissions 660.

But those are the same files as files in another directory, right?
The files can't have different permissions in different places.

Or are you simply trying to make the files when created have a
specific permission?  If so then umask is the only way.

 I have also tried this with no luck:
 
   mount --bind -o fmask=0117 /home/files /home/glen/files
 
 Then I read the man page:
 
   Note that the filesystem mount options will remain the same  as  
   those on  the original mount point, and cannot be changed by 
   passing the -o option along with --bind/--rbind.
 
 I take that to mean that I cannot change the umask when mounting 
 with --bind.

Correct.

 Any ideas on how to achieve my goal?

You would have to change the original mount point options in order to
do this.  The directory would need to be on its own filesystem.  You
could create a filesystem specific for this purpose.  Then you could
bind mount it anywhere else fine.

This is a good place for a plug for LVM because then a new mount point
could be created very easily.

Perhaps saying a little more about the overall problem that you are
trying to solve will spark an idea from someone on the mailing list.

Bob


signature.asc
Description: Digital signature


Setting [u|f]mask on a bind mount

2007-08-30 Thread Glen Pfeiffer
I tried mounting a directory like so:

  mount --bind -o umask=0117 /home/files /home/glen/files

What I am shooting for, is that all files created in 
/home/glen/files will have the permissions 660. But the above 
command seems to have no effect on permissions of created files.

I have also tried this with no luck:

  mount --bind -o fmask=0117 /home/files /home/glen/files

Then I read the man page:

  Note that the filesystem mount options will remain the same  as  
  those on  the original mount point, and cannot be changed by 
  passing the -o option along with --bind/--rbind.

I take that to mean that I cannot change the umask when mounting 
with --bind.

Any ideas on how to achieve my goal?

Thanks in advance!

-- 
Glen 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]