BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 1st, 2004, 03:56 PM
dreamnid dreamnid is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 dreamnid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 51 sec
Reputation Power: 0
permission problem

I'm trying to set up a remote dedicated FreeBSD 5.2 RELEASE box for a game server. Somehow, I was trying to chmod the html directory so that any user can write and delete the files there without any problems when all of a sudden, I somehow locked my account and the admin (different from root) account out. Thinking back, I may have accidently did chmod –R 664 / by mistake when I meant ./ . I can log in with another account, but since I didn't add the account to the wheel group, I can't su. I can browse all the files just fine however with this account.

Now when I try to log in with either the admin or my account, the computer will automatically disconnect me. I know I somehow really screwed up all the permissions for all the files (php cannot write session files to /tmp anymore either). Is there any easy way to reset them to it original state? My webhost is going to try chmoding all the files to 755 in hopes that I can log back in as root.

Reply With Quote
  #2  
Old March 2nd, 2004, 01:28 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
I've not personally tried it, but apparently you can reset file permissions using the mtree utility against the files in /etc/mtree/ - a bit like a set of file permission templates. You'd need to find out more by reading the manpage for mtree and searching the freebsd-questions archive for references to mtree. Let us know how it goes, I'd be interested in knowing if you can solve the problem this way.

Reply With Quote
  #3  
Old March 2nd, 2004, 09:00 PM
dreamnid dreamnid is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 dreamnid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 51 sec
Reputation Power: 0
thanks a lot! i think the command beautifully :-)

i used the directions from URL

thanks for the tip-off

Reply With Quote
  #4  
Old March 2nd, 2004, 09:44 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
Great stuff :P

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > permission problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway