Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im using Debian Squeeze, and I need to give to my gui user (the gnome user I think its called) root permision, I mean, I want to explore, read and write anything I want using my GUI user, how can I do it?.
@sycamorex cuz Im the only one using this pc and cuz I need to run Aptana (an IDE) and to be able to modify /var/www to make web tests, right now I cant.
Make a new group, I will call it web. Then change the owner of /var/www to root:web. After that add your user to the new group. You should be able to modify the /var/www-folder now, without being root.
In short:
Code:
addgroup web
chown -R root:web /var/www
usermod -a -G web yourusername
Most definately do it as per post #8. Most distros have root login via the graphical login disabled by default as it is a risk to do so.
In the case of your web folder, another reason to have it run and be edited as a seperate user, is that if it will be facing the internet, then it will be safer by possible crackers only being limited to those directories rather than the whole system.
Another problem that you will most likely run into seeing that you are using an IDE is with permissions when files are executed by the www daemon and then having to write data into a root owned file. This will not be allowed and as a result your applications may have issues running. So as per post #8 quite a few problems are solved in a single easy step.
Make a new group, I will call it web. Then change the owner of /var/www to root:web. After that add your user to the new group. You should be able to modify the /var/www-folder now, without being root.
In short:
Code:
addgroup web
chown -R root:web /var/www
usermod -a -G web yourusername
It didnt work, Im stil having read only permission on that folder.
Edit.: I went to the permisions tab under properties and I can see the group "web" but it says: "Access files", and above that there is root and it says: "Create and delete files", but Im not in that group,and web group cant create or delete files.
@frankbell I have no such option in Squeeze.
Last edited by LittlePenguin; 01-24-2011 at 08:08 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.