Where YourUserName is your Ubuntu username. So, from a Putty/Terminal session type the following: We’ll create one in our home folder just for illustrative purposes. We should now be able to access those files and folders on our server for which we’ve given permission to this new user. Now re-start Samba via the Samba Windows File Sharing screen by clicking on the Restart Samba Servers button. Then check the New password option and enter the required password. So, on the Samba Windows File Sharing screen click Edit Samba users and passwords and then click on the user we’ve just created. The password for accessing the server via Samba can be the same as the one used to access the server via Putty but we still need to complete this step regardless. Once we’ve done this we should configure the password for this user. So, click Servers -> Samba Windows File Sharing and click on Convert Unix users to Samba users and click on Convert users. This means we’ll be able to use this username to connect to designated files and folders on our server from elsewhere on our network. This new user we’ve just created is only known to our server currently so we’ll now convert it into a “networked user”. This will create a user which belongs to the users group. Leave all other options asis and click the Create button. Under Group Membership use a Primary Group -> Existing group called users. Give the new user a Username, enter a Real name if required and for the Password click Normal password and supply a password. So, in Webmin, click System -> Users and Groups and click on Create a new user. Now we have an understanding of the concepts behind users and permissions I’ll explain how to share a folder across the network using Webmin and you can take it from there.įirst let’s create a new user. This is especially true for those of you who are coming from a Windows background: Understanding Linux File Permissions Sudo apt-get install samba Creating usersīefore we get stuck into how we go about creating users and sharing folders we need to have a firm understanding of the concepts behind Linux File Permissions. Using the Command Line: another way of installing samba on your server is by typing the following two commands either directly onto your server or via Putty: If you do not have the Synaptic Package Manager installed (it is not installed by default under Lucid or Karmic) then you can install it by issuing sudo apt-get install synaptic from a Terminal or Putty session. Next click the Apply button and then the Apply button once again for confirmation. Choose any additional packages too if prompted. Type samba in the Quick Search box and then place a check against samba in the list of results returned and click Mark For Installation. Using the gnome desktop: choose System -> Administration and then Synaptic Package Manager from the menus. If you’ve not been following this guide from the start and/or do not have Samba installed then you can install samba in one of two ways: via the gnome desktop or via the Command Line. Having lots of lovely space on your new server is no good if nothing other than the server itself can see it! So, let’s share some drives and folders using Samba so they can be seen by other computers and devices on your network. If the Webmin server doesn’t respond, you might need to adjust firewall settings to allow port 10000.Create Users, share drives and folders across the network To get access to the Ubuntu server via webmin in your client’s web browser go to And login with system user or root login: In simple words, to log in to Webmin, navigate to and sign in with either the root user or any other user with sudo privileges. To access Webmin, replace localhost with your system’s IP address or hostname. Use your system user or root login with the password to access Webmin. Webmin by default run on port 10000, we can simply access Webmin by accessing our server on port 10000 in a web browser. If you are installing on Ubuntu and the apt-get command reports that some of the packages cannot be found, edit /etc/apt/sources.list and make sure the lines ending with universe are not commented out. If Debian complains about missing dependencies, you can install them with the command:Īpt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python Root password, or as any user who can use `sudo`. Once the installation finishes, you’ll be presented with the following output: Sudo add-apt-repository "deb sarge contrib" Sudo apt-get install software-properties-common apt-transport-https Then add this line to the bottom of the file to add the new repository: /etc/apt/sources.list First, add the Webmin repository to the /etc/apt/sources.list file.
0 Comments
Leave a Reply. |