Root access issues - how do others manage this?
Posted
by
Ciaran Archer
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Ciaran Archer
Published on 2011-03-17T10:59:54Z
Indexed on
2011/03/17
16:19 UTC
Read the original article
Hit count: 283
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!
© Ask Ubuntu or respective owner