Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Cc: meino.cramer@×××.de
Subject: Re: [gentoo-user] Weird (?) permission problem...
Date: Wed, 15 Dec 2010 14:32:20
Message-Id: 201012151631.29904.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] Weird (?) permission problem... by meino.cramer@gmx.de
1 Apparently, though unproven, at 16:13 on Wednesday 15 December 2010,
2 meino.cramer@×××.de did opine thusly:
3
4 > Hi,
5 >
6 > my /tmp has the permissions set to 1777 . And it is the mountpoint for
7 > an extra partitions holding the stuff of '/tmp/'
8 >
9 >
10 > When booting into single-user mode and unmounting /tmp and doing
11 > a
12 >
13 > ls -ld /tmp
14 >
15 > it shows
16 >
17 > drwxrwxrwt 45 root root 61440 2010-12-15 15:07 /tmp
18 >
19 > BUT
20 >
21 > as soon as I mount the device on /tmp and doing the same ls -ld
22 > again it shows
23 >
24 >
25 > drwsrwsrwt 45 root root 61440 2010-12-15 15:07 /tm
26 >
27 >
28 > That looks not ok to me.
29 >
30 > /etc/fstab has an entry which "options" field is set to "default"
31 >
32 > And this happens to any mountpoint I mount that device on regardless
33 > of its perm settings before the mount
34 >
35 >
36 > What is the reason for this?
37
38 What filesystem type?
39
40 You probably have some defaults set that make it suid/sgid, but these things
41 are filesystem-dependant and for that we need to know the type
42
43
44 --
45 alan dot mckinnon at gmail dot com