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 15:50:42
Message-Id: 201012151649.11231.joost@antarean.org
In Reply to: Re: [gentoo-user] Weird (?) permission problem... by meino.cramer@gmx.de
1 On Wednesday 15 December 2010 16:20:32 meino.cramer@×××.de wrote:
2 > J. Roeleveld <joost@××××××××.org> [10-12-15 16:00]:
3 > > On Wednesday 15 December 2010 15:41:25 meino.cramer@×××.de wrote:
4 > > > Neil Bothwick <neil@××××××××××.uk> [10-12-15 15:40]:
5 > > > > On Wed, 15 Dec 2010 15:13:31 +0100, meino.cramer@×××.de wrote:
6 > > > > > And this happens to any mountpoint I mount that device on
7 > > > > > regardless of its perm settings before the mount
8 > > > >
9 > > > > With nothing mounted on it, the mount point's permission are those of
10 > > > > the directory. As soon as you mount something on it, the mount point
11 > > > > has the ownership and permissions of the root of the filesystem that
12 > > > > you just mounted there. In the same way that the contents of the
13 > > > > filesystem appear at the mount point, so does the metadata, so
14 > > > > change the permissions after mounting.
15 > > >
16 > > > ...unfortunately (as root)
17 > > >
18 > > > cd /tmp
19 > > > chmod 1777 .
20 > > >
21 > > > does not help...
22 > >
23 > > I don't think you can change the permissions like that.
24 > > Try:
25 > > cd /
26 > > chmod 1777 /tmp
27 > >
28 > > To remove the "s"-bits, try the following:
29 > > cd /
30 > > chmod u-s /tmp
31 > > chmod g-s /tmp
32 > >
33 > > This, however, needs to be done while the "/tmp" filesystem is mounted.
34 > > Otherwise you are only changing the mount-point (directory) not the
35 > > actual filesystem.
36 > >
37 > > --
38 > > Joost
39 >
40 > interesting...
41 > Until now, I thought '.' is equal to the directory I am in.
42
43 That's true, but not entirely :)
44 I don't think "chmod" is supposed to work that way :)
45
46 > Ok, times is changing, me too, but as it seems not fast enough ;)
47
48 Times are changing, so are people, but there are too many changes occuring for
49 people to pick the "right" changes :)
50
51 > Thanks a lot... thats fix it!
52
53 You're welcome :)
54
55 --
56 Joost