Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am a newbie wordpress developer switched to ubuntu 12.04 from win 7. I find these root file permissions really difficult to deal with. i installed geany but can't open root files with it.

How do you work on lamp with such kind of permissions. Please share few tips, it is very frustrating and time consuming.

share|improve this question

1 Answer 1

If those files are NOT in /var/www/ and are part of the system then yes you should use command line and something like nano or vi with sudo in front.

If part of the LAMP, for instance they are in /var/www/ I would advice changing those files to the default apache user (or www-data) and add yourself to the group this user is part of. There is no need to use user root for this.

And then the group permission is what you are looking for. If you add users to a group then they can edit files as if they where the user. We have a group "develope(r)" where "apache" and all users in our company are part of. We can edit from Windows over the network files that are on an Ubuntu server with no problems.

More info on groups:

share|improve this answer
    
I got it, i need to make a group and add myself to it with permisiions to openly access var/www directory. Please tell me how to make these groups and what permissions do i need to give to myself to edit var/www files. –  Mohit Jul 1 '13 at 13:47
    
Yes, that is the short version ;) –  Rinzwind Jul 1 '13 at 13:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.