![]() ![]() ![]() ![]() Starting from version 4.0, Samba is able to run as an Active Directory (AD) domain controller (DC). If you are installing Samba in a production environment, it is recommended to run two or more DCs for failover reasons. This tutorial explains the installation of a Samba fileserver on Debian 9 (Stretch) and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. • • • • • • • The intent of this article is to address a very specific case – it is not meant as a best practices guide. You have a windows computer (Computer 1) with files that are remotely accessed from second windows computer (Computer 2). Access from Computer 2 is via a program that expects the files to be accessible under a specific computer name and share name. Computer 1 is currently unable to boot Windows (but has no relevant hardware problems – i.e. Can still boot a LiveCD) The solution I used was to boot up a Linux live CD, and share the files – changing the computer name to match the original, and giving the Samba share the same name. It worked seamlessly from the Windows end, and is fairly easy to setup – didn’t have to install a thing. Linux Mint is my preferred Linux Desktop operating system, so I used a LiveCD of (I presume Ubuntu 11.10 would be nearly identical). It should be noted that you can use to create a bootable USB drive instead of using an actual CD. Linux Mint 12 already has Samba installed, so once it boots up, there are only 3 tasks needed: • Create a Samba user • Change your Workgroup name and ‘Computer Name’ (aka the NetBios Name) • If you use the default workgroup, and do not require a specific ‘Computer Name’, you can skip this step. • Share a folder Optional Installation If your specific scenario does not require the computer name to be something specific (i.e. ‘Mint’ will do), you can avoid using the terminal altogether: • Open Synaptic • Reload the packages (necessary for some packages to be displayed) • Mark system-config-samba for installation, and apply A second optional install is gnome-network-admin which will let you change your hostname (which the NetBIOS name is obtained from) – however, I find it more successful explicitly setting this value. Create a New Samba User Open a terminal and run: sudo smbpasswd -a mint The username needs to match a linux user – and mint is the user the live CD runs as. The command prompts for a password – set one of your choosing (doesn’t need to match anything). (If you installed system-config-samba, you can create a new user under Preferences > Samba Users) Change your workgroup and computer name gksudo gedit /etc/samba/smb.conf Under the [global] section: • Change the line ‘workgroup = WORKGROUP’ to specify your chosen workgroup. • Add the line ‘netbios name = computer-name’ If you make changes to smb.conf, restart samba: sudo service smbd restart If you changed the netbios name, restart the NetBIOS server: sudo service nmbd restart That is it for the terminal commands. (If you installed system-config-samba, you can change the workgroup under Preferences > Server Settings) Share a Folder Linux side Open the file manager (Nautilus) and mount the volume of interest (just click it on the left pane) • Navigate to the folder you want to share • (If you are sharing the entire volume, navigate to /media – the volume you mounted should be listed) • Right click the directory • Select ‘Sharing Options’ • check ‘Share this folder’ • Set the ‘Share name’ of your choosing. • Click ‘Create Share’ That’s all there is to it – a few steps, a few minutes, and relatively painless. Just wanted to say thanks for this guide. I screwed up our Windows 2003 raid server while trying to make a backup of the OS partition (still not sure how this happened). Anyway, it wouldn’t boot but all the partitions/files were there. I knew there must be a way to use a live CD to get everything temporarily back on the network, but I didn’t exactly know how to do it. Your guide saved my ass. Thanks a ton. Now if you only had a guide describing how to fix an ‘Error Loading Operating System’ message. Thanks again! Nice article. I was just looking to see if anyone has ever tried to share folders from a live-CD and your how-to pointed out another samba GUI to use which was quite helpful. I too am using Linux Mint (vers. 15, Mate edition) and the GUI that comes installed wouldn’t allow me to add shares so I installed system_config_samba and off I went Yey! ? If people knew all the uses you can put a live-CD to, everyone would permanently keep one in their computer’s DVD reader like I do. Need to run a piece of software one time only? Re-boot into the live-CD. Need to test the latest greatest software? Re-boot into the live-CD. Need to rip DVDs but you’re not sure which ripper to use? Re-boot into your live-CD. Itching to play a game but don’t want to keep a lot of games on your harddrive (assuming the game doesn’t require too much resources)? I’ve even done LAMP development this way as well as.NET development It’s like having a temporary virtual machine at the ready all the time and you don’t have to worry about messing anything up! If you’re not doing anything more useful with your DVD player, put it to use Keep a live-CD in it! And BTW, I highly recommend Linux Mint 15 w/Mate (especially if your a developer) because it’s rock solid stable, packs a rich bundle of installed software and its UI leaves little to be desired (some distro’s don’t even implement drag/drop onto icons, onto panel applets or across workspaces and onto *any* app regardless of whether its hidden beneath other windows or not The Mint team left *nothing* out). Oh, and it’s configurable beyond imagination for anyone who really likes to customize their desktop. Samba Server DebianSamba is the standard Windows interoperability suite of programs for Linux and Unix. Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments. It can function both as a domain controller or as a regular domain member. Samba provides file and print services for Microsoft Windows clients. These services may be hosted off any TCP/IP-enabled platform. The original deployment platforms were UNIX and Linux, though today it is in common use across a broad variety of systems. The Samba project includes not only an impressive feature set in file and print serving capabilities, but has been extended to include client functionality, utilities to ease migration to Samba, tools to aid interoperability with Microsoft Windows, and administration tools. A Samba server offers the following services: • Share one or more directory trees • Share one or more Distributed filesystem (Dfs) trees • Share printers installed on the server among Windows clients on the network • Assist clients with network browsing • Authenticate clients logging onto a Windows domain • Provide or assist with Windows Internet Name Service (WINS) name-server resolution The Samba suite also includes client tools that allow users on a Unix system to access folders and printers that Windows systems and Samba servers offer on the network. Samba 4.4.5 Samba 4.4.5 is a security release in order to address the following defect: • CVE-2016-2119 (Client side SMB2/3 required signing can be downgraded) It’s possible for an attacker to downgrade the required signing for an SMB2/3 client connection, by injecting the SMB2_SESSION_FLAG_IS_GUEST or SMB2_SESSION_FLAG_IS_NULL flags. Changes since 4.4.4: • BUG 11860: CVE-2016-2119: Fix client side SMB2 signing downgrade. • BUG 11948: Total dcerpc response payload more than 0x400000. How To Install Samba –.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |