Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reset root fs permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
lohapuk
n00b
n00b


Joined: 15 Jan 2005
Posts: 14

PostPosted: Sat Apr 23, 2005 9:12 pm    Post subject: Reset root fs permissions Reply with quote

i types chow steve:users /* instead of ./* i was wondering if there was a way to reset them to default with out having to go through every file and resetting them. I caught it have way through but the damage was done.
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Sun Apr 24, 2005 6:11 am    Post subject: Reply with quote

First off, did you chown steve:users /* or chown -R steve:users /*, as in the first case you would only change permission on just the folders listed in "/" and NOT their contents, whereas in the second you would have changed permissions on all folders in "/" AND their contents. The first case is easy to recover from, the second will likely result in you doing a clean install.

For the first case,
Code:
chown root:root /*

possibly leaving out any custom folders you might have added yourself to "/" and not set root as the owner.
_________________
Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor
Back to top
View user's profile Send private message
lohapuk
n00b
n00b


Joined: 15 Jan 2005
Posts: 14

PostPosted: Sun Apr 24, 2005 12:57 pm    Post subject: Reply with quote

I did use -r so i have just backed up all the data and am currently reinstalling the dev box at work hoping i can haev it fixed for monday
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Sun Apr 24, 2005 2:44 pm    Post subject: Reply with quote

Ouch! .... you might have gotten away without having to reinstall gentoo, but I think the work and time needed to fix all the permissions would have been worse than a reinstall honestly.
_________________
Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor
Back to top
View user's profile Send private message
lohapuk
n00b
n00b


Joined: 15 Jan 2005
Posts: 14

PostPosted: Mon Apr 25, 2005 9:31 am    Post subject: Reply with quote

I have reinstalled alot easier, i have learnt my lesson
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum