LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2005, 03:45 AM   #1
terdbird
LQ Newbie
 
Registered: Apr 2005
Location: California, USA
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Changing File Attributes


How do I change file attributes? I mistyped my root password, so I had to do the linux init=/bin/bash, and now i cannot re-write the /etc/passwd because it is read-only. How can I get around it?
 
Old 04-23-2005, 03:49 AM   #2
terdbird
LQ Newbie
 
Registered: Apr 2005
Location: California, USA
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
nevermind, just noticed it says "read only file system". how can i get around this?
 
Old 04-23-2005, 04:06 AM   #3
neo
Member
 
Registered: Apr 2005
Distribution: FreeBSD
Posts: 61

Rep: Reputation: 15
Edit lilo or grub and take out the ro. Then you can boot it up and take out the cryptic string in /etc/shadow.
 
Old 04-23-2005, 04:08 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Try: /sbin/mount -w -v -n -o remount /
That should remount it with read-write attribute.
 
Old 04-23-2005, 04:13 AM   #5
neo
Member
 
Registered: Apr 2005
Distribution: FreeBSD
Posts: 61

Rep: Reputation: 15
Oh yeah forgot lilo has to be edited and then rewritten to the mbr, which you can't do of course. With grub you can though, just hit c at boot and take out the ro. I'm not quite sure how that would work with lilo since I use grub.

Last edited by neo; 04-23-2005 at 04:17 AM.
 
Old 04-23-2005, 04:22 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Neo, you can give LILO parameters when you're booting (without having to rewrite it), I think by giving this parameters:
Code:
init=/bin/bash read-write
will mount the filesystem as read-write.
Grub is also good, somehow different (it's more dynamic), I think it's just a matter of taste.
 
Old 04-23-2005, 04:39 AM   #7
terdbird
LQ Newbie
 
Registered: Apr 2005
Location: California, USA
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
got it, thanks everyone
 
  


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
uploaded file on vsftpd has wrong file attributes rune.kg Linux - Newbie 2 03-06-2004 10:23 AM
file attributes binky22 Linux - Newbie 2 09-26-2003 05:17 PM
Changing file permissions and attributes lectraplayer Linux - Newbie 2 06-22-2003 10:10 PM
What file are the Windows Attributes stored in? francisjk Linux - General 3 09-23-2002 10:52 PM
Changing file attributes from C sourceman Linux - General 3 04-23-2002 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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