Koozali.org: home of the SME Server

signal-event ibay-modify question

Offline ElFroggio

  • *
  • 262
  • +0/-0
signal-event ibay-modify question
« on: November 24, 2014, 08:02:29 PM »
Hi,

When I do:

Code: [Select]
signal-event ibay-modify sritch.pel
if get: root:shared

Code: [Select]
[root@ethelbert html]# ls -alF
total 508
drwxrwsr-x 8 apache shared  4096 Nov 24 10:51 ./
drwxr-xr-x 6 root   root    4096 Oct 22 08:00 ../
-rw-rw-r-- 1 root   shared  3572 Nov 21 14:40 403.html
-rw-rw-r-- 1 root   shared  3572 Nov 21 14:40 404.html
-rw-rw-r-- 1 root   shared 11899 Nov 21 14:40 about-me.html
-rw-rw-r-- 1 root   shared  9986 Nov 21 14:40 archives.html
-rw-rw-r-- 1 root   shared  3182 Nov 21 14:40 categories.html

instead of the expected: www:www

When I do:

Code: [Select]
[root@ethelbert html]# chown -R www:www *

I get:

Code: [Select]
total 508
drwxrwsr-x 8 apache shared  4096 Nov 24 10:51 ./
drwxr-xr-x 6 root   root    4096 Oct 22 08:00 ../
-rw-rw-r-- 1 apache www     3572 Nov 21 14:40 403.html
-rw-rw-r-- 1 apache www     3572 Nov 21 14:40 404.html
-rw-rw-r-- 1 apache www    11899 Nov 21 14:40 about-me.html
-rw-rw-r-- 1 apache www     9986 Nov 21 14:40 archives.html
-rw-rw-r-- 1 apache www     3182 Nov 21 14:40 categories.html

Am I doing something wrong? or do I have a wrong understanding?

Thanks

Syv

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: signal-event ibay-modify question
« Reply #1 on: November 25, 2014, 12:33:00 PM »
Why would you expect files to belongs to www:www ? www is a member of the shared group, so, it has access to it. Regarding apache vs www, they are the same on SME (same uid and gid)
C'est la fin du monde !!! :lol:

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: signal-event ibay-modify question
« Reply #2 on: November 25, 2014, 04:31:36 PM »
Why would you expect files to belongs to www:www ? www is a member of the shared group, so, it has access to it. Regarding apache vs www, they are the same on SME (same uid and gid)
Thanks,

Because everywhere "they" including the contribs mentions that the ibay should belong to www:www.

Now the question is why is ibay-modify not putting on the "proper" user:group?

Thanks

Syv

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: signal-event ibay-modify question
« Reply #3 on: November 25, 2014, 04:34:24 PM »
Because everywhere "they" including the contribs mentions that the ibay should belong to www:www.
Where have you seen this info ?

Now the question is why is ibay-modify not putting on the "proper" user:group?

The ibay-modify is setting the proper user:group (could be confirmed if you look at db accounts show sritch.pel which will show you the group owning the ibay and the permission you've set through the server-manager).
What are you trying to fix ? What isn't working ?
C'est la fin du monde !!! :lol:

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: signal-event ibay-modify question
« Reply #4 on: November 25, 2014, 04:53:32 PM »
What are you trying to fix ? What isn't working ?

I'm not trying to fix, just trying to understand. I made myself some scripts but I was just wondering.

Thanks

Syv

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: signal-event ibay-modify question
« Reply #5 on: November 25, 2014, 08:57:31 PM »
ElFroggio

You should learn or understand SME server BEFORE  making unnecessary & inappropriate changes to your system.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: signal-event ibay-modify question
« Reply #6 on: November 26, 2014, 08:40:20 PM »
Because everywhere "they" including the contribs mentions that the ibay should belong to www:www.

I don't know who "they" is, but you don't want the 'www' user to be able to modify those files and directories. The user 'www' just needs to read those files in order to send them to whoever is browsing them.