Apparently, though unproven, at 17:20 on Wednesday 15 December 2010, 
meino.cra...@gmx.de did opine thusly:

> J. Roeleveld <jo...@antarean.org> [10-12-15 16:00]:
> > On Wednesday 15 December 2010 15:41:25 meino.cra...@gmx.de wrote:
> > > Neil Bothwick <n...@digimed.co.uk> [10-12-15 15:40]:
> > > > On Wed, 15 Dec 2010 15:13:31 +0100, meino.cra...@gmx.de wrote:
> > > > > And this happens to any mountpoint I mount that device on
> > > > > regardless of its perm settings before the mount
> > > > 
> > > > With nothing mounted on it, the mount point's permission are those of
> > > > the directory. As soon as you mount something on it, the mount point
> > > > has the ownership and permissions of the root of the filesystem that
> > > > you just mounted there. In  the same way that the contents of the
> > > > filesystem appear at the mount point, so does the metadata, so
> > > > change the permissions after mounting.
> > > 
> > > ...unfortunately (as root)
> > > 
> > >     cd /tmp
> > >     chmod 1777 .
> > > 
> > > does not help...
> > 
> > I don't think you can change the permissions like that.
> > Try:
> > cd /
> > chmod 1777 /tmp
> > 
> > To remove the "s"-bits, try the following:
> > cd /
> > chmod u-s /tmp
> > chmod g-s /tmp
> > 
> > This, however, needs to be done while the "/tmp" filesystem is mounted.
> > Otherwise you are only changing the mount-point (directory) not the
> > actual filesystem.
> > 
> > --
> > Joost
> 
> interesting...
> Until now, I thought '.' is equal to the directory I am in.

Usually it is, this is a special case

Every other action you could do with it resolves to the same thing no matter 
what point of view you take. 

chmod/chown changes the filesystem or mount point, which are different things. 
So there's two command interpretations. It's all quite logical once you've 
figured it out but even then most of us still never remember which is which...




> 
> Ok, times is changing, me too, but as it seems not fast enough ;)
> 
> Thanks a lot... thats fix it!
> 
> Best regards,
> mcc

-- 
alan dot mckinnon at gmail dot com

Reply via email to