On most *nix systems Android included to login with a a user name which has a space you'd escape the space with a
John\ Doe The
\ will allow the OS / shell to know that a special character, ie. a space ␣ or another special character will be next, thus the escaping with a
So I was curious about how this could be done this afternoon as well, so I spent about an hour to get things setup, and I now have a working solution.
First off, my situation is a little different from yours, but essential the same. Instead of having an Android phone, the wifey 👰 has an Amazon Fire TV Stick. I have some vidoes on my MBP that I'd like to watch on our TV with the Fire Stick. The Fire Stick uses Android OS as well, and also supports VLC with no side loading BS 💩.
I proceed to download and install VLC on the fire stick, and it appears to run fine. 👍 There is a pretty accessible menu for accessing local network shares.
Now, comes the fun part of setting up the Network Share, ie. my MBP MacBook Pro.
I have all my local videos files stored in
$HOME/Movies on my macOS box, so I could make that folder accessible by setting it up as a share using SMB or AFP which is "kind of" what I did but not really.
- Create a regular user on the system and give it read access to your
Create a new user on macOS, I chose the username
Apple Menu select
b. From the
System Preferences dialog select
Users & Groups
c. Click the ➕ within
Users & Groups, and create a Standard User.
Create a new user.
- Create a new group within the same
Users & Groups dialog, I chose to name the newly created group
media as well.
Create a new group
- Add the user which the video's belongs to, ie. in my case that would be
capin. And also add the
media user to the newly created group as well.
Adding Users to a Group
- Next turn on
File Sharing from
System Preferences within the
Enabling File Sharing
- Set the
Shared Folders and
System Preferences with the users and permissions you want for your shared folder, and remove any unused shares if so desired.
Setting Permissions for the Share
- SMB settings
A couple of notes, I was unable to get
AFP to work properly, but I did have luck 🍀 getting
SMB working. And, another thing you'll have to input the
password for the media account you setup.
IMHO I can't help but think creating a separate user to access media shares is a much better solution that using your daily driver 🚗 account for obvious security reasons.