Go Back   The macosxhints Forums > OS X Help Requests > Hardware and Peripherals



Reply
 
Thread Tools Rate Thread Display Modes
Old 12-28-2012, 12:39 PM   #1
xkappax
Prospect
 
Join Date: Dec 2012
Posts: 2
Unhappy lost permissions to my external hard drive

Hi,
I was wondering if anyone could help me. I lost permissions to my external harddrive (named "Karl") and I cannot get it to open on any computer. When I click on it to open it, it says "The folder "Karl" could not be opened because you do not have sufficient privileges". I was just using it this morning and it just randomly stopped working.

If anyone could help me unlock these permissions, it would be greatly appreciated. I am running Leopard and am on an intel Mac G5 tower.

I typed this into terminal:
ls -alOe /Volumes
id
diskutil list
df
echo "done"

And this is the info it returned:
Code:
Last login: Fri Dec 28 13:29:54 on ttys000
cd5s-power-mac-g5:~ CD5$ ls -alOe /Volumes
total 8
drwxrwxrwt@  6 root  admin  hidden  204 Dec 28 13:26 .
drwxrwxr-t@ 37 root  admin  -      1326 Oct 30 15:11 ..
lrwxr-xr-x   1 root  admin  -         1 Dec 28 12:22 CD5 -> /
drw-rw-rw-@ 45 CD5   staff  uchg   1598 Dec 20 12:16 Karl
drwx------@ 98 CD5   staff  -      3288 Dec 28 09:53 Mac_Jobs
drwx------@ 41 CD5   staff  -      1350 Oct 30 06:10 RamVol
cd5s-power-mac-g5:~ CD5$ id
uid=501(CD5) gid=20(staff) groups=20(staff),98(_lpadmin),101(com.apple.sharepoint.group.1),81(_appserveradm),79(_appserverusr),80(admin)
cd5s-power-mac-g5:~ CD5$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     Apple_partition_scheme                        *372.6 Gi   disk0
   1:        Apple_partition_map                         31.5 Ki    disk0s1
   2:                  Apple_HFS CD5                     372.5 Gi   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *372.6 Gi   disk1
   1:                  Apple_HFS Karl                    372.6 Gi   disk1s1
cd5s-power-mac-g5:~ CD5$ df
Filesystem                              512-blocks      Used Available Capacity  Mounted on
/dev/disk0s3                             781160544  53813808 726834736     7%    /
devfs                                          209       209         0   100%    /dev
fdesc                                            2         2         0   100%    /dev
map -hosts                                       0         0         0   100%    /net
map auto_home                                    0         0         0   100%    /home
afp_3jbJiq4AbFiM11pReL0YMUsO-1.2d000004  143363992 102343984  41020008    72%    /Volumes/Mac_Jobs
afp_3jbJiq4AbFiM11pReL0YMUsO-2.2d000005  143363992  64088000  79275992    45%    /Volumes/RamVol
/dev/disk1s1                             781422704 767465240  13957464    99%    /Volumes/Karl
cd5s-power-mac-g5:~ CD5$ echo "done"

Last edited by trevor; 12-28-2012 at 01:11 PM. Reason: [code] tags
xkappax is offline   Reply With Quote
Old 12-28-2012, 01:32 PM   #2
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,560
Quote:
Originally Posted by xkappax
Code:
cd5s-power-mac-g5:~ CD5$ ls -alOe /Volumes
total 8
drwxrwxrwt@  6 root  admin  hidden  204 Dec 28 13:26 .
drwxrwxr-t@ 37 root  admin  -      1326 Oct 30 15:11 ..
lrwxr-xr-x   1 root  admin  -         1 Dec 28 12:22 CD5 -> /
drw-rw-rw-@ 45 CD5   staff  uchg   1598 Dec 20 12:16 Karl
drwx------@ 98 CD5   staff  -      3288 Dec 28 09:53 Mac_Jobs
drwx------@ 41 CD5   staff  -      1350 Oct 30 06:10 RamVol

The 'uchg' shown next to Karl is your problem--that's the user-immutable flag. Fortunately, it's pretty easy to unset. Your permissions for Karl are also a bit restrictive (no execute permissions for anyone), so we can also change those if you'd like. I notice that your permissions on Mac_Jobs and RamVol are not at defaults, so if you have the permissions on Karl set the way you do for a reason, feel free to skip this command.

Copy/paste the following:

sudo chflags nouchg /Volumes/Karl
sudo chmod 755 /Volumes/Karl
ls -alOe /Volumes
echo "done"


This block of commands will remove 'uchg' and set the permissions on Karl to rwxr-xr-x. (user = read write execute, group = read execute, other = read execute) If you prefer to keep the execute permissions off of group and other, or ALL permissions off of group and other, you can use 744 or 700, respectively, in place of 755.

Trevor
trevor is offline   Reply With Quote
Old 12-28-2012, 01:35 PM   #3
xkappax
Prospect
 
Join Date: Dec 2012
Posts: 2
That worked, thank you so much! ^_^
xkappax is offline   Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:39 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.