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.
i was trying to change the permissions for my user account so i can have read/write access to all files so in another post someone recommended doing this:
~# chmod -R a+rwx /
and it changed the permissions ok but now when i try to su to root from my user account i get this:
~$ su
Password:
initgroups: Operation not permitted
When important system files have incorrect permissions set, things won't work. A lot of programs will not run as expected. Although it is possible to fix the permissions, it is a lot of hard work and it will almost certainly be faster to back up your files and reinstall.
In future if you need to modify files owned by root, you should 'su', change the files and then exit as soon as your are done. This both decreases the chance of accidentally deleting your entire harddisk, and increases security from hackers/malicious users of your system.
I would suggest a little background reading about Linux before you start executing unknown commands as root. As a user though you can happily play around without fear of damaging your system.
The whole idea of having the root user and different levels of accessability is to prevent harm (accidental or otherwise) to the system. By modifying the entire system to give you write access as a normal user you're removing that protection. There's a very good reason things are set up as they are, so don't go messing!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.