Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rating: Thread Rating: 95 votes, 4.96 average. Display Modes
Old 03-14-2011, 05:33 AM   #461
pmelenhorst
Prospect
 
Join Date: Mar 2011
Posts: 1
locked out

Hi all,

locked out of my Western Digital hard drive like everyone else but terrified of terminal (with a name like that!). Running 10.6.2. Here is the result for volumes:


Code:
Last login: Mon Mar 14 21:20:02 on ttys000
Mellys-MacBook:~ paulmelenhorst$ ls -alO /Volumes
total 8
drwxrwxrwt@  5 root            admin  hidden   170 14 Mar 21:14 .
drwxrwxr-t  32 root            admin  -       1156 14 Mar 21:14 ..
drwxr-xr-x   1 paulmelenhorst  staff  -      12288  3 Jan 21:40 BOOTCAMP
drw-rw-rw-  14 paulmelenhorst  staff  uchg     544 11 Mar 09:21 BackUp
lrwxr-xr-x   1 root            admin  -          1 14 Mar 21:14 Macintosh HD -> /
Mellys-MacBook:~ paulmelenhorst$ id
uid=501(paulmelenhorst) gid=20(staff) groups=20(staff),204(_developer),100(_lpoperator),98(_lpadmin),81(_appserveradm),80(admin),79(_appserverusr),61(localaccounts),12(everyone),401(com.apple.access_screensharing)
Mellys-MacBook:~ paulmelenhorst$ echo "done"

Would greatly appreciate any help. Cheers.
pmelenhorst is offline   Reply With Quote
Old 03-15-2011, 12:48 PM   #462
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,823
For Snow Leopard, we really need to see the results of
ls -alOe /Volumes
but I'll help with what I can see from your results above.

Copy/paste the following commands:

sudo chflags nouchg /Volumes/BackUp
sudo chmod 775 /Volumes/BackUp
ls -alOe /Volumes
echo "done"


Because of the 'sudo' part, you will be asked for your admin password. Type it at the prompt. As you type your password, nothing will be echoed back to the screen. This is a normal security precaution when entering passwords. Also, if you've never used the sudo command in the Terminal before, you will be given a warning about it's power. This is normal for the very first time any user account uses sudo, and is not specific to the commands above (which, if you copy/paste them are safe).

Trevor
trevor is offline   Reply With Quote
Old 04-18-2011, 06:29 AM   #463
Delpani
Guest
 
Posts: n/a
Hi guys , I have the same problem and I have followed your way but untill now I can't solved these problems ....so I show you some Infor in Terminal I have got here....


Code:
Phan-Minhs-MacBook-Pro:~ phanminh$ ls -alOe /Volumes
total 8
drwxrwxrwt@  4 root      admin  hidden  136 Apr 18 12:59 .
 0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxrwx@ 32 root      admin  -      1156 Apr 17 23:46 ..
drwxr-xr-x   1 phanminh  staff  -      4096 Apr 17 23:36 LaCie
lrwxr-xr-x   1 root      admin  -         1 Apr 18 12:23 MiNh -> /
Phan-Minhs-MacBook-Pro:~ phanminh$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk1s1 on /Volumes/LaCie (ntfs, local, nodev, nosuid, read-only, noowners)
Phan-Minhs-MacBook-Pro:~ phanminh$ 
Phan-Minhs-MacBook-Pro:~ phanminh$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *320.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS MiNh                    319.7 GB   disk0s2
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *500.1 GB   disk1
   1:               Windows_NTFS LaCie                   500.1 GB   disk1s1
Phan-Minhs-MacBook-Pro:~ phanminh$ 
Phan-Minhs-MacBook-Pro:~ phanminh$ df -h
Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/disk0s2   298Gi  222Gi   75Gi    75%    /
devfs          109Ki  109Ki    0Bi   100%    /dev
map -hosts       0Bi    0Bi    0Bi   100%    /net
map auto_home    0Bi    0Bi    0Bi   100%    /home
/dev/disk1s1   466Gi   82Gi  383Gi    18%    /Volumes/LaCie
after some research , I have doubt about this phase show on Terminal...so please Help .....thanks you so much.
  Reply With Quote
Old 04-18-2011, 09:24 AM   #464
wisegi
Guest
 
Posts: n/a
Drive locked

HI THERE

any help would be appreciated....

My Passport Drive is locked

Trying to copy iphoto library from old external harddrive to new external hard drive: Getting file already exists with the same names when around the 18mb part of a 22 GB Library...

Now iphoto library is locked....

Code:
 -alOe /Volumes
total 72
drwxrwxrwt@  5 root         admin        hidden   170 18 Apr 10:16 .
 0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxr-x  32 root         admin        -       1156 18 Apr 10:05 ..
drwxrwxr-x  12 reypatricio  reypatricio  -        476 18 Apr 09:57 Mac Disk
lrwxr-xr-x   1 root         admin        -          1 18 Apr 10:03 Macintosh HD -> /
drwxrwxrwx   1 reypatricio  reypatricio  -      32768 18 Apr 10:15 My Passport
  Reply With Quote
Old 04-22-2011, 12:47 PM   #465
tvmatzke
Guest
 
Posts: n/a
Lost acess to internal and external drives

I accidentally changed the permission settings on my System Drive.

After that I got a couple hundred file extension errors, followed by the loss of access to all my hard drives,(little lock Icon) and can't change permissions even with a root user.

Upon restart the computer stalled on a blue screen. I was able to fix the main drive permissions using the disc utility on the Snow Leopard startup disc. the system boots but I still get a bunch of file extension errors and I still can't access permissions on non system drives.
  Reply With Quote
Old 04-25-2011, 05:53 AM   #466
billo
Prospect
 
Join Date: Apr 2011
Posts: 2
Hello to everybody and mainly to Doc Trevor
Guess what?
I'm trying to unlock my HDs: 3 HD, 2 HD, -5- HD EXT . ( hope I'm not confusing Disks name)
I'm not so much concerned about 1 HD because I have done such a mess that for sure I need to reinstall everything. I'm just trying to rescue data and programs.
I have tried to type the commands that I have found in the forum, but no success. (It's the first time I use Terminal)
Hope the following data are helpful to you.
Thanks a lot

__________________
james-browns-mac-pro:~ jamesbrown$ ls -alO /Volumes
total 8
lrwxr-xr-x 1 root admin - 1 Apr 25 00:54 1 HD -> /
drw-rw-r--+ 36 root admin uchg 1292 Apr 14 18:20 2 HD
drw-rw-r--+ 19 root admin uchg 714 Apr 14 14:46 3 HD
drw-rw-r--+ 39 jamesbrown staff uchg 1394 Apr 10 19:41 -5- HD EXT
drwxrwxrwt@ 6 root admin hidden 204 Apr 25 01:49 .
drwxrwxr-x@ 34 root admin - 1224 Apr 25 00:54

____________________________________________

james-browns-mac-pro:~ jamesbrown$ id
uid=501(jamesbrown) gid=20(staff) groups=20(staff),101(com.apple.sharepoint.group.1),204(_developer),100(_lpoperator),98(_lpadmin),81(_appserveradm),80(ad min),79(_appserverusr),61(localaccounts),12(everyone),401(com.apple.access_screensharing)
james-browns-mac-pro:~ jamesbrown$ diskutil list
/dev/disk0

______________________________

#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS 3 HD 499.8 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS 2 HD 499.8 GB disk1s2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk2
1: EFI 209.7 MB disk2s1
2: Apple_HFS 1 HD 319.7 GB disk2s2
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *163.9 GB disk4
1: EFI 209.7 MB disk4s1
2: Apple_HFS -6- HD EXT 163.6 GB disk4s2
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *320.1 GB disk5
1: Apple_HFS -5- HD EXT 320.1 GB disk5s1

______________________________


james-browns-mac-pro:~ jamesbrown$ df
Filesystem 512-blocks Used Available Capacity Mounted on
/dev/disk2s2 624470624 258353128 365605496 42% /
devfs 227 227 0 100% /dev
/dev/disk1s2 976101344 561604208 414497136 58% /Volumes/ 2 HD
/dev/disk0s2 976101344 829838424 146262920 86% /Volumes/ 3 HD
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
/dev/disk5s1 625142384 133725472 491416912 22% /Volumes/-5- HD EXT
james-browns-mac-pro:~ jamesbrown$ echo "done"
done
james-browns-mac-pro:~ jamesbrown$

__________________________
billo is offline   Reply With Quote
Old 04-25-2011, 11:25 AM   #467
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,823
Quote:
Originally Posted by billo
Code:
james-browns-mac-pro:~ jamesbrown$ ls -alO /Volumes
total 8
lrwxr-xr-x   1 root        admin  -         1 Apr 25 00:54  1 HD -> /
drw-rw-r--+ 36 root        admin  uchg   1292 Apr 14 18:20  2 HD
drw-rw-r--+ 19 root        admin  uchg    714 Apr 14 14:46  3 HD
drw-rw-r--+ 39 jamesbrown  staff  uchg   1394 Apr 10 19:41 -5- HD EXT
drwxrwxrwt@  6 root        admin  hidden  204 Apr 25 01:49 .
drwxrwxr-x@ 34 root        admin  -      1224 Apr 25 00:54

____________________________________________

james-browns-mac-pro:~ jamesbrown$ df
Filesystem    512-blocks      Used Available Capacity  Mounted on
/dev/disk2s2   624470624 258353128 365605496    42%    /
devfs                227       227         0   100%    /dev
/dev/disk1s2   976101344 561604208 414497136    58%    /Volumes/ 2 HD
/dev/disk0s2   976101344 829838424 146262920    86%    /Volumes/ 3 HD
map -hosts             0         0         0   100%    /net
map auto_home          0         0         0   100%    /home
/dev/disk5s1   625142384 133725472 491416912    22%    /Volumes/-5- HD EXT

We really need to see ls -alOe /Volumes in current copies of OS X, but I'll try to help with the limited information I have. Please copy/paste the following into your Terminal:

sudo chflags nouchg /Volumes/" 2 HD"
sudo chflags nouchg /Volumes/" 3 HD"
sudo chflags nouchg /Volumes/"-5- HD EXT"
sudo chmod 775 /Volumes/" 2 HD"
sudo chmod 775 /Volumes/" 3 HD"
sudo chmod 775 /Volumes/"-5- HD EXT"
ls -alOe /Volumes
echo "done"


Note that you will be asked for your admin password, and when you type it nothing is echoed back to the screen. This is normal. Also, if you've never used 'sudo' before, you will be given a warning about its usage. This is also normal for the first use of sudo in any user, and is not indicative of any danger. The commands above, if copy/pasted, are safe for you to use, and will remove the 'uchg' user immutable flag on your hard drives, and open up the permissions to correct defaults.

Please let us see the full transcript of the results, don't edit it to remove the commands, just copy/paste it all.


Trevor

Last edited by trevor; 04-25-2011 at 11:30 AM.
trevor is offline   Reply With Quote
Old 04-25-2011, 11:39 AM   #468
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,823
Quote:
Originally Posted by tvmatzke
I accidentally changed the permission settings on my System Drive.

After that I got a couple hundred file extension errors, followed by the loss of access to all my hard drives,(little lock Icon) and can't change permissions even with a root user.

Upon restart the computer stalled on a blue screen. I was able to fix the main drive permissions using the disc utility on the Snow Leopard startup disc. the system boots but I still get a bunch of file extension errors and I still can't access permissions on non system drives.

I would strongly encourage you to reinstall your operating system. If you have Snow Leopard, just do an ordinary install. If you have Leopard or previous, do an Archive and Install: http://support.apple.com/kb/HT1545

Trevor
trevor is offline   Reply With Quote
Old 04-25-2011, 11:44 AM   #469
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,823
Quote:
Originally Posted by Delpani
Hi guys , I have the same problem and I have followed your way but untill now I can't solved these problems ....so I show you some Infor in Terminal I have got here....


Code:
Phan-Minhs-MacBook-Pro:~ phanminh$ ls -alOe /Volumes
total 8
drwxrwxrwt@  4 root      admin  hidden  136 Apr 18 12:59 .
 0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxrwx@ 32 root      admin  -      1156 Apr 17 23:46 ..
drwxr-xr-x   1 phanminh  staff  -      4096 Apr 17 23:36 LaCie
lrwxr-xr-x   1 root      admin  -         1 Apr 18 12:23 MiNh -> /
Phan-Minhs-MacBook-Pro:~ phanminh$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk1s1 on /Volumes/LaCie (ntfs, local, nodev, nosuid, read-only, noowners)
Phan-Minhs-MacBook-Pro:~ phanminh$ 
Phan-Minhs-MacBook-Pro:~ phanminh$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *320.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS MiNh                    319.7 GB   disk0s2
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *500.1 GB   disk1
   1:               Windows_NTFS LaCie                   500.1 GB   disk1s1
Phan-Minhs-MacBook-Pro:~ phanminh$ 
Phan-Minhs-MacBook-Pro:~ phanminh$ df -h
Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/disk0s2   298Gi  222Gi   75Gi    75%    /
devfs          109Ki  109Ki    0Bi   100%    /dev
map -hosts       0Bi    0Bi    0Bi   100%    /net
map auto_home    0Bi    0Bi    0Bi   100%    /home
/dev/disk1s1   466Gi   82Gi  383Gi    18%    /Volumes/LaCie
after some research , I have doubt about this phase show on Terminal...so please Help .....thanks you so much.

Your LaCie drive is formatted as NTFS. By default, OS X can read NTFS drives but cannot write to them. You will either need to reformat the LaCie drive to another filesystem like HFS+ (which Disk Utility calls "Mac OS Extended"), or else install ntfs-3g on your Mac to give it NTFS write support.

Trevor
trevor is offline   Reply With Quote
Old 04-25-2011, 01:05 PM   #470
billo
Prospect
 
Join Date: Apr 2011
Posts: 2
Smile Thanks a lot

Great Trevor! Really really Great
I just pasted this:
__________________________
sudo chflags nouchg /Volumes/" 2 HD"
sudo chflags nouchg /Volumes/" 3 HD"
sudo chflags nouchg /Volumes/"-5- HD EXT"
sudo chmod 775 /Volumes/" 2 HD"
sudo chmod 775 /Volumes/" 3 HD"
sudo chmod 775 /Volumes/"-5- HD EXT"
ls -alOe /Volumes
echo "done"
___________________________

From your instructions, and everything is clear now:
Can you open even chastity belts? :-)
Many thanks You was really helpful, I couldn't do that by myself
Thanks again All my best
billo is offline   Reply With Quote
Old 04-27-2011, 11:59 PM   #471
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
Quote:
Originally Posted by trevor
sudo chflags nouchg /Volumes/" 2 HD"
sudo chflags nouchg /Volumes/" 3 HD"
sudo chflags nouchg /Volumes/"-5- HD EXT"
sudo chmod 775 /Volumes/" 2 HD"
sudo chmod 775 /Volumes/" 3 HD"
sudo chmod 775 /Volumes/"-5- HD EXT"
ls -alOe /Volumes
echo "done"

Not to stir the pot, but... if some user had 20 mounted volumes which were similarly farked, would you post 40 commands for that user to run?

Or this:

sudo chflags nouchg /Volumes/*; sudo chmod 775 /Volumes/*

?

__________________

chown -R us /your\ base/

-HI-

.
Hal Itosis is offline   Reply With Quote
Old 04-28-2011, 12:03 PM   #472
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,823
Hal Itosis, I understand your point, it's a good one. And you're welcome to continue responding with your short version of a fix. It's certainly effective for most people.

But my own prejudices are to fix exactly the things that are a problem rather than use wildcards that have the potential to change things that shouldn't be changed.

For example sudo chmod 775 /Volumes/* will be helpful to most people that have problems here. But if someone has deliberately changed their permissions on a volume, say to 700, to limit anyone except themselves from accessing a volume, then resetting non-problem volumes to 775 may be counter productive. This may be rare, but it can happen. And my own view of the world is that it's better to fix exactly the problem.

So,

Quote:
if some user had 20 mounted volumes which were similarly farked, would you post 40 commands for that user to run?

Well, probably yes I would.

Trevor
trevor is offline   Reply With Quote
Old 05-10-2011, 10:47 PM   #473
dentish
Prospect
 
Join Date: May 2011
Posts: 2
Trevor,
I see lots of permission advice here. My problem is that I have a Time Capsule that has 3 external disks attached to it. The disk will not show up on my network. I have to open Time Capsule and look at each disk and open folders through time capsule. Viewing the Info window, I see Name "everyone" and privilege "NO ACCESS". I have my itunes folder on one of these disks and cannot view it. Everything was working well until took apart the network to refinish the floor in that room. Putting everything back in and hokking it up the same way give me this problem. BTW when I hook up the drives directly to my iMac, I have regular access and read/write privileges. Something is going on through time capsule.
Any thoughts?
dentish is offline   Reply With Quote
Old 05-10-2011, 11:03 PM   #474
dentish
Prospect
 
Join Date: May 2011
Posts: 2
Here is what I get from the terminal command
Code:
ls -alOe /Volumes

Last login: Tue May 10 23:58:30 on ttys000
iMac:~ iMac$ ls -alOe /Volumes
total 40
drwxrwxrwt@  6 root  admin  hidden   204 May 10 23:52 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxrwx  46 root  admin  -       1632 May  3 21:50 ..
drwx------  27 iMac  staff  -        874 Jan  9 23:24 Bootable Backup
drwx------@ 47 iMac  staff  -       1554 May 10 23:21 Iomega HDD
lrwxr-xr-x   1 root  admin  -          1 May  2 23:38 Macintosh HD -> /
drwx------   1 iMac  staff  -      16384 May 10 23:14 My Book
iMac:~ iMac$
Thanks again, Trevor
dentish is offline   Reply With Quote
Old 05-19-2011, 02:31 AM   #475
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
Quote:
Originally Posted by dentish
<snip>

Viewing the Info window, I see Name "everyone" and privilege "NO ACCESS". I have my itunes folder on one of these disks and cannot view it.

Here is what I get from the terminal command
Code:
Last login: Tue May 10 23:58:30 on ttys000
iMac:~ iMac$ ls -alOe /Volumes
total 40
drwxrwxrwt@  6 root  admin  hidden   204 May 10 23:52 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxrwx  46 root  admin  -       1632 May  3 21:50 ..
drwx------  27 iMac  staff  -        874 Jan  9 23:24 Bootable Backup
drwx------@ 47 iMac  staff  -       1554 May 10 23:21 Iomega HDD
lrwxr-xr-x   1 root  admin  -          1 May  2 23:38 Macintosh HD -> /
drwx------   1 iMac  staff  -      16384 May 10 23:14 My Book
iMac:~ iMac$

Those "permissions" are normal for filesystems being served via network protocols. Besides being unnecessary, no amount of chmod will change those modes.


Quote:
Originally Posted by dentish
<snip>

I see lots of permission advice here. My problem is that I have a Time Capsule that has 3 external disks attached to it.

The disk will not show up on my network. I have to open Time Capsule and look at each disk and open folders through time capsule.

Everything was working well until took apart the network to refinish the floor in that room. Putting everything back in and hokking it up the same way give me this problem. BTW when I hook up the drives directly to my iMac, I have regular access and read/write privileges. Something is going on through time capsule.

Any thoughts?

You see lots of permissions advice here because the users here had permissions problems. Your problem seems to be network related (belongs in a different thread). Typically, the Time Capsule disk (and/or and externals attached to it) will "show up" in our sidebars via Bonjour... but mounting them requires some sort of procedure wherein a password is issued. Automating that process to any degree would involve using Keychain Access, so that future attempts at mounting seem to be a matter of just a few clicks (but the password is automatically supplied via the keychain).

Anyway... it sounds like a matter for a different thread.

--

EDIT: if anything... the perms on your boot disk are a bit too friendly (insecure):
Code:
drwxrwxrwx  46 root  admin  -       1632 May  3 21:50 ..
__________________

chown -R us /your\ base/

-HI-

.

Last edited by Hal Itosis; 05-19-2011 at 02:45 AM.
Hal Itosis is offline   Reply With Quote
Old 05-25-2011, 11:30 PM   #476
SlapShot3437
Guest
 
Posts: n/a
I am trying to finish backing up files from a portable My Book to my new hard drive but I have not had success with any Microsoft Office files because of the 1426 error code. I tried to follow along throughout the thread but I'm still a little lost. Hopefully I've got the right information pasted here. The help is much appreciated.

alex-mckays-macbook:~ slapshot3437$ ls -alo /Volumes
total 72
drwxrwxrwt@ 4 root 136 May 25 16:53 .
drwxrwxr-t 31 root 1122 May 25 16:55 ..
lrwxr-xr-x 1 root 1 May 25 08:57 Macintosh HD -> /
drwxrwxrwx 1 slapshot3437 32768 May 25 16:53 My Book
alex-mckays-macbook:~ slapshot3437$ id
uid=501(slapshot3437) gid=20(staff) groups=20(staff),98(_lpadmin),81(_appserveradm),79(_appserverusr),101(com.apple.sharepoint.group.1),80(admin)
alex-mckays-macbook:~ slapshot3437$ echo "done"
  Reply With Quote
Old 06-03-2011, 06:43 AM   #477
Zann
Prospect
 
Join Date: May 2011
Posts: 2
Greeting Trevor,

Thanks for your response and about posting for all to see.

Also, let me say hello to all you guys on this forum.This is the first time I’ve joined a forum and I really appreciate the help and comments I’m reading here.

Here's the results my Terminal is showing after using
ls -alOe /Volumes
id
echo "done"

Last login: Thu Jun *2 08:26:15 on ttys000
zannchan:~ zannchan$ ls -alOe /Volumes
id
echo "done"
total 12
drwxrwxrwt@ *12 root * * *admin *hidden *408 Jun *2 08:23 .
*0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxr-x * 31 root * * * * * admin * - * * * * *1122 Jun *1 10:32 ..
drw-r--r--@ *22 root * * * * * wheel * uchg * * *816 May 26 20:46 DATA DISK 3
drw-r--r--@ *34 zannchan * staff * * uchg * * 1224 May 25 09:34 Mac 2
drw-r--r--@ 125 zannchan * staff * * uchg * *4318 May 22 01:38 Mac 3
lrwxr-xr-x * * * 1 root * * * * *admin * - * * * * * * *1 May 31 09:46 Macintosh 1 -> /
drwxr--r-- * * *11 root * * * **wheel * - * * * * * *442 May 31 20:29 My Passport
drw-r--r--@ * 25 zannchan * staff * *uchg * * *918 May 22 01:29 Z-Disk 1
drw-r--r--@ * 11 zannchan * staff * *uchg * * *442 May 26 20:46 Z-Disk 2
drwxrwxrwx * *9 zannchan * staff * *uchg * * * 264 May 18 01:18 Zan Mac's Time Capsule
drwxrwxr-t * * 8 zannchan * staff * * - * * * * * 340 Oct 21 *2010 iLife '11 Install DVD
drwx------ * * * 1 zannchan * staff * *- * * * * * 2048 May 31 15:10 zannchan
zannchan:~ zannchan$ id
uid=501(zannchan) gid=20(staff) groups=20(staff),401(com.apple.access_screensharing),204(_developer),100(_lpoperator),98(_lpadmin),81(_appserveradm),80( admin),79(_appserverusr),61(localaccounts),12(everyone),402(com.apple.sharepoint.group.1),403(com.apple.sharepoint.group .2)
zannchan:~ zannchan$ echo "done"
done
zannchan:~ zannchan$*

I’m not sure what all this means in the terminal but I really appreciate if you can help me solve this locked hard drive problems.

Again thanks you all in advance.

Zan

Last edited by trevor; 06-03-2011 at 11:53 AM.
Zann is offline   Reply With Quote
Old 06-03-2011, 12:10 PM   #478
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,823
Huh, I'm not sure what all those asterisks are from, but let's see what we can do to fix you up.

Copy/paste the following commands into your Terminal. When it asks for your password, type it in. As you type the password, you won't see anything at all reflected back to your screen. This is normal. Hit Return at the end of typing in the password.

Also, if you've never used 'sudo' before, you'll get a warning message about it's use. This is normal for the first time any user account uses the sudo command in the Terminal.

sudo chflags nouchg /Volumes/*
sudo chmod 775 /Volumes/DATA\ DISK\ 3
sudo chmod 775 /Volumes/Mac\ 2
sudo chmod 775 /Volumes/Mac\ 3
sudo chmod 775 /Volumes/My\ Passport
sudo chmod 775 /Volumes/Z-Disk\ 1
sudo chmod 775 /Volumes/Z-Disk\ 2
echo "done"


The first command removes the 'uchg' flag from all volumes attached to your computer. 'uchg' is the user immutable flag, meaning it can be set by the user (you) and you set it in order to make a volume immutable, meaning unchangeable.

The second through seventh command sets the permissions on several volumes to be more open. Right now, your user zannchan can do some things on most volumes (read and write, anyway), but other users on the computer can only read. The change allows other users in the 'staff' group to do more than just read. If you deliberately are limiting other users on the computer, then let us know and we can adjust those commands to only open them up for zannchan and no other legitimate users.

The eighth command is filler to make it easier to copy/paste the whole set of commands.

Trevor
trevor is offline   Reply With Quote
Old 06-04-2011, 01:22 PM   #479
Zann
Prospect
 
Join Date: May 2011
Posts: 2
Hello Trevor,

Your set of commands worked out great. I can open all my disks now. Thanks you very very much for your help. Also, thanks for explaining what each command removes.

About the staff, I’m the only one using my computer. I’m not sure if this staff has anything to do with connecting to my time capsule? For some reason, time capsule still does not recognize my password. Maybe, I need to fix or change something else?


My terminal now looks like this.

Last login: Sun Jun 5 03:05:05 on console
zannchan:~ zannchan$ ls -alOe /Volumes
total 8
drwxrwxrwt@ 9 root admin hidden 306 Jun 5 03:05 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxrwx 31 root admin - 1122 Jun 5 03:05 ..
drwxrwxrwx@ 22 zannchan staff - 816 May 26 20:46 DATA DISK 3
drwxr--rwx@ 34 root wheel - 1224 May 25 09:34 Mac 2
drwxrwxrwx@ 125 root wheel - 4318 May 22 01:38 Mac 3
lrwxr-xr-x 1 root admin - 1 Jun 5 03:04 Macintosh 1 -> /
drwxr--r-- 11 zannchan staff - 442 May 31 20:29 My Passport
drwxrwxrwx@ 25 zannchan staff - 918 May 22 01:29 Z-Disk 1
drwxrwxrwx@ 11 zannchan staff - 442 May 26 20:46 Z-Disk 2
zannchan:~ zannchan$


At present, you have save me from pulling out my hair. Again, thanks Trevor for all your help.

Regards,

Zann
Zann is offline   Reply With Quote
Old 07-02-2011, 08:03 PM   #480
jondoe98
Prospect
 
Join Date: May 2011
Posts: 5
Please Help!!

Like everyone else my drive's permissions got corrupted and I need to open it for a project that was due yesterday. Can someone also help me at their earliest convenience as my job is on the line.

The drive with the issue is the "G-Drive Mini"



Last login: Sat Jul 2 17:52:10 on ttys000
VR-MacBookPro:~ v$ ls -alO /Volumes #
total 8
drwxrwxrwt@ 6 root admin hidden 204 Jul 2 17:58 .
drwxrwxr-x 30 root admin - 1088 Jul 2 13:11 ..
drwxrwxr-x 18 vyente staff - 680 Jul 2 14:54 Backup Iomega
drw-rw-rw-@ 42 vyente staff uchg 1496 May 29 00:58 G-DRIVE Mini
lrwxr-xr-x 1 root admin - 1 Jul 2 13:59 MAC OS -> /
drwxr-xr-x 1 vyente staff - 24576 Jul 1 17:04 Untitled
VR-MacBookPro:~ vyente$ id
uid=501(vyente) gid=20(staff) groups=20(staff),204(_developer),100(_lpoperator),98(_lpadmin),81(_appserveradm),80(admin),79(_appserverusr),61(localacc ounts),12(everyone),401(com.apple.access_screensharing),402(com.apple.sharepoint.group.1)
VR-MacBookPro:~ vyente$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS MAC OS 359.7 GB disk0s2
3: Microsoft Basic Data 140.1 GB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS G-DRIVE Mini 499.8 GB disk1s2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk3
1: EFI 209.7 MB disk3s1
2: Apple_HFS G-DRIVE 999.9 GB disk3s2
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk4
1: EFI 209.7 MB disk4s1
2: Apple_HFS Backup Iomega 2.0 TB disk4s2
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *640.1 GB disk5
1: Apple_HFS Untitled 1 640.1 GB disk5s1
VR-MacBookPro:~ vyente$ df
Filesystem 512-blocks Used Available Capacity Mounted on
/dev/disk0s2 702545920 274573880 427460040 40% /
devfs 236 236 0 100% /dev
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
/dev/disk0s3 273553400 126172840 147380560 47% /Volumes/Untitled
/dev/disk4s2 3906357344 1838205048 2068152296 48% /Volumes/Backup Iomega
/dev/disk1s2 976101344 886920080 89181264 91% /Volumes/G-DRIVE Mini
VR-MacBookPro:~ vyente$ echo "done"
done
VR-MacBookPro:~ vyente$
jondoe98 is offline   Reply With Quote
Reply

Tags
custom access permission, disk locked, external hard drive, no access, permission, permissions

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 07:08 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, 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.