Permission problems - http is 0775, (root:http), I am in http -- still can't write??

View: New views
7 Messages — Rating Filter:   Alert me  

Permission problems - http is 0775, (root:http), I am in http -- still can't write??

by David C. Rankin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Guys,

I have run into a permission problem I can't understand. I need write access
to the webserver on my laptop (that's where the developement happens). I have
always just made myself a member of the webserver group and give the group
write access to the document root (some applications require it). Today,
setting up the webserver, I did the same thing only to be met with a
permission denied message when I attempted a copy -- Huh?

Here are the details:

16:59 alchemy:/srv/http> l
total 8
drwxrwxr-x 2 root http 4096 2009-10-31 22:53 .
drwxr-xr-x 4 root root 4096 2009-10-31 22:53 ..
16:59 alchemy:/srv/http> grep http /etc/group
http::33:david
16:59 alchemy:/srv/http> touch testfile
touch: cannot touch `testfile': Permission denied

This is in konsole in kde4. I can't understand why the touch failed (I could
just be confused at the moment as well). I am a member of the http group
(added with gpasswd -a david http, not just edited like usual), the http group
has write permission to the http directory. But, when I try to write to the
http directory --> I get the error.

Can anyone see the error in my logic? (diplomatically, of course) What's the
trick?


--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

Re: Permission problems - http is 0775, (root:http), I am in http -- still can't write??

by Daenyth Blank :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 6, 2009 at 18:08, David C. Rankin
<drankinatty@...> wrote:
> Can anyone see the error in my logic? (diplomatically, of course) What's the
> trick?

Did you log out and then log back in for the group changes to take effect?

Re: Permission problems - http is 0775, (root:http), I am in http -- still can't write??

by Alessandro Doro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 06, 2009 at 05:08:02PM -0600, David C. Rankin wrote:
> 16:59 alchemy:/srv/http> grep http /etc/group
> http::33:david

And what is the output of:
$ groups
?

Don't know if "gpasswd -a" is failing, I use:
# usermod -a -G groupname username

Re: Permission problems - http is 0775, (root:http), I am in http -- still can't write??

by Priit Kivisoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 7, 2009 at 1:20 AM, Daenyth Blank
<daenyth+arch@...<daenyth%2Barch@...>
> wrote:

> On Fri, Nov 6, 2009 at 18:08, David C. Rankin
> <drankinatty@...> wrote:
> > Can anyone see the error in my logic? (diplomatically, of course) What's
> the
> > trick?
>
> Did you log out and then log back in for the group changes to take effect?
>

Another possibility is use newgrp $groupname if you don't want to log out,
it works for one terminal session.

Priit
--
Priit Kivisoo

Re: Permission problems - http is 0775, (root:http), I am in http -- still can't write??

by David C. Rankin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 06 November 2009 17:22:32 and regarding:

> On Fri, Nov 06, 2009 at 05:08:02PM -0600, David C. Rankin wrote:
> > 16:59 alchemy:/srv/http> grep http /etc/group
> > http::33:david
>
> And what is the output of:
> $ groups
> ?
>
> Don't know if "gpasswd -a" is failing, I use:
> # usermod -a -G groupname username
>

It's there:

06:44 alchemy:~> groups
... lp wheel uucp http ...

It got to the point I just had to chown -R me:http /srv/http, I had to get the
webserver up. I don't know what the issue was, but even with group write
permissions properly set, I couldn't.

--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

Re: Permission problems - http is 0775, (root:http), I am in http -- still can't write??

by David C. Rankin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 06 November 2009 17:20:09 and regarding:
> On Fri, Nov 6, 2009 at 18:08, David C. Rankin
>
> <drankinatty@...> wrote:
> > Can anyone see the error in my logic? (diplomatically, of course) What's
> > the trick?
>
> Did you log out and then log back in for the group changes to take effect?
>

sheepishly -- Uh... Log out?  I think we have an answer. Why log out? I
changed group permission hundreds of times without having to log out. What's
the catch here?

--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

Re: Permission problems - http is 0775, (root:http), I am in http -- still can't write??

by Fons Adriaensen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 11, 2009 at 08:10:07AM -0600, David C. Rankin wrote:

> sheepishly -- Uh... Log out?  I think we have an answer. Why log out? I
> changed group permission hundreds of times without having to log out. What's
> the catch here?

Two different things:

- Changing group permissions, takes immediate effect.
- Changing group membership, requires logout/login.

Ciao,

--
FA

Io lo dico sempre: l'Italia รจ troppo stretta e lunga.