Root access issues - how do others manage this?
- by Ciaran Archer
Hi there
I use my Ubuntu 10.04 LTS instance (via Virtual Box on Windows 7) with a non-root user. I am trying out developing Rails applications and I notice that I need to run some rails commands with sudo. The problem this gives me is some files are created by the root user then, and I cannot edit them via a GNOME window with my logged in user.
What is the correct thing to do here? Should I somehow always login as root? If so how? Is there some way for me to give all files under my home directory (where I do all my Rails work) the correct permissions for all users, so I can edit them with my logged in user via a window?
At the moment I have to resort to opening a file via the command line like this sudo gedit myFile.rb - this is not very sustainable!
Thanks in advance!