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 04-21-2004, 10:38 PM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
Exclamation where is cd


i made a stupid mistake of:

chmod -R 700 /

now none of my users can log on

i need to find where the 'cd' command is so i can chmod it
any suggestions?
 
Old 04-21-2004, 10:46 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: where is cd

Quote:
Originally posted by Longinus
i made a stupid mistake of:

chmod -R 700 /

now none of my users can log on

i need to find where the 'cd' command is so i can chmod it
any suggestions?
AFAIK cd is a built into bash.. and bash is located in /bin so I'd try that first. If not I'd suggest booting with a rescue cd or floppy to restore more than just cd.. as what you did can really make your system unusable.
 
Old 04-21-2004, 10:57 PM   #3
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
bahh.... cd isnt in the bin directory

how can i make a rescue disk?
 
Old 04-21-2004, 11:01 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Longinus
bahh.... cd isnt in the bin directory

how can i make a rescue disk?
I never said it was in /bin but bash is, as cd is a builtin command of bash..

What distro is this we're talking about here? If its slack or redhat, you can use the installation cd's to boot from, etc.
 
Old 04-21-2004, 11:54 PM   #5
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
im using slackware 9.1
 
  


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



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

All times are GMT -5. The time now is 03:41 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