Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Weird (?) permission problem...
Date: Wed, 15 Dec 2010 14:55:13
Message-Id: 201012151553.32029.joost@antarean.org
In Reply to: Re: [gentoo-user] Weird (?) permission problem... by meino.cramer@gmx.de
1 On Wednesday 15 December 2010 15:41:25 meino.cramer@×××.de wrote:
2 > Neil Bothwick <neil@××××××××××.uk> [10-12-15 15:40]:
3 > > On Wed, 15 Dec 2010 15:13:31 +0100, meino.cramer@×××.de wrote:
4 > > > And this happens to any mountpoint I mount that device on regardless
5 > > > of its perm settings before the mount
6 > >
7 > > With nothing mounted on it, the mount point's permission are those of the
8 > > directory. As soon as you mount something on it, the mount point has the
9 > > ownership and permissions of the root of the filesystem that you just
10 > > mounted there. In the same way that the contents of the filesystem
11 > > appear at the mount point, so does the metadata, so change the
12 > > permissions after mounting.
13 >
14 > ...unfortunately (as root)
15 >
16 > cd /tmp
17 > chmod 1777 .
18 >
19 > does not help...
20
21 I don't think you can change the permissions like that.
22 Try:
23 cd /
24 chmod 1777 /tmp
25
26 To remove the "s"-bits, try the following:
27 cd /
28 chmod u-s /tmp
29 chmod g-s /tmp
30
31 This, however, needs to be done while the "/tmp" filesystem is mounted.
32 Otherwise you are only changing the mount-point (directory) not the actual
33 filesystem.
34
35 --
36 Joost

Replies

Subject Author
Re: [gentoo-user] Weird (?) permission problem... meino.cramer@×××.de