Re: How do I make a text file writable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2005-11-26 at 18:52 -0600, Oil Pine wrote:
> The file listed below is a simple text file containing an integer number
> to denote the number of visits to a web page. 
> 
> A php script (counter.php) is supposed to increase the number by 1 every
> time the page is accessed. It appears that everything happens as it is
> supposed except for the incremental number of the visits. I think the
> counter.txt file is not writable. 
> 
> How do I make it writable? Do I need to change httpd_sys_content_t to
> something else?
> 
> -----------------------------------------------------------------------------------------------
> -rw-rw-r-- web web system_u:object_r:httpd_sys_content_t counter.txt

"man httpd_selinux" suggests that httpd_sys_script_rw_t or
public_content_rw_t may be what you're looking for.

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux