Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 20:49:19 -0800 (PST)
From:      James Phillips <anti_spam256@yahoo.ca>
To:        freebsd-questions@freebsd.org
Subject:   Do permissions take time to take effect?
Message-ID:  <727196.65984.qm@web65510.mail.ac4.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hello,=0A=0AI wanted to create a shared directory writable by all users. Wh=
en it initially failed, I assumed there may be a blanket ban on writing to =
directories owned by root. Today, I was able to write to the root-owned "Sh=
are" directory. However, when I re-created the directory owned by a special=
-purpose "Share" user, I ran into the  same problem again.=0A=0A$ cd=0A$ pw=
d=0A/home/james=0A$ cd /home/Share=0A$ ls -la=0Atotal 4=0Adrwxrwxr-x  2 roo=
t  users  512 Nov 14 09:39 .=0Adrwxr-xr-x  5 root  wheel  512 Nov 14 09:39 =
..=0A$ grep users /etc/group=0Ausers:*:100:james,backup=0A$ cat > test.txt=
=0AWhat? now it worked?=0A$ ls=0Atest.txt=0A$ rm test.txt=0A=0A***After cre=
ating a special "Share" user***=0A=0A$ cd /home/Share=0A$ ls -la=0Atotal 4=
=0Adrwxrwxr-x  2 Share  Share  512 Nov 17 21:04 .=0Adrwxr-xr-x  5 root   wh=
eel  512 Nov 17 21:04 ..=0A$ cat > test.txt=0Acannot create test.txt: Permi=
ssion denied=0A$ grep Share /etc/group=0AShare:*:1003:james,backup=0A$=0A=
=0AIncidentally, I had another reason for creating a special-purpose "Share=
" user: I am exporting /home to Debian (Linux) clients. Since the "system" =
groups conflict with the Debian choices, I modified /var/yp/Makefile to onl=
y export users and groups in the range of 1001-2000.=0A=0ARegards,=0A=0AJam=
es Phillips=0A=0APS: the first time, I made the mistake of adding whitespac=
e in /etc/group (daily run checks this somehow)=0AIs a blank line required =
at the end of the file?=0APPS: Tried adding blank line: no effect.=0A=0A=0A=
=0A      __________________________________________________________________=
=0AMake your browsing faster, safer, and easier with the new Internet Explo=
rer=AE 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yah=
oo.com/ca/internetexplorer/



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