Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Locked myself out of my Documents directory

Locked myself out of my Documents directory
Thread Tools
Dedicated MacNNer
Join Date: Mar 2005
Location: Netherlands
Status: Offline
Reply With Quote
Aug 19, 2006, 01:16 PM
 
I'm feeling rather stupid. I installed a program to file my tax report over 2004 in /Documents. That worked with the 2005 app and I though I could do it as well with the 2004 one, it worked, ut now I can't get into the dir.

I tried chown Simon /Users/Simon/Documents but that didn't work. I thought my root password was the same as my admins but that's not the case, and I can't figure out which password I used when I installed 10.3.9. I tried all the variables I can think of, but none work.

So here I am, with my hands in my hair trying to figure out a way to get the permission on that directory fixed. Does anyone have an idea how to do this?

Edit:

Bond:~ Simon$ ls -la |grep Doc
drwx------ 25 505 admin 850 19 Aug 19:10 Documents

I tried the single user method and then the chown command, but that doesn't work. passwd in single user mode also doesn't work(I guess for safety reasons)
(Last edited by Sijmen; Aug 19, 2006 at 01:50 PM. )
Apple Powerbook 17" 1,67 GHz, 2 gig RAM, 100 gig HDD, ATI Mobility Radeon 9700 128MB, Superdrive 8X
     
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Aug 19, 2006, 04:52 PM
 
sudo chown -R Simon ~/Documents

enter your *own* password when prompted.
hope that helps, let us know if it works.
     
Sijmen  (op)
Dedicated MacNNer
Join Date: Mar 2005
Location: Netherlands
Status: Offline
Reply With Quote
Aug 19, 2006, 05:08 PM
 
Thank you for the command, it seems to work, except:

Bond:~ Simon$ sudo chown -R Simon ~/Documents
Simon is not in the sudoers file. This incident will be reported.
Bond:~ Simon$

Okay I tried; pico /etc/sudoers but I've got no permission to edit that file, and without the root password I'm nowhere. I just wish I could remember it.
(Last edited by Sijmen; Aug 19, 2006 at 05:31 PM. )
Apple Powerbook 17" 1,67 GHz, 2 gig RAM, 100 gig HDD, ATI Mobility Radeon 9700 128MB, Superdrive 8X
     
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Aug 19, 2006, 05:45 PM
 
Do you have a different account that is an admin?
     
Sijmen  (op)
Dedicated MacNNer
Join Date: Mar 2005
Location: Netherlands
Status: Offline
Reply With Quote
Aug 19, 2006, 05:47 PM
 
Yes. But I tried the same things under that account with no result
Apple Powerbook 17" 1,67 GHz, 2 gig RAM, 100 gig HDD, ATI Mobility Radeon 9700 128MB, Superdrive 8X
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Aug 19, 2006, 05:50 PM
 
You don't need a root password. You need the password of your admin account. And you don't have to edit some file in the Terminal. You can look up and change which accounts are admin accounts in the Accounts system preferences. If you don't know the password, reset it using the tool on the system CD.

And while we are at it: why don't you use the Finder to change the permission back? Why is everybody so obsessed with the Terminal?
     
Sijmen  (op)
Dedicated MacNNer
Join Date: Mar 2005
Location: Netherlands
Status: Offline
Reply With Quote
Aug 19, 2006, 05:53 PM
 
Well TETENAL, that did the trick!
Unbelievable that I thought the only possibility was with terminal commands.

Bedankt
Apple Powerbook 17" 1,67 GHz, 2 gig RAM, 100 gig HDD, ATI Mobility Radeon 9700 128MB, Superdrive 8X
     
Mac Elite
Join Date: Mar 2000
Location: Allston, MA, USA
Status: Offline
Reply With Quote
Aug 20, 2006, 02:07 PM
 
Actually, the incident was reported to me and I fixed it for you. ;-)
-- Jason
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:12 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2