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>

index | next in thread | raw e-mail

Hello,

I wanted to create a shared directory writable by all users. When 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 "Share" directory. However, when I re-created the directory owned by a special-purpose "Share" user, I ran into the  same problem again.

$ cd
$ pwd
/home/james
$ cd /home/Share
$ ls -la
total 4
drwxrwxr-x  2 root  users  512 Nov 14 09:39 .
drwxr-xr-x  5 root  wheel  512 Nov 14 09:39 ..
$ grep users /etc/group
users:*:100:james,backup
$ cat > test.txt
What? now it worked?
$ ls
test.txt
$ rm test.txt

***After creating a special "Share" user***

$ cd /home/Share
$ ls -la
total 4
drwxrwxr-x  2 Share  Share  512 Nov 17 21:04 .
drwxr-xr-x  5 root   wheel  512 Nov 17 21:04 ..
$ cat > test.txt
cannot create test.txt: Permission denied
$ grep Share /etc/group
Share:*:1003:james,backup
$

Incidentally, 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 only export users and groups in the range of 1001-2000.

Regards,

James Phillips

PS: the first time, I made the mistake of adding whitespace in /etc/group (daily run checks this somehow)
Is a blank line required at the end of the file?
PPS: Tried adding blank line: no effect.



      __________________________________________________________________
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/


help

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