Page 283 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 283

Unit 14: File Server




          7.   Type  chgrp  -R  groupname  /directory  to  change  the  group  ownership  for  the  share   notes
               directory.
          8.   Edit the smb.conf file to include the following lines. By default, this file is located in /etc/
               samba.


                           Example:
               [share_name]
               path = /directory

               comment = samba share for company files
               valid users = user1 user2 user3
               public = no
               writable = yes
               printable = no
               create mask = 0765
          9.   Replace share_name with the name you want to use for the share (this is the name that
               your Windows clients can see).
          10.   Replace directory with the full path of the directory you want to configure as the Samba
               share (the directory you created on your Linux server to store the QuickBooks company
               files).

          11.   Type service smb restart to restart the Samba daemon.
          14.7.2 Configuring SAMBA Share


          You may configure the SAMBA server by editing the /etc/samba/smb.conf file to change the default
          settings or add new settings. More information about each setting is available in the comments
          of the /etc/samba/smb.conf file or by viewing the /etc/samba/smb.conf manual page from the prompt
          with the following command typed at a terminal prompt:

          man smb.conf



             Note     Prior to editing the configuration file, you should make a copy of the original
             file and protect it from writing so you will have the original settings as a reference and to
             re-use as necessary.

          Backup the /etc/samba/smb.conf file:
          sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original
          Now, edit the /etc/samba/smb.conf file and make your changes.

          server

          In addition to the SAMBA suite of file and printer sharing server applications, Ubuntu also includes
          other powerful server applications designed to provide additional network server functionality
          to Windows clients similar to the functionality provided by actual Windows servers. For example,
          Ubuntu offers centralized management of network resources such as computers and users via






                                           LoveLy professionaL university                                   277
   278   279   280   281   282   283   284   285   286   287   288