LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2005, 11:48 AM   #1
jgibz
LQ Newbie
 
Registered: Aug 2003
Distribution: FC3
Posts: 26

Rep: Reputation: 15
Chmod + Newbie = #@!$


okay Im a complete noob to linux

I accidentally did:
chmod 750 /

then in a newbie panic I closed the shell... after failing to change back to super user I decided I might log out and log back in a root...

Am I going to have to reinstall, or is there a way to get back into root so I can fix this?

If there is, whats the default permissions for the root dir /?

Last edited by jgibz; 03-22-2005 at 11:49 AM.
 
Old 03-22-2005, 11:54 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319

default root permission is 750 only

Last edited by Tinkster; 03-22-2005 at 01:46 PM.
 
Old 03-23-2005, 01:32 AM   #3
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Actually, the default permission for / is 755. 750 would effectively block normal users from using the system, as they are not allowed to use any file or directory on the system.

(if I understand things correctly, that is :-)

Groetjes,

Kees-Jan
 
Old 03-23-2005, 01:47 AM   #4
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
Just use chmod to change them back.

/tmp -> 1777
/root -> 710
everything else -> 755
 
Old 03-23-2005, 10:20 AM   #5
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
http://www.linuxexposed.com/Articles...rmissions.html

if you don't understand how the file permissions work, this will help a lot.
 
  


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
How to use Chmod Centinul Linux - Newbie 8 06-30-2005 10:44 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
How do I use chmod? Adan Linux - Newbie 5 09-23-2004 04:57 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
chmod +s or chmod -s excel28 Linux - General 1 09-30-2003 03:55 AM

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

All times are GMT -5. The time now is 07:30 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
Open Source Consulting | Domain Registration