Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175886

Re: chgrp with user

From Xen <list@xenhideout.nl>
Newsgroups linux.debian.user
Subject Re: chgrp with user
Date 2016-12-23 01:20 +0100
Message-ID <sRlKy-82e-9@gated-at.bofh.it> (permalink)
References <sRfvs-3YW-37@gated-at.bofh.it> <sRgUz-4Xr-57@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Dan Ritter schreef op 22-12-2016 20:04:
> On Thu, Dec 22, 2016 at 06:24:59PM +0100, Xen wrote:
>> I am trying to get a webserver to run under my regular user, or at 
>> least to
>> have the website's files under control of my regular user, but the 
>> webserver
>> runs as www-data.
>> 
>> But it seems I cannot do chgrp as a user.
>> 
>> Is there any way to achieve this?
>> 
>> I mean I could add my user's group to the www-data user and I guess 
>> then I'd
>> have access but I don't really see how changing a file's group could 
>> be a
>> security risk. Maybe I should add myself to www-data instead?
> 
> Yes, add your regular user to the www-data group, then log out
> and come back in.
> 
> The web-server is a door in to your system. Limiting what it can
> see is preferable.

Aye, thanks.

It just took me a while to figure out I could add myself to that group 
instead, so I was concerned I would have to become root all the time in 
order to do that sort of stuff.

Life becomes a whole lot easier if you can do stuff with your regular 
user, which is why I am putting stuff in my user home directory in the 
first place, instead of some central location.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

chgrp with user Xen <list@xenhideout.nl> - 2016-12-22 18:40 +0100
  Re: chgrp with user Dan Ritter <dsr@randomstring.org> - 2016-12-22 20:10 +0100
    Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-23 01:20 +0100
      Re: chgrp with user Greg Wooledge <wooledg@eeg.ccf.org> - 2016-12-23 14:10 +0100
        Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-27 12:30 +0100
  Re: chgrp with user deloptes <deloptes@gmail.com> - 2016-12-23 00:50 +0100
    Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-23 01:20 +0100
      Re: chgrp with user Nicolas George <george@nsup.org> - 2016-12-23 09:40 +0100
        Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-27 13:30 +0100
          Re: chgrp with user Gene Heskett <gheskett@shentel.net> - 2016-12-27 16:00 +0100
            Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-27 16:40 +0100
              Re: chgrp with user deloptes <deloptes@gmail.com> - 2016-12-27 21:10 +0100
                Re: chgrp with user Greg Wooledge <wooledg@eeg.ccf.org> - 2016-12-27 22:50 +0100
                Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-27 23:00 +0100
                Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-27 23:20 +0100
                Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-28 13:40 +0100
                Re: chgrp with user deloptes <deloptes@gmail.com> - 2016-12-28 20:20 +0100
                Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-29 09:10 +0100
                Re: chgrp with user Xen <list@xenhideout.nl> - 2016-12-27 22:50 +0100
  Re: chgrp with user Andy Smith <andy@strugglers.net> - 2016-12-23 15:20 +0100

csiph-web