The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Hardware and Peripherals (http://hintsforums.macworld.com/forumdisplay.php?f=21)
-   -   "custom access" of my external hard drive problem <HELP!!> (http://hintsforums.macworld.com/showthread.php?t=107165)

Gen 11-16-2009 07:24 PM

hi Hayne,

here is the result:

Last login: Tue Nov 17 08:21:40 on console
2:~ genis$ sudo chmod +x /Volumes/Gen

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
chmod: Unable to change file mode on /Volumes/Gen: Operation not permitted
2:~ genis$

i add a password for my imac and do the sudo command again.

please advise.

thanks

Las_Vegas 11-16-2009 10:00 PM

You cannot use the sudo command with a blank password. You must set and Admin password.

Gen 11-16-2009 10:36 PM

hi Las-Vegas,

thank you for your answer.

but i already set my new password in system preference-->account.

but it seems i cannot type anything when the terminal ask me to enter my password.(just like in my result i paste here, nothing was displayed after "password")

i do not know why.
please kindly advise if anything wrong.

thank you

Genis

hayne 11-17-2009 12:55 AM

Quote:

Originally Posted by Gen (Post 561808)
it seems i cannot type anything when the terminal ask me to enter my password.(just like in my result i paste here, nothing was displayed after "password")

That's normal - nothing is shown in Terminal when you enter a password - this is for security reasons.

So it seems that the 'sudo chmod' command ran, but you still got "Operation not permitted".
I think this must be due to the ACLs that are present on the parent (/Volumes) folder.

Maybe someone who has Snow Leopard (10.6) will chime in here to tell us what the correct ACLs for the "/Volumes" folder should be.

Gen 11-17-2009 01:33 AM

hi Hayne,

anyother method i can try now?
i am so worry about my external drive.

kindly help. please...

thanks

Genis

hayne 11-17-2009 08:07 AM

Quote:

Originally Posted by Gen (Post 561703)
193:~ genis$ ls -aOle /Volumes
total 8
drwxrwxrwt@ 5 root admin hidden 170 11 17 00:01 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxr-t@ 30 root admin - 1088 11 10 21:05 ..
drwxr-xr-x 1 genis staff - 4096 11 14 11:37 BOOTCAMP
drw-rw-r--@ 26 genis staff uchg 952 10 27 21:01 Gen
lrwxr-xr-x 1 root admin - 1 11 17 2009 Genis -> /

Oh - I must have been tired when I looked at these results before - I didn't notice the 'uchg' flag on the Gen folder.
That is probably what is causing the problem.
So let's remove it (it is a "locked" flag).

Run the following commands as usual via copy & paste and show us the results:


sudo chflags nouchg /Volumes/Gen
ls -aOle /Volumes
echo "done"

Gen 11-17-2009 09:47 AM

1 Attachment(s)
Hi Hayne,

result:

128:~ genis$ sudo chflags nouchg /Volumes/Gen
Password:
128:~ genis$

the lock next to the external drive "Gen" is removed.

please indicate the next step!

thank you

Genis

Gen 11-17-2009 09:52 AM

1 Attachment(s)
Hi Hayne,

i am able to change the permission and access right after the removal of the lock beside.

everything back to normal now!
i am so excite and really really thank you for your kindly and patient help!!!!!!!!!!!!!!!!!!!!

you save my world!
welcome to email me genis.cheung@yahoo.com when you are visiting Hong Kong. i owe you a big meal!

and thank you to Las_Vegas too.
you guys are awesome!

thanks again

Genis

hayne 11-17-2009 09:52 AM

The next step is to try again to add "execute" permission to that folder:


sudo chmod +x /Volumes/Gen
ls -aOle /Volumes
echo "done"

Gen 11-17-2009 10:39 AM

hi hayne,

if my external drive is able to be accessed right now, should i keep entering the command?

thank you again!

Genis

hayne 11-17-2009 10:54 AM

No - I posted that (post #29) in response to your "what is the next step?" in post #27.


All times are GMT -5. The time now is 09:38 AM.

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.