设为首页 收藏本站
查看: 1045|回复: 0

[经验分享] How to configure samba server in Linux Print

[复制链接]

尚未签到

发表于 2018-10-24 09:24:50 | 显示全部楼层 |阅读模式
  Most Linux systems are the part of networks that also run Windows systems. Using Linux Samba servers,your Linux and Windows systems can share directories and printers. Thisis most use full situation where your clients are window native and youwant to use the linux security features.
  Exam question There are mixed lots of System running on Linux and Windows OS. Some users are working on Windows Operating System. There is a /datadirectory on linux server should make available on windows to only
vinita should have right to connect with samba server . Configure to
make available.
Configure samba server
  In this example we will configure a samba server and will transfer files from client side.For this example we are using two systems one linux server one window clients.
  per quest of samba server

  •   A linux server with ip address 192.168.0.254 and hostname Server
  •   A window client with ip address 192.168.0.2 and hostname Client2
  •   Updated /etc/hosts file on linux system
  •   Running portmap and xinetd services
  •   Firewall should be off on server
  We have configured all these steps in our pervious article.
  Wesuggest you to review that article before start configuration of samba
server. Once you have completed the necessary steps follow this guide.
  samba rpm is required to configure samba server. check them if not found then install
DSC0000.jpg

  Now check smb, portmap, xinetd service in system service it should be on
#setup Select  System service from list  

  • portmap
      

  • xinetd
      

  • smb
      Now restart xinetd and portmap and smb service
    DSC0001.jpg

      To keep on these services after reboot on then via chkconfig command
    DSC0002.jpg

      After reboot verify their status. It must be in running condition
    DSC0003.jpg

      Create a normal user namedvinita
    DSC0004.jpg

      
      now create /data directory and grant it full permission
    DSC0005.jpg

      open /etc/samba/smb.conf main samba configuration files
    DSC0006.jpg

      By default name of workgroup is MYGROUP in smb.conf file. you can change it with desire name
    DSC0007.jpg

      our task is to share data folder for vinita user so go in the end of file and do editing as shown here in this image
    DSC0008.jpg

      save file with :wq and exit
      Now add vinita user to samba user
    DSC0009.jpg

      we have made necessary change now on smb service and check it status
    DSC00010.jpg

      if you already have on this service then restart it with service smb restart commands.
      
    Client configuration for samba server
      Go on windows system and ping samba server, change computer name to client2 and workgroup name to MYGROUP
    DSC00011.jpg

      reboot system after changing workgroup name
      After reboot open my network place here you can see samba server[ if not see then click on view workgroup computer in right pane, if
    still not see then use search button from tool bar and search computer
    samba server form ip ]
    DSC00012.jpg

      First try to login from user nikita she will not successes as nikita have not permission to login
    DSC00013.jpg

      Now login from user vinita [ give the password which you set with smbpasswd command ]
    DSC00014.jpg

      As you can see in image user vinita gets the /data folder which we share from samba server
    DSC00015.jpg

      Copy some window files in data folder
    DSC00016.jpg

    Check status on samba server
      on samba server you can check runtime status of samba server to check it run smbstatus command
    DSC00017.jpg

      in output you see that one samba shared directory is used on window system



  • 运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
    2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
    3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
    4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
    5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
    6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
    7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
    8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

    所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-625744-1-1.html 上篇帖子: 搭建oauth-server 下篇帖子: mybatis中的java.sql.SQLException: ORA-00942: 表或视图不存在
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    扫码加入运维网微信交流群X

    扫码加入运维网微信交流群

    扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

    扫描微信二维码查看详情

    客服E-mail:kefu@iyunv.com 客服QQ:1061981298


    QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


    提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


    本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



    合作伙伴: 青云cloud

    快速回复 返回顶部 返回列表