Windows Labs

Create a Public Samba Share on Ubuntu 17.04 | 17.10

Create a Public Samba Share on Ubuntu 17.04 | 17.10 &-8211; this Article or News was published on this date:2020-09-27 21:16:16 kindly share it with friends if you find it helpful

This brief tutorial shows students and new users how to create a public Samba shares on Ubuntu server so everyone can access without authenticating. This share will be fully accessible to all and everyone will be able create, modify and delete folders and files.

Then in our next post we’ll show you how to create restricted shares so only authenticated users can access.

For those who don’t know, Samba is a opensource implementation of Microsoft SMB/CIFS protocol. It provides fast and secure files and print services for clients using the SMB/CIFS protocol. Simply put, it provides files and printer sharing between clients and servers.

To get started with creating a public share that can be fully accessed by everyone, continue with the steps below:

Step 1: Install Samba

The first thing you’ll need to do is install Samba. To install it run the commands below.

sudo apt-get update
sudo apt-get install samba

The commands above install Samba and all other dependencies.

Step 2: Create the Share

First, create the folder you  want to share with the public. The folder can be anywhere but set its permission so that everyone can access it. For this this tutorial, our share will be /home/Public

Run the commands below to create the folder you wish to share.

sudo mkdir /home/Public

Then set the share permission so everyone has full access to it.

sudo chmod 0777 /home/Public
sudo chown -R nobody:nogroup /home/Public

Step 3: Configure Samba

Now that Samba is installed, you must now configure it to provide file and print services to clients. This can be done by editing its default configurations file. First create a backup of the configuration file by running the commands below.

sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak

Next, run the commands below to open/create a new configuration file.

sudo nano /etc/samba/smb.conf

Then add the content below into the file and save. Our share will be called Public as defined in the setting below  [Public]

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
bind interfaces only = yes

- add to the end
[Public]
   path = /home/Public
   writable = yes
   guest ok = yes
   guest only = yes
   read only = no
   create mode = 0777
   directory mode = 0777
   force user = nobody

Save the file and exit

Step 4: Restart Samba

After configuring the setting above, restart Samba by running the commands below.

sudo systemctl restart smbd

Step 5: Access the Share

Now log on to your other computers and access or map the share using the Ubuntu machine name or IP address.

ubuntu samba share windows

You cam map the location if you’d like

ubuntu samba share windows

Enjoy!

ubuntu samba share windows

You may also like the post below:

Create a Private Samba Share on Ubuntu 17.04 | 17.10

Create a Private Samba Share on Ubuntu 17.04 | 17.10 &-8211; this Article or News was published on this date:2020-09-27 21:16:04 kindly share it with friends if you find it helpful

Few days ago we showed students and new users how to create public Samba shares on Ubuntu 17.04 | 17.10 systems. The public share had no restrictions. Everyone and anyone could create, modify and delete content from the share.

In some environments, this setup is not very common. There has to be some level of restrictions to protect some information or so data can’t get deleted mistakenly. This brief tutorial is going to show you how to create private shares so only those with permissions can create, modify or delete content from there.

For those who don’t know, Samba is a opensource implementation of Microsoft SMB/CIFS protocol. It provides fast and secure files and print services for clients using the SMB/CIFS protocol. Simply put, it provides files and printer sharing between clients and servers.

To read our previous post on Samba, please click the link below.:

To get started with creating private shares on Samba, follow the steps below:

To get started with creating a public share that can be fully accessed by everyone, continue with the steps below:

STEP 1: INSTALL SAMBA

The first thing you’ll need to do is install Samba. To install it run the commands below.

sudo apt-get update
sudo apt-get install samba

The commands above install Samba and all other dependencies.

STEP 2: CREATE THE  PRIVATE FOLDER

First, create the folder you want to share with select group of people. The folder can be anywhere but set its permission so that everyone can access it. For this this tutorial, our share folder will be called Private and created in the /home directory…

Run the commands below to create the folder you wish to share.

sudo mkdir /home/Private

Then set the share permission so that only members of a select group will have access to it…

Step 3: Create a private group

After creating the private share above, you should then create a private group that should have access to the shared folder. Only members in the group will be able to access or delete content.

Run the commands below to create a group called security

sudo groupadd security

Next, grant the group access to the folder.

sudo chgrp security /home/Private
sudo chmod -R 0770 /home/Private

STEP 4: CONFIGURE SAMBA

Now that Samba is installed, you must now configure it to provide file and print services to clients. This can be done by editing its default configurations file. First create a backup of the configuration file by running the commands below.

sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak

Next, run the commands below to open/create a new configuration file.

sudo nano /etc/samba/smb.conf

Then add the content below into the file and save. Our share will be called Private as defined in the settings below  [Private]

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
bind interfaces only = yes

- add to the end
[Private]
   path = /home/Private
   writable = yes
   guest ok = no
   read only = no
   browsable = yes
   create mode = 0777
   directory mode = 0777
   valid users = @security

Save the file and exit

Step 5: Add members to group

Now that you’ve created and private group and only want certain users as member, run the commands below for each user you want to add to the group.

sudo usermod -aG security richard

The commands above add the user name richard to the security group.

Then run the commands below for each member of the group to create a Samba password. This is required.

sudo smbpasswd -a richard

When prompted, create and confirm a new password for richard account.

STEP 6: RESTART SAMBA

After configuring the setting above, restart Samba by running the commands below.

sudo systemctl restart smbd

Now go and test the share using richard account.

ubuntu samba private shares

Type the account name and password to access.

ubuntu samba private shares

You can also map the network location

ubuntu samba private shares

Access the mapped drive anytime from Windows

ubuntu samba private shares

That’s it!

You may also like the post below:

Fix Windows 10 PC Sluggish Performance by Restoring

Fix Windows 10 PC Sluggish Performance by Restoring &-8211; this Article or News was published on this date:2020-09-27 21:13:49 kindly share it with friends if you find it helpful

Do you feel like your Windows 10 computer is sluggish all of a sudden? If so you might want to try the following steps to restore it and undo changes that may be causing the problems. If a change was recently made knowingly or unknown to you, it may be that.

This brief tutorial is going to show students and new users how to restore Windows 10 PCs so that changes that were made that is slowing down your computer can be undone. If you think an app, system drivers or an update for Windows is making your computer perform worse, restoring it to an earlier point in time might fix the problem.

Restoring your computer to an earlier point in time won’t affect your files and documents, but remove apps, systems drivers, updates and undo recent changes after the restore point was created. A new restore point takes place between 7 to 14 days.

Restoring Windows 10 PCs

To restore your Windows 10 computer, click the Start button and type restore point in the search box on the task bar, then select Create a restore point from the list of results.

windows 10 system restore

When the system properties box opens, on the System Protection tab, select System Retore

windows 10 system restore

Select Next, then choose the restore point related to the app, driver, or update that might be causing the problem.

windows 10 system restore

 Then select Next > Finish

Restart your PC. Do what you were doing before to see if performance has improved. If you don’t see any restore points, it might be because system protection isn’t turned on.

To turn on system protection

Click the Start button and in the search box on the taskbar, type restore point, then select Create a restore point from the list of results.

In the System Properties box, on the System Protection tab, select Configure. In the Restore Settings area, select Turn on system protection > OK.

If your PC still runs slow, try looking at installing malware scanner to scan for malware on the computer.

~Enjoy~

Congratulations! you’ve just successfully restored Windows 10 computer.

You may also like the post below:

Change Windows 10 Display Language Preferences

Change Windows 10 Display Language Preferences &-8211; this Article or News was published on this date:2020-09-27 21:13:41 kindly share it with friends if you find it helpful

You can use Windows 10 desktop and applications in dozens of languages around the world. The translations into other languages may be incomplete and some applications may not provide full support, but the list of languages Windows 10 supports are growing.

Any untranslated text will appear in the language the program or software was originally developed in, usually American English.

This brief tutorial is going to show students and new users how to change the display language on Windows 10 desktops. Not all language packs are installed and available on your desktop… but don’t be surprised to see Windows 10 support for your native language.

Changing your display language allows you to change the language your entire Windows 10 operating system will use. After installing the language pack, set that language as default to change the Windows 10 display language.

Changing to Windows 10 Language

To change Windows 10 language to your native tone click Start  > Settings

windows 10 default apps installation location

Then select Time &-038; language > Region &-038; language from the settings page. On the Region &-038; Language page, click the + button to Add a language.

windows 10 default apps installation location

Click Add a language to select and add your desire language to Windows 10. You can use the search box to type the language name you want to include. Then select it to use as Windows 10 display language.

windows 10 default apps installation location

If Windows can’t automatically install the language packs you selected, you will have to manually download it. The steps below show you what to do.

Choose your desire language and then select Options.

Select Download from the Download language pack option.

Once the language pack is installed, select  back.

Choose your language and then select Set as default to make that language the Windows 10 display language.

.windows 10 default apps installation location

Click Download to download the language pack for your system. Choose the language above, then select Options and click Download.

windows 10 default apps installation location

After download, restart or logout and log back into Windows desktop.. and the new display language should be installed for you.

There are some folders in your home folder for things like music, pictures, and documents. These folders use standard names according to your language. When you log back in, these folders will be renamed to the standard names for your selected language.

This is how to change Windows 10 language settings to your native tone.

windows 10 default apps installation location

Congratulations! You’ve successfully change Windows 10 language on the desktop

You may also like the post below:

How to Enable Windows 10 Built-in OpenSSH Client

How to Enable Windows 10 Built-in OpenSSH Client &-8211; this Article or News was published on this date:2020-09-27 21:10:21 kindly share it with friends if you find it helpful

Microsoft has finally add OpenSSH client on Windows 10 machines… although still a beta feature, it works. As of now, you’ll probably still want to use your favorite SSH client instead of the Windows 10 version.

To use Windows 10 SSH client you must add or install it.. it’s part of Windows but not enabled by default. Also, apparently, the built-in Windows 10 SSH client only support ed25519 keys… so might not work with all SSH server settings.

OpenSSH has always come with Linux and other operating systems by default.. but not Windows. This is a small change for Windows users.. Hopefully Windows users should not have to use third-party SSH clients like Putty and others to connect to SSH servers.

This brief tutorial is going to show students and new users how to enable Windows 10 optional OpenSSH client.

Step 1: Install Windows 10 OpenSSH Client

To get started with enabling the client, click on Start –> to Settings

windows 10 default apps installation location

Then click on Apps –> to Apps &-038; features… from the Apps &-038; feature page, click Manage optional features

windows 10 default apps installation location

Then click the Add a feature button to add the new SSH client

windows 10 default apps installation location

Scroll down the list and click OpenSSH Client (Beta) option and click Install

windows 10 default apps installation location

That should install Windows 10 OpenSSH client.

Step 2: How to Use Windows 10 SSH Client

Now that the client is installed, all you have to do is open Windows Command Prompt or Windows PowerShell. Either program should work for you… the client works just like the ones on Linux and other operating systems.

Type the ssh command followed by the username @ hostname or host IP address. You may specify the SSH port if not the standard port. If the server is configured right, access should be granted.

ex. ssh [email protected]

windows 10 ssh client

This is how to install Windows 10 built-in OpenSSH client

Enjoy!

You may also like the post below: