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:
  #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: 11
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: 11
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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT