Hi,
Can somebody suggest me anything for solving these
problems:
- Fix chown.c (for some reason it was not working,
and it was preventing the work in the other parts
of the application, so I had to make it less secure,
until somebody helps me to improve it).
What I try to do with chown.c maybe can be done
better by other means, e.g. using sudo or suexec,
etc, but how?
- When 'chmod' it is called by apache (through
'chown.sh' and 'chown_norec.sh', which are called
by different shell scripts), it gives messages
like this:
chmod: changing permissions of `xml_source/':
Operation not permitted
The point is that I need to run chown and chmod from
the php code (apache user). The reason why I need to
do this is explained in the following paragraphs which
are copied from INSTALL.
* Call the script install/make-chown.sh to create
chown and then set
propper ownership and permissions to it:
bash$ install/make-chown.sh
Now change ownership of 'chown' to root and set the
suid bit (s).
This can be done only by the root, so switch first
to root,
and then use these commands:
bash# chown root.root chown
bash# chmod +s chown
bash$ sudo chown root.root chown
bash$ sudo chmod +s chown
The program chown (with the help of the scripts
chown.sh and
chown_norec.sh ) is used for setting the ownership
of some files
to the data owner and the group to apache (the
data owner is the
shell user that installs and maintains
docbookwiki). This is done
so that docbookwiki can be managed both from the
web interface and
from the command-line (shell).
Usually, when a file is modified from the web
interface its
ownership is set to apache. This would not allow
the data owner to
touch it (unless it is the root). To solve this,
whenever a file
(or directory) is modified, chown is called as
well to set its
ownership to the data owner and its group to
apache, so that both
of them can modify it.
In case that you have any idea about these things,
please let me know.
Dashamir
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Doc-book-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doc-book-users