Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2015 16:44:26 -0800
From:      Michael Sierchio <kudzu@tenebras.com>
To:        Jungle Boogie <jungleboogie0@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Unix copy to different groups help request
Message-ID:  <CAHu1Y73qVNHyt1Cpx-tsDiCxe6mxzhR2J4857a2dWsH4JTXzqw@mail.gmail.com>
In-Reply-To: <54B07564.4000504@gmail.com>
References:  <54B07564.4000504@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
man chown
especially '-R'

sudo chown -R www:www /usr/local/www

On Fri, Jan 9, 2015 at 4:42 PM, Jungle Boogie <jungleboogie0@gmail.com>
wrote:

> Hello Friends,
>
> This just in: computers always do what you tell them to do!
>
> Now you great people: please teach me so I can tell my computer what I'm
> trying to do.
>
> Objective: cp file to /usr/local/www/data for lighttpd without using sudo
> all the time.
>
> Problem: It seems like I have the right group everywhere: file, /usr/local
> /usr/local/www and I'm in that group, too.
>
>
> User: jboogie
> % id
> uid=1007(jboogie) gid=1008(jboogie) groups=1008(jboogie),0(wheel),
> 5(operator),80(www),1002(usb)
>
>
> % ls -l /usr/local/
> drwxr-xr-x   4 root  wheel       512 Jan  5 17:19 www
>
> % sudo chown www:www /usr/local/www
>
> % ls -l /usr/local
> drwxr-xr-x   4 www   www         512 Jan  5 17:19 www
>
> % ls -l /usr/local/www/
> total 8
> drwxr-xr-x  2 www   www    512 Jan  9 14:54 data
>
>
>
> % ls -l vanmorrison.txt
> -rw-r--r--  1 jboogie  jboogie  144 Jan  9 16:21 vanmorrison.txt
>
> % cp vanmorrison.txt /usr/local/www/data
> cp: /usr/local/www/data/vanmorrison.txt: Permission denied
>
> % sudo chgrp www vanmorrison.txt
>
> % ls -l
> total 4
> -rw-r--r--  1 jboogie  www  144 Jan  9 16:21 vanmorrison.txt
>
> % cp vanmorrison.txt /usr/local/www/data
> cp: /usr/local/www/data/vanmorrison.txt: Permission denied
>
> % chmod a+rw vanmorrison.txt
> lyander-fbsd% ls -l
> total 4
> -rw-rw-rw-  1 jboogie  www  144 Jan  9 16:21 vanmorrison.txt
>
> % cp vanmorrison.txt /usr/local/www/data
> cp: /usr/local/www/data/vanmorrison.txt: Permission denied
>
>
> --
> inum: 883510009027723
> sip: jungleboogie@sip2sip.info
> xmpp: jungle-boogie@jit.si
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAHu1Y73qVNHyt1Cpx-tsDiCxe6mxzhR2J4857a2dWsH4JTXzqw>