Re: Admin account suddenly changing to a standard one
- From: Dave Seaman <dseaman@xxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 14:00:45 +0000 (UTC)
On Tue, 24 Jul 2007 14:23:45 +0100, George wrote:
Dear All,
I am having the following problem on Panther: I was trying to change the
root password by typing su at the terminal's prompt.
Why are you doing that? What are you trying to accomplish that can't be done
using sudo?
I then read an
article online saying that you could achieve it by opening up NetInfo
Manager, then selecting users and editing the root's user password with
the password of a user you already know what it is (as you would be
copying asterisks as NetInfo shows hashed passwords). I did that (su kept
not working) and I changed the short name of one of my other accounts
(with admin privileges, the only one having them). Now, when I rebooted
the system I could login but the account whose short name I changed - the
account with the admin privileges - is no longer recognised as an admin
one, but as a standard one. When I try to change the short name back, it
will tell I have no rights to update the /Users/newshortname copy.
Is there anything I can do to make it an admin account again (apologies if
it sounds confusing, I tried to give every detail possible)?
I look forward to hearing from you soon.
Thanks in advance.
It's clear that you have no business fiddling with system internals. If
you will explain what you were really trying to do, several people will
probably explain how to proceed without using su or NetInfo Manager. The
sudo command gives you temporary root access, which is generally all you
need for administrative tasks.
As to solving your predicament, I have never had to do this, but I
believe a simple solution is to boot into single-user mode (hold down
cmd-S while booting). You will get a text-based screen with several
messages, ending with a prompt:
localhost:/ root#
(Note: you are now running as root. This is not, however, the
recommended way of running routine administrative tasks, which is to use
the sudo command while running under an admin account.)
There will be messages explaining that the file system is mounted
read-only. You want to delete a certain file, which means you must first
mount the filesystem in read-write mode. The instructions for doing that
are on the screen above the prompt. The commands are:
/sbin/fsck -fy
/sbin/mount -uw /
Once that is done, you should type the commands:
rm /var/db/.AppleSetupDone
reboot
On restart, you will go through the procedure to create a new admin
account, the same as when you turned on the machine for the first time.
--
Dave Seaman
Oral Arguments in Mumia Abu-Jamal Case heard May 17
U.S. Court of Appeals, Third Circuit
<http://www.abu-jamal-news.com/>
.
- References:
- Admin account suddenly changing to a standard one
- From: George
- Admin account suddenly changing to a standard one
- Prev by Date: Re: Lost apps - can I ressurect them?
- Next by Date: Re: Admin account suddenly changing to a standard one
- Previous by thread: Admin account suddenly changing to a standard one
- Next by thread: Re: Admin account suddenly changing to a standard one
- Index(es):
Relevant Pages
|