Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't change permissions

Leopard 10.5.8, Power Mac G4 MDD DP 1.0 GHz, 1.5 GB RAM

I am not sure where to post this, but I think it should be here. The problem manifested itself when I tried to authorize music in iTunes 10.2.1. Would not allow me too. I think because /Users/Shared folder is missing or I have no access. Also, iTunes launches with a warning “An unknown error occurred (-50)”. This error appears at various other times as well.

My login account is an admin account. I tried the Apple recommendations:
· In the Finder, choose Go to Folder from the Go menu.
· Type: "/Users" (without quotes) and click Go.

**Warning: The folder cannot be found**

I then opened terminal and entered:

sudo mkdir -p /Users/Shared/
return
entered password
return

mkdir: /Users/Shared: Operation not permitted

Somehow, it seems it do not have proper permissions for access to my User folder. I ran ‘repair permissions’ and received:

Open error 1: “Operations not permitted” on Users/Shared
Open error 1: “Operations not permitted” on Users
Open error 1: “Operations not permitted” on Users/.localized
Open error 1: “Operations not permitted” on Users/Shared/.localized

I logged in again as ‘root’ and ran ‘repair permissions’ again and received:

Open error 1: “Operations not permitted” on Users/Shared
Open error 1: “Operations not permitted” on Users
Open error 1: “Operations not permitted” on Users/.localized
Open error 1: “Operations not permitted” on Users/Shared/.localized

How do I repair permissions for root and admin accounts?
I have no Leopard install discs, as I purchased this computer used.

Thx

Dave

PowerMac G4-400 (AGP)/G4-MDD 1.0 DP, Mac OS X (10.5.8)

Posted on Mar 31, 2011 2:32 PM

Reply
22 replies

Mar 31, 2011 7:37 PM in response to Kappy

Tried both of those commands in Terminal, then checked as follows:

In the Finder, chose Go to Folder from the Go menu.
Type: "/Users" (without quotes) and click Go.

**Warning: The folder cannot be found**

I then opened terminal and entered:
sudo mkdir -p /Users/Shared/
return
entered password
return
mkdir: /Users/Shared: Operation not permitted

I ran repair permissions in disk utility again and received:
Open error 1: “Operations not permitted” on Users/Shared
Open error 1: “Operations not permitted” on Users
Open error 1: “Operations not permitted” on Users/.localized
Open error 1: “Operations not permitted” on Users/Shared/.localized

Nothing has changed, still no permissions....

Mar 31, 2011 8:40 PM in response to Kappy

Kappy wrote:
If you have no /Users folder how are you logging onto the machine?


Well, that seems to be the gist of it here, I am logged into my admin account (NOT 'root'). I have apps working, wireless, Internet (using the machine now).

here is my last Terminal session:
Macintosh:~ username$ cd /Users
-bash: cd: /Users: Operation not permitted
Macintosh:~ username$ mkdir -p /Users
Macintosh:~ username$ mkdir -p /Users/Shared
mkdir: /Users/Shared: Operation not permitted
Macintosh:~ username$ cd /Users
-bash: cd: /Users: Operation not permitted
Macintosh:~ username$ sudo mkdir -p /Users
Password:
Macintosh:~ username$ sudo mkdir -p /Users/Shared/
mkdir: /Users/Shared: Operation not permitted
Macintosh:~ username$ sudo chmod 777 /Users/Shared/
chmod: /Users/Shared/: Operation not permitted
Macintosh:~ username$ sudo chown root:admin /Users
Macintosh:~ username$ sudo chown -R `id -un`:`id -gn` ~
Macintosh:~ username$ cd /Users
-bash: cd: /Users: Operation not permitted
Macintosh:~ davidraye$ sudo mkdir -p /Users/Shared/
Password:
mkdir: /Users/Shared: Operation not permitted

When I open the Leopard HDD from the Desktop it shows:
Applications
Desktop
Desktop Folder
Developer
Library
Local > Users > adminacct1, adminacct2 (Home), Shared
Localtemp
System
User Guide Information

Is this where the folder Users is supposed to be?

Mar 31, 2011 8:52 PM in response to David Raye 1x

The Users folder is at the root where the Applications, Library, and System folders are located. Looks to me that if you have trashed your Users folder then you have also trashed your account. I think you will need to reinstall OS X. You should be able to do that as follows:

How to Perform an Archive and Install

An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.

1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.

Repairing the Hard Drive and Permissions

Boot from your Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. If all is well quit DU and return to the installer. Proceed to the next step.

If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.

3. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. (*In your case do not check this option since you have no user accounts*.) Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.

4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.

5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.

6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

Mar 31, 2011 9:23 PM in response to Kappy

Kappy wrote:
The Users folder is at the root where the Applications, Library, and System folders are located. Looks to me that if you have trashed your Users folder then you have also trashed your account. I think you will need to reinstall OS X. You should be able to do that as follows:


I bought this computer used and do NOT have Leopard install disks.
The idea was to get a faster Mac with Leopard already on it.
I know this computer came from Univ Wisc-Stephens Point (there was a server in Directory Utility listed as uwsp.edu). I suspect this OS was installed via network. Is this why Users is in Local folder.

I tried to drag it from Local to the root pane
warning: The item "Users" cannot be replaced because it it invisible.

Then i tried to make a new folder in the root pane
warning: The name "Users" is already taken. Please choose a different name.

So, it seems that there is an invisible 'Users" folder in the root pane.

It would seem that one should be able to make this folder visible and move the contents from Leopard HDD/Local/Users to Leopard HDD/Users if that is where it is supposed to be.

Can that be done?

Mar 31, 2011 9:28 PM in response to David Raye 1x

Most likely the Users folder and user accounts were on a network drive.

You can make a folder visible: sudo chflags nohidden /pathto/foldername. But that's won't solve your problem necessarily. One can still operate on invisible files using sudo. But in your case you may need to be 'root' to get anything done. Try booting into single-user mode. At the prompt enter:
/sbin/mount -uw /

This will set the filesystem to write mode.

Mar 31, 2011 9:48 PM in response to Kappy

I tried this (from Terminal):

Macintosh:~ username$ sudo chflags nohidden /HDD Name/Users
Password:
chflags: /HDD Name/Users: No such file or directory
Macintosh:~ username$ sudo chflags nohidden /root/Users
chflags: /root/Users: No such file or directory
Macintosh:~ username$ sudo chflags nohidden /Users
chflags: /Users: Operation not permitted

I can log in as 'root' and get use of Terminal

If I boot into single user mode and enter
:/ root# /sbin/mount -uw /

what do would I do after that?

Apr 1, 2011 12:47 PM in response to Kappy

*logged into single user mode*
;/ root# /sbin/mount -uw /
:/ root# chflags nohidden /Volumes/HDD Name/Users
:/ root# chown root:admin /Users
:/ root# chown -R `id -un`:`id -gn` ~
:/ root# reboot

Logged in as root to Leopard
Terminal results:

*Macintosh:~ root# sudo ls*
.CFUserTextEncoding
.sh_history
.Trash
.forward
.profile
Downloads
Pictures
Music
Movies
Desktop
Documents
Library

*Macintosh:~ root# sudo ls /*
.DS_Store
.fseventsd
.Spotlight-V100
.Trashes
.Users
.bash_history
.com.apple.timemachine.supported
.com.bombich.ccc.start_time
.hotfiles.btree
.vol
bin
cores
dev
etc
home
mach.sym
mach_kernel
mach_kernel.ctfsys
net
opt
private
sbin
tmp
usr
var
TheVolumeSettingsFolder
Trash
User Guides And Information
Users
Volumes
Applications
System
Desktop
Desktop DB
Desktop DF
Desktop Folder
Developer
Downloads
Library
Local
Localtemp
Network

When i checked Get Info of root Home folder:
root > read and write
wheel > read only
When I tried to change wheel to read and write
Alert: Operation could not be completed (An unexpected error occurred, error code -50)
Again ran 'repair permissions from disk utility

Open error 1: "Operation not permitted" on Users/Shared
Open error 1: "Operation not permitted" on Users
Open error 1: "Operation not permitted" on Users/.localized
Open error 1: "Operation not permitted" on Users/Shared/.localized

seems as though Users folder is there, just can't be modified/deleted/accessed/made visible.....

Apr 1, 2011 1:00 PM in response to David Raye 1x

What do you see if you do:
ls /Users

while in single-user mode?

I can see the contents of a Home folder. I can see that a Users folder is present at the root level. But you did not do the above to see what's in the /Users folder.

Now if you use ls -al you should get a listing that includes the current privileges assigned for each directory entry. In particular:
ls -al /Users/*
and
ls -al /Users


The default privileges for the /Users folder are:
Owner=system with r/w
Group=admin with r/o
Everyone with r/o

The default privileges of a user's account:
Owner=username with r/w
Group=staff with r/o or r/w
Everyone with r/o


I guess I made an assumption I should not have. When you enter - chflags nohidden /Volumes/HDD Name/Users - if there are any spaces in the device name you need to enclose the path in quotes, e.g., chflags no hidden "/Volumes/HDD Name/Users".

Apr 1, 2011 2:07 PM in response to Kappy

In single user mode:
:/ root# /sbin/mount -uw /

:/ root# ls /Users
.localized
Shared

:/ root# ls -al /Users/*
total 0
drwxrwxrwt 3 root wheel 102 Apr 1 1976
drwxr-xr-x 4 root admin 136 Apr 1 1976
-rw-r--r-- 1 root wheel 0 Sep 23 2007 , localized

:/ root# ls -al /Users
total 0
drwxr-xr-x 4 root admin 136 Apr 1 1976
drwxrwr-t@ 46 root admin 1632 Apr 1 1976
-rw-r--r-- 1 root wheel 0 Sep 23 2007, localized
drwxrwxrwt 3 root wheel 102 Apr 1 1976 Shared

:/ root# ls
.DS_Store
.Spotlight-V100
.Trashes
.Users
.bash_history
.com.apple.timemachine.supported
.com.bombich.ccc.start_time
.feseventsd
.hotfiles.btree
.vol
Applications
Desktop
Desktop DB
Desktop DF
Desktop Folder
Developer
Downloads
Library
Local
Local Temp
Network
System
TheVolumesSettingsFolder
Trash
User Guides and Information
Users
Volumes
bin
cores
dev
etc
home
mach.sys
mach_kernel
mach_kernel.ctfsys
net
opt
private
sbin
tmp
usr
var

:/ root# chflags nohidden "/Volumes/HDD Name/Users"
:/ root# chown root:admin /Users
:/ root# chown -R `id -un`:`id -gn` ~
:/ root# reboot
(HDD is named LEOPARD-200)

logged in as root to Leopard
results from Terminal
Macintosh:~ root# sudo ls -al /Users
ls: Users: Operation not permitted
Macintosh:~ root# sudo ls -al /Users/*
ls: /Users/*: Operation not permitted

Apr 1, 2011 2:49 PM in response to Kappy

Thx

I tried this procedure once:

Booted to single user mode
:/ root# /sbin/mount -uaw

:/ root# rm /var/db/.applesetupdone

:/ root# reboot
waited for the animation to complete
completed the ‘Welcome Wizard” (setup, registration, account creation)
rebooted
I did have the new account I created; however, there was NO home folder.
It gives the notification:
“The home folder for user "xxxxxxx" isn't located in the usual place or can't be accessed.”

The procedure you have referenced looks different
$ mount -uw /
$ rm -R /Library/Preferences/
$ rm -R /Users/username/

$ rm /var/db/dslocal/nodes/Default/users/username.plist
$ rm /var/db/.AppleSetupDone

I am assuming the next step is reboot
$ reboot

and I am assuming $ = :/ root#, which is always there

the first command $ mount -uw /
is that the same as :/ root# /sbin/mount -uw /
the /sbin portion is not there

I currently have the following accounts on Leopard
root, username1, username2, guest

should i delete these first, if this procedure works one of those usenames is the one i'd like to use

Can't change permissions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.