LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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, 10:49 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

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

Rep: Reputation: 52
..but you need to be root if you are not the owner.
 
Old 02-18-2005, 12:48 AM   #4
wapcaplet
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, 09:03 AM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
.
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, 12:59 PM   #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, 01:29 PM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
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


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


All times are GMT -5. The time now is 11:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration