LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-22-2004, 03:37 PM   #1
drumaholik
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
help, I cant su to root


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

"su -" does the same thing too

how can i fix this?
 
Old 04-22-2004, 03:48 PM   #2
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
The advice was bad, you just trashed your system. Unfortunately it looks like you are going to have to reinstall.
 
Old 04-22-2004, 04:06 PM   #3
drumaholik
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Original Poster
Rep: Reputation: 0
really?

i can still log in to root and do things from there but thats a hassle.
 
Old 04-22-2004, 04:28 PM   #4
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
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.

Good luck,
Mark.
 
Old 04-22-2004, 05:56 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration