LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack 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: 52
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: 52
..but you need to be root if you are not the owner.
 
Old 02-17-2005, 11:48 PM   #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, 08:03 AM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
.
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: 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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 08:07 AM.

Main Menu
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