LinuxQuestions.org
Review your favorite Linux distribution.
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 11-10-2004, 10:55 PM   #1
hokagi_ninja
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Rep: Reputation: 0
chmod


i run the command " chmod -R 777 / " but after rebooting i cannot logged as root. when i login as ordinary user i cannot go to the x window, only in the console, how can i fixed this problem and how can i make the entire / directory permissions to default.... the distro i'm using is Fedora Core 2... pls help.

Last edited by hokagi_ninja; 11-10-2004 at 10:56 PM.
 
Old 11-10-2004, 11:33 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
why make every single file executable?

I think you really messed it up.

it's easier to reinstall linux that recover from this.
Linux is not windowz!!!!!!!!
if you want to have full control of your system just always log-in as root which is NOT RECOMENDED.
respect the permissions!!!
use root only to configure or install something.

if u type
rm -fr /
as root the system will let you delete your whole read-write mounted paticions!!!(Linux is NOT WINDOwZ).
Better luck next time
 
Old 11-11-2004, 01:20 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
hokagi_ninja - unfortunately, I would say there is no simple way to recover from the global "chmod 777" command without doing a reinstall.

Comments:

1. If you do reinstall, be sure to back up any important data you want to save from your /home directory.
2. As perfect_circle indicated, running as root is a very risky practice. You should only run as root when absolutely necessary (such as to install or upgrade software packages)
3. What problem were you trying to solve that prompted you to run the chmod 777 comnmand? -- J.W.

Last edited by J.W.; 11-11-2004 at 01:21 AM.
 
Old 11-15-2004, 11:02 PM   #4
hokagi_ninja
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
i use the knoppix live cd to change the permissions. i can now login as a root but still i cannot get to the x windows. Is there a way to change the permission of some file so that i can use the x windows?
 
Old 11-16-2004, 12:02 AM   #5
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 23, 24, RHL 5.2
Posts: 560

Rep: Reputation: 56
You've made changes to your system that are not recoverable. J.W. has made a good suggestion with performing a reinstall to get back to a known state. The people that put together distributions make a lot of decisions about permissions and what goes into that distribution to make it work properly once installed. Using chmod like you did is rather reckless.

Now, lets look at your problem. It sounds like you were trying to get X windows up and running and thought that file permissions were the problem. Two things you should know, file permissions are rarely a problem on a new install. Secondly, when running as root permissions are essentially bypassed. Did you try executing the command startx at the command prompt? What happened? If that didn't work there is most likely a problem with the configuration of your xserver. Let us know what kind of a response your system gave and we can be more help.

You might also want to check out the file /etc/inittab to see if this was configured properly to boot into X windows. The line id:5:initdefault: should have a 5 after id:. If it has a 3 you will boot in command line or terminal mode.

Now, why did you boot up Knoppix to work on Fedora Core 2? Were you having login trouble with Fedora? If so you should use the boot disk you made during the install to boot the system in rescue mode. You can also boot from the CD to go into rescue mode. While it is possible to boot with Knoppix I feel it is better to work on your system with tools from the same distribution. Let us know how things go. I'm sure there are people here that can help.

Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to use Chmod Centinul Linux - Newbie 8 06-30-2005 11:44 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 09:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 06:37 AM
Chmod gibbylinks Linux - Newbie 1 10-23-2003 12:17 PM
chmod u+s csDraco_ Slackware 6 04-22-2003 09:44 AM


All times are GMT -5. The time now is 05:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration