I changed my admin user name using System Preferences/User and Groups, but the name didn't change and the Admin user account was changed to standard and lost the admin rights. I've read similar questions here and solutions using single-user mode, but it seems like the /sbin/fsck -fy and the rm /var/db/ .AppleSetupDone commands are not working on my MacbookPro 2012 running on High Sierra. Any help would be appreciated. Thanks
1333
On my mac I have 2 accounts and the both are normal account. So in this moment I don't have a Administrator account, only one that was in the past a administrator, but now is not.  How I can have again a Administrator account?
8602
I recently changed my Mac password, and a System Preferences notification comes up, asking me to "confirm Mac password to continue using iCloud":    However, when I click Continue, all that happens is a dropdown appears asking me to continue, then when I continue, nothing happens. I have no idea why this is happening, does anyone have any feedback?
77917
Is there any way to add, remove, or modify user accounts via the command line? I'm not talking about an account for a system process or daemon, I mean is there any way to add a user account, change, user real names, icons, FileVault protection, Admin/normal/limited user status, and basically do everything else that can be done in the System Preferences Users preference pane, but via some command line utility?
90269
I realized that the hostname had changed while I was doing some work using terminal in OS X Yosemite. I thought there might be an IP address conflict so I reset it. However I still get another device's name (someone else's iPhone, to be exact) when I use the hostname command:  Last login: Fri May  1 15:52:42 on ttys000 SomeonesiPhone:~ irem$  SomeonesiPhone:~ irem$ hostname SomeonesiPhone.wireless.duke.local   What's going on and how can I fix this?  It appears the IP address has not changed. But the address that I get by doing ipconfig getifaddr en0 is different from my public IP address.  I looked up my public IP address using Google, like this:
25864
I have an install of Windows 7 that I've already put a few days into. Today I realized I've made a mistake in the username and it's driving me nuts (my personal OCD).  While changing the physical folder name is perhaps possible, though quite involved, I do not want to open that can of worms.  What I want to do is simply change the username I give when the login prompt shows up. I thought it's possible by just renaming the user account in the User Accounts but that didn't work.  Is it possible to do then? Or is the only way to create another user and spend hour migrating everything I'd already customized to that user?
69776
I'm running Ubuntu 12.10 desktop 32 bit. Currently I have only a user, type administrator. I'd like to create another administrator user but I keep getting the following error:  Failed to create user GDBus.Error:org.freedesktop.Accounts.Error.Failed: running '/usr/sbin/adduser' failed: /usr/sbin/adduser returned an error (1): adduser: Please enter a username matching the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable.  Use the `--force-badname' option to relax this check or reconfigure NAME_REGEX.  Any suggestion is appreciated.
90377
I created a new Admin account in Sierra High and needed to delete the previous admin account which is marked now as the standard user. However, after unlocking as admin and selecting the respective user that I would like to delete, I see the - sign is marked as Grey.     This is all accounts and I would like to delete the mac user account,   $ dscacheutil -q user | grep -A 3 -B 2 -e uid:\ 5'[0-9][0-9]' name: mac password: ******** uid: 501 gid: 20 dir: /Users/mac shell: /bin/bash -- -- name: chaklader password: ******** uid: 502 gid: 20 dir: /Users/chaklader shell: /bin/bash   How do I delete the respective account? I find a code snippet to run on the terminal, i.e, sudo /usr/bin/dscl . -delete "/Users/mac". Should I try that and will work out?  Update:  As an answer suggested, I'm not logged in to the the fast user switching menu.    As it was asked, I run who in the terminal and get the result,   $ who  chaklader console  Dec 28 06:01  chaklader ttys000  Dec 28 14:51   So, in brief the other user, mac was not in the terminal.
54440
Ever since I upgraded my 2009 iMac to Mavericks, I often get a message stating 'The name of your computer "Foo" is already in use on this network. The name has been changed to "Foo (2)".'. The number at the end will continuously increment over time as the same error keeps happening.  It is trivial enough to rename the computer back, but is there a way to prevent this from happening in future? I had an old Macbook Pro (running Mountain Lion) that had the same issue, but my early 2013 MBP running Mavericks doesn't seem to be suffering from this issue.
64340
I get the command set identity_insert table_name on;, but for some reason it is not actually changing the attribute. I've done it with the account that I created the table with, and I've also created an 'admin' account and gave it permissions to do anything (to the best of my knowledge).    Whenever I run the command under either account I get the result of '0 rows affected', then I am unable to run the query to insert the rows I wish to insert with the following error:     Cannot insert explicit value for identity column in table 'table_name' when IDENTITY_INSERT is set to OFF.     Additionally I've tried to include the schema name in the query like:  set identity_insert mySchema.table_name on;    but I get the following error:     Cannot find the object "mySchema.table_name" because it does not exist or you do not have permissions.   Also of note, my project looks like:  localhost\SQLEXPRESS -Databases --System Databases --mySchema   Does anyone know a solution to this problem?
49035
I need a command to list all users as well as commands to add, delete and modify users from terminal - any commands that could help in administrating user accounts easily by terminal.
113927
I'm a Windows 7 user i used to change the username from the control panel. But I would like to know how to change it using the CLI not the GUI I have searched alot but didn't find the answer or it was unclear. A simple explanation to the code would be great
56277
I usually changed my MAC address with the following commands:  # Get a New MAC Address openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' # Changing the MAC Address sudo ifconfig en0 ether d4:33:a3:ed:f2:12   When I enter:  ifconfig en0 |grep ether   I still get the old MAC address :( - Who can help? I would love to have a script or system to automatically change it on system boot.
52059
My wife forgot the password to her Apple ID account. Her Macbook Air (OS X Yosemite) restarted to install some updates. She has her user account set up through her Apple ID account.  Since she forgot the password she reset it from my laptop.  She can log in to iCloud and Apple ID with the new password, but cannot log in with the new password on the Air.  When she tries to log in she is greeted with this message:     "This account uses an iCloud password to log in. If you need to change   the password, use another device to change it at appleid.apple.com."
59930
How do I change from user to superuser (root)? What command do I use in the Terminal to switch to root? I have tried --help but I get lost with all the listed help. I'm looking for a recent download/install so I can use it.
66265
I'm test-running a Joomla installation (locally, using WAMP) with an MySQL database supporting it...this is in preparation to moving everything online once I have it configured.    I was working in phpMyAdmin to change the password of a superuser I had set up with a login-name other than "root."  While doing so, I saw three additional "root" users, and on the phpMyAdmin home page, a warning about these root users not having a password.  I thought that since I created my own superuser with "All Privileges," I didn't need the root users...so I deleted them.  Immediately things stopped working...and now, when I click on the "Users" tab in phpMyAdmin, it simply returns a red bar that says "No Privileges"...my specific superuser is gone.  However, it seems I can still move around in phpMyAdmin (maybe because I'm still logged in?).  Could someone please tell me step-by-step how (if?) I can re-add the root users using phpMyAdmin?  I see instructions posted in various places, but they seem to address users who are using terminal windows or some other program.  I'd  hate to see months of work go down the drain!  EDIT:  Using Windows, I've tried the following:   There is no file called "resetroot.bat" anywhere in the wamp/sql folders, as someone suggested...so that option is out.  I've tried to access MySQL using a terminal connection:  in the MySQL root folder there is a file called mysql.exe that seems to grant this when executed (there is no "mysql_safe.exe" as some solutions have suggested).  However, I have been unsuccessful in starting mysql with the --skip-grant-tables option from outside mysql.exe, and when I try to do it from within mysql.exe, I just get an odd prompt ("->") and no other commands seem to work.   Please keep in mind that I am a newbie at this!  I am trying different things, but without any success...that is why I'll probably need step-by-step instructions.
31015
Currently Running: macOS Catalina 10.15.1 Issue: Ever since I upgraded to Catalina, macOS is not allowing me to change read and write permissions on system protected files, hence, I am not able to tweak the system as per my likes and dislikes. Steps Tried To Solve The Issue: SIP, always remains . So, no question arises regarding any conflict with system integrity protection. I have also tried to force change the permissions on the system files I want to edit using certain brute force commands, which I can't recall the name of, right now. But, I have tried. As of now, I am still unable to change read and write permissions on system protected files and resources.
101627
I am trying to add a new user to my ubuntu 14.04 os. I go System Settings -> User Accounts and try to click the [+] button, but nothing happens it is grayed out. The system did not ask me for administrator password, why? Is this a bug?