[nmglug] messed up permissions!

Brian O'Keefe okeefe at cybermesa.com
Mon Apr 10 08:18:14 PDT 2006


On Monday 10 April 2006 8:15 am, Gary Sandine wrote:
I ran the command and got "permission denied" for every file. I assume I just 
run the command as "sudo" but I really want to be sure. There are alot of 
files that will be changed-probably rightly so. Just really cautious.

[Brian-OKeefes-Computer:~] brianoke% chown -R 
1000 /volumes/UNTITLED/home/brianokeefe
chown: changing ownership of `/volumes/UNTITLED/home/brianokeefe': Operation 
not permitted....
and on for many files.
> On Sun, Apr 09, 2006 at 11:10:51PM -0600, Brian O'Keefe wrote:
> > On Sunday 09 April 2006 10:34 pm, Gary Sandine wrote:
> > I did before and got the same result so I ran:
> > [Brian-OKeefes-Computer:~] brianoke% ls -al /volumes/UNTITLED/home*
> > total 20
> > drwxr-xr-x    3 brianoke wheel        4096 Oct 15 17:41 .
> > drwxr-xr-x   22 brianoke wheel        4096 Apr  8 09:17 ..
> > -rw-r--r--    1 root     wheel        6148 Oct 18 14:04 .DS_Store
> > drwxr-xr-x   88 brianoke 1000         4096 Apr  9 11:19 brianokeefe
> >
> > Is this what you are looking for?
>
> Yeah, I think I know what's going on.  I bet your UID (numeric
> User ID) in Ubuntu is 1000 and your UID in OS X is some other number.
> Your Ubuntu home directory is owned by the OS X UID, not the Ubuntu
> UID.
>
> What does this report?
>
> grep brianoke /volumes/UNTITLED/etc/passwd
>
> If your UID is 1000 (I bet that's what it is), do this:
>
> chown -R 1000 /volumes/UNTITLED/home/brianoke
>
> and you should be good.  Your OS X UID is some other number.  See
> it by logging in to OS X as user brianoke and doing:
>
> echo $UID
>
> in a terminal.




More information about the nmglug mailing list