convert dos command to macos

I manage a network where some users have windows while other have MACos.

Some of the users have limited access to shares on the network.

To access their share in windows I use the following dos command (in a cmd or bat file):

'start \\192.168.1.xx\SHARE /user:name password'

This gives them direct access to their share. As they do not have access to the root, they cannot get to the share through explorer/network.

I do not know anything on Macos and therefor was not able to give access to the macos users.

What would be the equivalent in the macos system?

Posted on Nov 24, 2022 3:58 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 24, 2022 4:46 AM

I have no idea what “start” does.

Just use a standard SMB connection string in Connect to Server.

smb://user@host/share

I don’t know why you are putting login credentials in a plain text file, so I only added the user. The password would get saved in the keychain, so no need to reveal it in the connection string.


If you want to automatically mount that share, you should look into fstab.

Similar questions

3 replies
Question marked as Top-ranking reply

Nov 24, 2022 4:46 AM in response to Leo-Yak

I have no idea what “start” does.

Just use a standard SMB connection string in Connect to Server.

smb://user@host/share

I don’t know why you are putting login credentials in a plain text file, so I only added the user. The password would get saved in the keychain, so no need to reveal it in the connection string.


If you want to automatically mount that share, you should look into fstab.

Nov 24, 2022 11:42 AM in response to Leo-Yak

That's correct. If the user has the same username on the server as on their Mac, then it automatically attempts to connect using that username. If not, the "user@" will tell it what to use as a user name. After first connection, the user's password will be saved in keychain if they so desire.

I am not familiar with apple at all.

That's not Apple, at all. That's a ubiquitous standard URL for an SMB connection. Is it an SMB server? If it is something else, then you would need that service specific URL.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

convert dos command to macos

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.