LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2011, 06:28 AM   #1
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Rep: Reputation: 16
Why don't I have write privileges on my Wordpress theme directory?


I can't make write changes to .php files in my Wordpress editor, although I have already chmod -R 777 the directory. here is what ls -al says:

Code:
[root@localhost ~]# ls -al /usr/share/wordpress/wp-content/themes/purple-swirl/
total 12
drwxrwxrwx. 3 root root 4096 May 21 17:10 .
drwxrwxrwx. 4 root root 4096 May 21 17:10 ..
drwxrwxrwx. 3 root root 4096 May 21 17:10 purple-swirl
getfacl says:
Code:
[root@localhost ~]# getfacl /usr/share/wordpress/wp-content/themes/purple-swirl/
getfacl: Removing leading '/' from absolute path names
# file: usr/share/wordpress/wp-content/themes/purple-swirl/
# owner: root
# group: root
user::rwx
group::rwx
other::rwx
I restarted mysqld after chmod, I dont know what the deals is... Please help...
thanks
Davide

Last edited by davide123; 05-22-2011 at 06:31 AM.
 
Old 05-22-2011, 07:03 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi Davide,

Check the attribute set on that particular directory. You can check the attributes by lsattr /directory_location. If there is a immutable attribute set on that directory/file you won't be able to write to it. It will open in read only mode.

This attribute is set to prevent any unintended write operation to that file/directory. You can change the immutable attribute by using following command:

chattr -i /directory/file
 
Old 05-22-2011, 08:45 AM   #3
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Original Poster
Rep: Reputation: 16
I checked and tried as you said, still can't write this is my output:

Code:
[root@localhost themes]# chattr -i ./purple-swirl/
[root@localhost themes]# lsattr ./purple-swirl/
-------------e- ./purple-swirl/purple-swirl
 
Old 05-22-2011, 08:49 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Lets have a look at the way file system is mounted. Please let us know the output of the following command:

mount | grep /

Also,

Run the above command on per device basis. Support you have following partitions in your hdd say sda1, sdb1

Then run the following:

mount | grep /dev/sda1
mount | grep /dev/sdb1
 
Old 05-22-2011, 09:12 AM   #5
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Original Poster
Rep: Reputation: 16
Output:

Code:
[root@localhost ~]# mount |grep /
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/VolGroup-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
gvfs-fuse-daemon on /home/dee/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=dee)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sdb1 on /media/My Book type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
[root@localhost ~]# mount |grep /dev/sda1
/dev/sda1 on /boot type ext4 (rw)
[root@localhost ~]# mount |grep /dev/sdb1
/dev/sdb1 on /media/My Book type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
[root@localhost ~]#
 
Old 05-22-2011, 12:43 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Alright the partitions seems to be mounted with rw options so there is no reason as to why you are not able to write. We still have one more thing that we can try i.e. to reboot the system and see if you are able to write after that. If not we can try turning off mysqld and then try to write to the file as to see if we are not able to write because files already being locked by the application.

You can still see the files that are in use by mysql by typing the following command:

lsof | grep mysqld

Last edited by T3RM1NVT0R; 05-22-2011 at 12:48 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: WordPress Theme Thesis Maker Backs Down, Adopts GPL LXer Syndicated Linux News 0 07-26-2010 03:40 AM
Edit Wordpress theme : Twenty Ten esteeven Programming 1 06-23-2010 03:03 AM
LXer: Understanding WordPress Theme: The Basics of Creating Your Own WP Theme LXer Syndicated Linux News 0 01-08-2010 12:20 PM
LXer: Creating Your Own Theme - A Wordpress Tutorial LXer Syndicated Linux News 0 04-07-2009 03:50 PM
GNU GPL question about wordpress theme titanium_geek Linux - General 3 01-27-2009 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration