Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2003 09:37:10 -0500 (EST)
From:      Tuc <tuc@ttsg.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Wrong group on touch
Message-ID:  <200302201437.h1KEbAa1000536@himinbjorg.ttsg.com>

next in thread | raw e-mail | index | archive | help
Hi,

	Having an oddity in /tmp on my 4.7-STABLE....When I create files in
/tmp, they have the wrong group :

himinbjorg% id
uid=1000(tuc) gid=1000(tuc) groups=1000(tuc), 0(wheel)
himinbjorg% ls -l /tmp/tuc
ls: /tmp/tuc: No such file or directory
himinbjorg% touch /tmp/tuc
himinbjorg% ls -l /tmp/tuc
-rw-r--r--  1 tuc  wheel  0 Feb 20 09:35 /tmp/tuc
himinbjorg% grep tuc /etc/passwd
tuc:*:1000:1000:Tuc:/usr/home/tuc:/usr/local/bin/zsh
himinbjorg% grep tuc /etc/group
wheel:*:0:root,tuc
tuc:*:1000:


	Ok, so maybe I am in the group, so lets pick another user :

himinbjorg% id
uid=9000(cgitest) gid=9000(cgitest) groups=9000(cgitest)
himinbjorg% ls -l /tmp/cgitest
ls: /tmp/cgitest: No such file or directory
himinbjorg% touch /tmp/cgitest
himinbjorg% ls -l /tmp/cgitest
-rw-r--r--  1 cgitest  wheel  0 Feb 20 09:36 /tmp/cgitest
himinbjorg% grep cgitest /etc/passwd
cgitest:*:9000:9000:Tuc:/usr/home/tuc/cgitest/public_html:/usr/local/bin/zsh
himinbjorg% grep cgitest /etc/group
cgitest:*:9000:

	/tmp looks like :

himinbjorg% ls -ld /tmp
drwxrwxrwt  7 root  wheel  1024 Feb 20 09:36 /tmp


		Thanks, Tuc/TTSG Internet Services, Inc.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302201437.h1KEbAa1000536>