[SOLVED] username in sudoer group but need to sudo all the time
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.
but the problem is that my username does not have permission to copy/generate files and run programs in my home directory and I need to become root all the time or change the permissions of the file or directory to be able to access or modify it. How can I give my username this permissions?
Thanks
Replace YOURUSERNAME with your own username of course or if worse comes to worse login as root delete your user ( back up any important files first ! ) then re-add your user.
Replace YOURUSERNAME with your own username of course or if worse comes to worse login as root delete your user ( back up any important files first ! ) then re-add your user.
This solved it. The only change I had to make was that I did not use sudo in the above command. root did not have permission to change ownership. Thanks for the help!.
that lists your users sudo setup,
the default on ubuntu should have "(ALL : ALL) ALL" in it
Here is the output:
Code:
Matching Defaults entries for username on this host:
env_reset,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User username may run the following commands on this host:
(ALL : ALL) ALL
This is after I did chown. I guess it looked the same before but I'm not sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.