Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [user-account]

User accounts facilitate different agents and settings on a computer. User accounts have a login name and a password, along with a home directory on the filesystem.

27
votes
4answers
40k views

What steps are needed to create a new user from the command line?

What commands (or script) can create a fully functional user account on Mountain Lion, running only from the command line via terminal or ssh. It looks like an existing pair of answers might work, ...
15
votes
6answers
8k views

How to launch a GUI application in another user's graphical session?

I'm trying to figure out how to launch a GUI application as another user that's logged in interactively, in that user's graphical session. For example, say I have two users, foo and bar. Both are ...
5
votes
3answers
6k views

How can I automatically log out the guest account after a period of inactivity?

As part of a kiosk system, I have set up a Guest account on a Mac OS X Snow Leopard computer. This account is cleared every time someone logs off the computer. However, plenty of people don't. Is ...
10
votes
2answers
4k views

Can user accounts be managed via the command line?

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, ...
13
votes
5answers
14k views

Make a script/app run on logout

We all know that Mac OS X has the very useful Login Items functionality which lets you, among other things, set up apps/scripts to run when you log in. I'm looking for a way to setup a list of ...
13
votes
3answers
25k views

Is it necessary to eject external drives before logging out, restarting, or shutting down?

Is it necessary or recommended practice to eject external drives before logging out, restarting, or shutting down? (The drives are not being unplugged.) BTW, I am aware that I need to eject my ...
12
votes
3answers
9k views

How do I recover the administrator or root password on OS X?

I received a hand me down white MacBook with 10.4 on it and it automatically logs into a user account that isn't able to change much in the preference pane. How do I recover or change the ...
28
votes
7answers
74k views

Way to logout a user from the command line in OS X 10.9

I want to logout my Mac OS X from the command line. My OS X version is 10.9. I tried command pkill -KILL -u uid, but this command didn't work out. Is there a command that can be used to log out a user ...
4
votes
2answers
5k views

username different in Terminal and System Preferences

I am new to Mac. Recently I realized something for usernames. When I type whoami in Terminal. It returns apple. However in System Preferences>Users and Groups" there is only one user and it says "...
14
votes
3answers
6k views

Is there a safe way to move the /Users folder to a separate volume/drive?

I have an SSD on the way and will be moving my HDD to the optical bay slot in my MBP. I want to boot from the SSD and store my /Users folder on the HDD. I've seen the way that everyone suggest ...
16
votes
4answers
13k views

How to share an iTunes library with other user accounts on the same machine?

I would like to share the iTunes library my the account of my wife. But (in importance order): files should not be duplicated playlist and rating are user dependent podcast are user dependent ...
15
votes
1answer
9k views

Create a remote only user in OS X?

I'd like to create a user on OS X that has remote ssh login privileges where they can access a certain folder /path/to/the/goods/ and add/modify/delete files manually or via rsync while the rest of ...
27
votes
5answers
94k views

Change Appstore user from MacBook?

I bought a used MacBook Pro, and I need to update some software. When I click the 'update all' button to proceed, it asks for the App Store password of the old user's account: How do I remove the ...
17
votes
4answers
28k views

Can I start an application as another user without actually switching users?

Is there a way to start an application as another user so that the started application would use the other user's preferences/history/resources et al? For example: I've logged in as Alice and I'd ...
13
votes
1answer
2k views

Disable Shift Cmd Q for logout

I would like to disable Shift+Command+Q keyboard shortcut for Log Out. I am using Karabiner at the moment, but I only managed to disable it completely using the following xml: <?xml version="1....
7
votes
2answers
5k views

How to enable fast user switching when Login Options are disabled?

I'm not sure how this machine was setup, but I do have control over it now as a local admin. I need to enable fast user switching, but the option is greyed out along with some others. This is after ...
9
votes
5answers
1k views

How to share .bashrc files between two mac user accounts

I have set up two user logins on my computer, one for home and one for work. I would like to be able to share any of my bash and vim settings between the two users. Is there anyway to do this? Thus ...
4
votes
1answer
8k views

How to get rid of the “Other…”-Account on the login screen?

Suddenly my MBP shows an "Other..."-Account on the login screen. I searched for a solution to get rid of it and found a couple of answers that say I have somehow activated/enabled the root user. All I ...
3
votes
2answers
599 views

How can I access the same account (and files) from either of two Macs?

I have two Macs in two rooms. Both have just macOS (High Sierra). I would like to log into either one from my user account, and find my files the way I last edited them on either Mac. Accessing one'...
3
votes
1answer
1k views

how to avoid the “downloaded application” warning for a Standard User

This is a followup on this post of mine: Application permissions for Standard user I'm now running MacOS High Sierra 10.13.5 and this problem is still irritating. I use my Mac as a Standard user. ...
2
votes
2answers
2k views

How can I automatically run an AppleScript on shutdown or logout?

I am more used to the Javascript style event handlers, but is there a similar thing in applescript that listens to system events like logout or shutdown to execute code or is there a way to have an ...
0
votes
2answers
516 views

Is there a way to change a short name in OS X

I am trying change the Short Name for an account on my computer. Is there an easy way to do this?
7
votes
3answers
3k views

Can I remove the “Log Out” item from the Apple menu?

Is it possible to remove "Log Out" from the Apple Menu? I know there used to be a tool that let you customize the Apple Menu (can't remember the name) but I doubt it's still working on Lion. ...
0
votes
1answer
8k views

Lost access to admin user account in my mac book pro

I changed Account name property on my mac book pro in System Preferences-> User & Groups-> Advanced Options. I attached a picture of then the window (Not my account window, now i cannot access ...
94
votes
9answers
35k views

Is it 'OK' to use the root user as a normal user?

I have enabled the root user on my Mac so I can log into it and run Finder etc. Being the lazy person that I am, just transferred everything from my home directory to /var/root. I'm not too sure of ...
17
votes
6answers
10k views

What point is there in using an everyday non-admin account on OS X?

This piece of advice is old but is coming back into fashion. I have seen it a lot recently, on a number of Mac websites or forums. "Your ‘everyday’ user account should not be an admin account. It ...
38
votes
8answers
42k views

When I open Terminal, I get an “I have no name!” prompt

Suddenly, this morning, I open a Terminal window and I get this: I have no name!@macbook:~$ whoami 502 ** I am not a number! I am a human being! ** What gives? Anyone know what I need to do to ...
9
votes
2answers
9k views

How can I temporarily suspend some users, hiding them from the login screen?

I have to manage a shared OSX workstation that is used by a rotating cast of characters throughout the year. The login screen quickly becomes cumbersome when users that aren't even around for a while ...
6
votes
3answers
13k views

How to keep monitor off when logging in remotely

I'm managing an 8-core mac server (fully updated to Mac OSX 10.8.4, all other software is up to date). Multiple users can login remotely to use the machine. Whenever someone logs in remotely, the ...
7
votes
2answers
7k views

How to control order of startup items for users at login?

I have seen a few applications with mixed reviews that will allow a user to change the order of startup items. I would simply prefer the "bare metal" method and stick to using the shell or the Open ...
7
votes
1answer
3k views

How to delete MacPorts user after using the Migration Assistant

My 2012 MacBook Air (11", i7 2GHz 8GB RAM) crashed and I had to erase the SSD and re-install macOS High Sierra with the Internet Recovery Mode tools. Once I had the working OS, I used the Migration ...
3
votes
3answers
10k views

Remove “Other…” from Login screen

I've just upgraded to El Capitan from Mountain Lion, and now an Other... icon appears right next to my usual user-account (admin account) on the login screen. When I click on it, I can log in, as ...
10
votes
5answers
11k views

Where does OS X store the profile photo it takes when you first create an account?

When you first create your OS X login account it takes a picture of you. Where does that picture get stored? I can't find it in ~/Pictures or ~/Library.
6
votes
4answers
4k views

For a FileVault user of Mountain Lion: can I avoid the automated login, which normally follows unlock of the encrypted startup volume?

I have FileVault enabled with two users: AdminGuy OtherGuy. I want AdminGuy to: have the ability to unlock the HD, and therefore only he can enter a u/n + p/w at boot to start boot up have the ...
5
votes
1answer
1k views

Sharing a iPhoto Library between users on the same computer

I tried to share my iPhoto library with putting it into my sharing folder. I changed the permissions, so the other users can use it. Now they can use it, but if they add new photos, i cannot edit them....
4
votes
1answer
3k views

Is it possible to create a user without a home directory?

I want to create a user to run tomcat on my system and was wondering if it is possible to create a user without a home directory like it is possible in linux.
2
votes
2answers
19k views

Why are there folders in /Users of already deleted users?

Some time ago I had a user called "xy" on my system. I have deleted the user but in the /Users directory there are folders called "xy" with a Desktop, Library etc. in it. Why are they not deleted ...
8
votes
2answers
30k views

How to add a user from the command line in macOS? [duplicate]

In Terminal, I used, useradd liao2, as I would also do in Linux, but it failed: useradd liao2 -bash useradd: command not found I also tried using sudo: sudo useradd liao2 Password: sudo: useradd: ...
5
votes
1answer
7k views

Very long login times in Mac OS X

I am experiencing an issue with OS X 10.8.3, where it takes a very long time to login. It seems like it has something to do with which network I am connected to. Explanation of the issue: I get home ...
4
votes
2answers
765 views

How do I fully relocate my user's home directory to another disk?

I installed Lion on a new disk today and let the migration assistant move users, applications and stuff from my internal disk to the SSD connected via FW800. So far everything works great. Because I ...
4
votes
1answer
11k views

Unable to create Mobile Account on AD Connected Mavericks Machine

Whenever I try to login as an AD user to an OS X Mavericks Macbook Pro it says unable to create mobile account. I do have the AD settings set to create a mobile account on login so that is correct but ...
4
votes
1answer
491 views

How can I prevent the iCloud dialog from showing up for new users?

On 10.7.2, whenever a new account is created, and the person logs in for the first time, they see the iCloud system pref pane. Is there a way to prevent this from showing up?
3
votes
4answers
30k views

How do I copy (or clone or duplicate or make a template) user account?

In Mac OS X Lion (10.7.3), is it possible to create a new user account with settings identical to an existing user account? Or put another way, is it possible to set-up a user account template? I do ...
2
votes
2answers
314 views

How can I create a new user through terminal macOS 10.14

I am trying to write a script to add a user to a computer. These will not be admin accounts and should be staff accounts. I ran the following script and can login to the account but I can't access any ...
2
votes
2answers
2k views

Accidentally created user with duplicate UID. How to fix?

I accidentally created a user with a duplicate UID. I need advice on how to fix this predicament. As you can see, running dscl shows two users with the same uid: dscl . -list /Users uid | sort -nrk ...
2
votes
0answers
31 views

How to get output from the console.app from a non-admin account?

I almost exclusively use a non-admin account for everyday use. Only for installing software, etc. I log in with the admin account. This normally works very well, however, there is one issue I haven't ...
2
votes
1answer
8k views

no admin account OSX 10.13.5 [duplicate]

I have a macbook pro 2011 with high sierra 10.13.5 Today i tried renaming my admin account in the system preference / users. I couldn't rename the account, and i have lost the admin rights. Now i ...
1
vote
0answers
428 views

How to launch Google Drive in another user's session?

This is basically a follow up of a very similar broader question. Say I have two users, foo and bar. Only foo is logged in. If I manually log bar in I could set up Google Drive to auto start under ...
1
vote
2answers
950 views

How is the UUID for a user used by macOS?

In the Advanced Options for a user under the Users & Groups System Preference, there is field for UUID and a button for Create New next to it. How is the UUID used by macOS and what are the ...
1
vote
2answers
14k views

Apache 2 `UserDir` problem in OS X Mountain Lion (10.8) Server after upgrade from Lion (10.7)

I had a Mac under OS X Lion. I upgrade it to Mountain Lion, and buy the OS X Server software in the AppStore. Since the beginning, I use the Apache version bundled in Mac OS, and it work fine. But ...