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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2005, 09:22 PM   #1
Seribicus
LQ Newbie
 
Registered: May 2004
Location: CA, USA
Distribution: Mepis 2.6.7
Posts: 27

Rep: Reputation: 15
need to chmod lots o files, without logging in a root


Recently, I upgraded my Mepix 2.6.7 distro of linux, and as most uprading does it takes away root login access
having already fought, and lost, the battle to return root to the login menu

Can someone tell me of a way to chmod a folder and have it chmod all the subfolder and files as well, so I won't have to chmod 1,300+ files individually

Or perhaps a way to read files with - r w - - - - - - - permissions
or change the ownership of the folder or something

any help with this would be appriciated
 
Old 02-17-2005, 09:49 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
chmod -R
 
Old 02-17-2005, 09:50 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
..but you need to be root if you are not the owner.
 
Old 02-17-2005, 11:48 PM   #4
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
...and be very careful with doing recursive commands as root. Type slowly
 
Old 02-18-2005, 08:03 AM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
.
Quote:
..but you need to be root if you are not the owner.
Load up a copy of knoppix. You then can get root access to these files and change them as you need to
 
Old 02-18-2005, 11:59 AM   #6
Seribicus
LQ Newbie
 
Registered: May 2004
Location: CA, USA
Distribution: Mepis 2.6.7
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for the help

I wasn't exactly sure what the -R would do, so I stayed away from it
Also, I never thought of using a live CD to gain root access

Thanks again
 
Old 02-18-2005, 12:29 PM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
I don't know if this will work, but after using a live cd and mounting your root patition, you may do a:
chroot /dev/<your actual linux partition>
passwd
if you forgot the root password
 
  


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
comparing lots of files Frustin Linux - General 4 09-22-2005 02:54 PM
Renaming lots of files Tuttle Linux - General 4 11-18-2004 11:15 AM
chmod vs chown on some root files and yes apps ergo_sum Linux - Newbie 3 11-12-2003 10:49 AM
wiped out lots of files :( skull_crusher Linux - Newbie 0 04-10-2003 04:10 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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