From owner-freebsd-questions@FreeBSD.ORG Sat Jan 10 00:44:34 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D4CAEB7 for ; Sat, 10 Jan 2015 00:44:34 +0000 (UTC) Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 271D0773 for ; Sat, 10 Jan 2015 00:44:33 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id wp18so15714411obc.1 for ; Fri, 09 Jan 2015 16:44:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=c+wsqlnh5fvD5tCAVRJNVrwdI0rbcCMu9BKRYpCgPHk=; b=XmzG61xZvBQCi56WzpiiXJ6CEbQJ8WUUPaq4FaTQjT51LZyt1naZ0fXmS6g6cJR8tI tlW/dbdrzJ7iZxQDjqZs2XTfOgC+sNhNA1hsdEJTmT1TtR0H3ozUou1f7vgIGU5NWVRh 5h7LGIfL4HuvOH3YkzzJTFzWVRk9GUpmn8KLPPAW0u+T0MrO5D6v38iQGJaGe/Z0OCtz 2DlRsL5SknMCgcSQySJJL1aRoEeW6uKzZrxrjoHSpOjWGxAGTjk7T4yyg+REFj1GxXbH AY/K7y8xGwZT23d9vQpvoc1qrnHgknPGhrJqnmEcNWNi/CYavr95hHLnDgLbA0FAfkT5 5aHQ== X-Gm-Message-State: ALoCoQmyNzdIqDnBGIH/KM87ZFqjea41Uo5BkBU23W3M20nmoiUGT1Y3komMq0OQ7Sa09Y6AcmfK MIME-Version: 1.0 X-Received: by 10.202.73.6 with SMTP id w6mr10481540oia.37.1420850666694; Fri, 09 Jan 2015 16:44:26 -0800 (PST) Received: by 10.60.172.78 with HTTP; Fri, 9 Jan 2015 16:44:26 -0800 (PST) In-Reply-To: <54B07564.4000504@gmail.com> References: <54B07564.4000504@gmail.com> Date: Fri, 9 Jan 2015 16:44:26 -0800 Message-ID: Subject: Re: Unix copy to different groups help request From: Michael Sierchio To: Jungle Boogie Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2015 00:44:34 -0000 man chown especially '-R' sudo chown -R www:www /usr/local/www On Fri, Jan 9, 2015 at 4:42 PM, Jungle Boogie 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" >