
- #Minecraft on mac os x mac os x
- #Minecraft on mac os x full
- #Minecraft on mac os x password
Local/Default > create Groups/_minecraft PrimaryGroupID 300Īt this point, your group should be created, and assigned the 300 (or any number you chose) GID. Local/Default > create Groups/_minecraft It doesn't matter what they are, just an empty GID is wanted, potentially in the daemon range (less than 500). This will show up a list of all the created groups on your computer, along with their GIDs. To know if you are in the good place, you should have a Users folder with different underscore-prefixed names (like _coreaudiod, _softwareupdate and _www).Ĭreating the group (GID) /Local/Default > ls Groups gid Use the ls command to view the different folders. If you have other directory authentication, you might have to move to an other folder instead of Local. Make sure you use ID numbers less than 1024 (300 is used in this example).
#Minecraft on mac os x mac os x
If you are running a Mac OS X Server use Apple's supplied Workgroup Manager to create the user, group and home folders with minimal effort. Let's move to the base folder for what we need to do (less typing) Open Terminal and typeĮntering interactive mode. Obviously, it needs to be done with privileges. We will use dscl to create a user and group. It will also be created with a daemon UID. The user will be created with an underscore first, denoting it's a daemon and should be hidden from user view. Therefore, although this method may be easy, it is not entirely safe, which is why it is recommended to create the _minecraft daemon user and group the hard way.
#Minecraft on mac os x full
However, if your Minecraft user gets hacked, the hacker will have a full account to have fun, accessing all your software, and be able to modify everything that's public. As a side bonus, you can run this as your own personal user, or any other possibilities for users. Once you have finished these steps, you are done! However, this creates a full-fledged user, whilst Mac OS X expects a daemon user.
#Minecraft on mac os x password
Create a new Standard user, named Minecraft (Please make sure to modify the launchd plist file saying you are using a different user) with a password. Click on the lock in order to unlock the page. Therefore, if you don't want this to happen, you should do it the hard and correct way. It is very important to do one of the following methods, specifically the hard and correct way, as if you don't do anything, anybody who hacks your computer through Minecraft will be able to do anything they want. This section is technically optional, but for security considerations, you should do it, preferably the "hard and correct way". Backup should have its user, have trap, and actually suggest one backup scheme, like a rsync incremental backup or something.Ĭreating a _minecraft daemon user and group. The server doesn't properly close at system shutdown. Port mapping is not supported in this version. However, it's your computer, it's your habits, do whatever you want with it! The final reason that it's better to use sudo, is because every sudo command is logged in your Console, meaning you know what happens, and if you made something incorrect, you can review your log and know what you did to try to repair it. It's preferable that you don't learn to move it to the proper folder first the hard way. This is becausemany people who have tried to create this without moving it to the proper folder, have mistakenly pressed return while doing a nasty command and applied it to their whole computer. It is much safer and therefore strongly recommended to first move to the proper folder and then do the action for a precise file or folder. Forgetting you're as root and doing something awkward gives you more chances to destroy your computer. Although this may be easier, it's also much more dangerous to do so. Many people believe that sudo su - is the best option. It's best to always use sudo for each command needed to do as root. If you are able to run your server and actually connect to it from a remote computer, you can start thinking about creating a daemon. Your mileage will vary elsewhere, as the commands have changed a little bit.īefore even attempting this, you should run a server instance by hand, to make sure everything works. It has been tested on Mac OS X Server Snow Leopard and Mac OS X Snow Leopard. This page will help you make your Minecraft server securely run without having to log in as a user. This article is more of a helping hand, so if you have no background knowledge on Terminal and Console, this article may not be very helpful.
Therefore, it is strongly recommended not to create one unless you know your way around Terminal and Console, and you have a good analytical mind that will tell you whenever you are doing mistakes. When creating a Mac OS X startup daemon, it may work for some people, but not for others.
4 Creating a _minecraft daemon user and group.