看板 DFBSD_bugs 關於我們 聯絡資訊
On Sun, 21 Nov 2004, Matthew Dillon wrote: > :Each device in the 'std' group was created with perms of 600... > > I haven't been able to reproduce this at all. Are you using a > GCC-2.95.x or GCC-3.x based world/kernel? If you are using 3.x, > try a 2.95.x kernel. This was my 2.95 box. So far I haven't seen it on the 3.4, but I haven't really tried much, either. > Also, if you are using a non-default locale try clearing that. I'm using the default locale. > : ... MAKDEV did actually change the perms on *each* device > :to 600 after creating it as 644. Does this sound right? > MAKEDEV is a script, just vi it :-). Yes, MAKEDEV chmod's right > after creating the node with mknod. Heh, the snippets of code I posted were taken from the MAKEDEV script. I wasn't clear enough. The point I was trying to make was that the chmod command following each mknod *did* work, but it must have been called with the same (0600) argument each time, which is clearly not what the MAKEDEV script calls for. I've been trying to dream up reasons why the arguments passed to each newly forked shell might not be updated properly...