Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 23:13:11 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        James Phillips <anti_spam256@yahoo.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Do permissions take time to take effect?
Message-ID:  <6201873e0911172113l304920acg531fc50fac173e3d@mail.gmail.com>
In-Reply-To: <727196.65984.qm@web65510.mail.ac4.yahoo.com>
References:  <727196.65984.qm@web65510.mail.ac4.yahoo.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tue, Nov 17, 2009 at 10:49 PM, James Phillips <anti_spam256@yahoo.ca>wrote:

> 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.
>
>
Have you tried the handbook?

http://www.freebsd.org/doc/en/books/handbook/network-nis.html


-- 
Adam Vande More



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?6201873e0911172113l304920acg531fc50fac173e3d>