Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: ElFroggio on November 24, 2014, 08:02:29 PM

Title: signal-event ibay-modify question
Post by: ElFroggio 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
Title: Re: signal-event ibay-modify question
Post by: Daniel B. 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)
Title: Re: signal-event ibay-modify question
Post by: ElFroggio 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
Title: Re: signal-event ibay-modify question
Post by: Daniel B. 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 ?
Title: Re: signal-event ibay-modify question
Post by: ElFroggio 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
Title: Re: signal-event ibay-modify question
Post by: janet on November 25, 2014, 08:57:31 PM
ElFroggio

You should learn or understand SME server BEFORE  making unnecessary & inappropriate changes to your system.
Title: Re: signal-event ibay-modify question
Post by: CharlieBrady 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.