Windows connect samba share




















SMB is a popular protocol used to share files over the network. Even it is created for Windows operating systems it is supported by Linux distributions too. The smbclient command can be used to access Windows shares easily. By using smbclient the remote Windows shares can be listed, uploaded, deleted, or navigated easily.

The smbclient command also provides an interactive shell. The smbclient command is provided with the smbclient package name for the most of the Linux distributions. The -L option is used with the smbclient command to list all shares. Alternatively, the remote server IP address can be used in order to list shares with the -L option. In the following example, we list the shares provided by the IP address The windows share may require access with credentials by providing a username and password.

So in order to list SMB shares we should provide the username and password. The -U option is used to specify the username. The smbclient can be used to list specified path or directory contents. It is very same to list shares where the path is added after the remote share hostname or IP address.

One of the most powerfull features of the smbclient is its interactive shell. The remote share can be connected like and FTP and a new shell is provided via the smbclient.

This shell can be used to navigate, list, upload, download, etc. Use these two templates to add shares for all the files users may want to access from the server machine. Your server should be fully configured now. With what you added to the defaults provided by your distribution, your completed smb. Before you leave the server machine you have a few more quick chores. First, enter any users that will be accessing the Samba server into the following command:.

You will be prompted to enter a Samba password for each user. You can change the password at any time by logging in as the desired user and running smbpasswd. Now restart your Samba server using this command:. Head over to a Windows machine to try out your new setup.

Replacing server with the name or IP address of the machine running your Samba server. A Windows Explorer window with the browseable shares from your server should open up. Is is easy to make shared directories more accessible. In my testing on Windows XP with the security level set to share , printers are automatically be detected and available to use from the Windows machine.

With user level security set, it was necessary to log into the server in a Windows Explorer window before trying to print. Your experience on other versions of Windows may vary. Samba and Windows shares can be easily accessed from the default file managers of both Gnome and KDE. Accessing Samba shares with Konqueror is just as simple. For direct access, type the URL of the server in directly in this format:.

Configuring printers over Samba is similarly easy in both these desktop environments. You will be prompted for your password. You will be prompted for a user name and password on your Samba server.

Identify your Host and Printer on the Samba server and then move on to the next screen. Select your printer model and then click Apply. To do the same in KDE, open the configuration center by launching the command kcontrol. Click Next another time and then Scan to browse for your Samba server. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. Asked 5 years, 5 months ago. Active 10 months ago. Viewed 14k times. Improve this question. Rui F Ribeiro Add a comment. Active Oldest Votes. Improve this answer.

Rahul Rahul Arjo Cuwik Arjo Cuwik 21 1 1 bronze badge.



0コメント

  • 1000 / 1000