LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 02: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, 02: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, 03: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, 03:08 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try: /sbin/mount -w -v -n -o remount /
That should remount it with read-write attribute.
 
Old 04-23-2005, 03: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 03:17 AM.
 
Old 04-23-2005, 03:22 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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, 03: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



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 09:23 AM
file attributes binky22 Linux - Newbie 2 09-26-2003 04:17 PM
Changing file permissions and attributes lectraplayer Linux - Newbie 2 06-22-2003 09:10 PM
What file are the Windows Attributes stored in? francisjk Linux - General 3 09-23-2002 09:52 PM
Changing file attributes from C sourceman Linux - General 3 04-23-2002 07:37 PM

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

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