{"id":298,"date":"2007-09-09T15:22:00","date_gmt":"2007-09-09T07:22:00","guid":{"rendered":"http:\/\/www.akuadi.org\/?p=24"},"modified":"2007-09-09T15:22:00","modified_gmt":"2007-09-09T07:22:00","slug":"file-sharing-for-linux-windows","status":"publish","type":"post","link":"https:\/\/akuadi.org\/life\/blog\/2007\/09\/09\/file-sharing-for-linux-windows\/","title":{"rendered":"File Sharing for Linux &#38; Windows"},"content":{"rendered":"<p>step by step configuring samba server<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>samba &#8211; protocol to enable the cross platform between linux to other platform<\/p>\n<p>smb services &#8211; service to start samba server<\/p>\n<p>windows client to linux samba server<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>linux samba server<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1) vi \/etc\/samba\/smb.conf<br \/>2) :set nu= to show the line number in vi<br \/>3) go to line 58  , look for security =user , change to security=share<br \/>4) go to line 219 , look for &#8216;this is is useful for people to share the file&#8217;, under it<br \/>  change [tmp] -> [shared] , remove the ; at the left hand side = this line is for shared name<br \/>  path: \/tmp -> \/installation =the location that u&#8217;re going to share the file<br \/>  read only =no -> read only =yes (depends on your need)= permission for the directory<br \/>  public->yes = if put no , user unable to see the content<br \/>5)<b>service smb start<\/b><br \/>6)<b>service iptables stop<\/b><\/p>\n<p><span style=\"color: red;\">the number is not same for all distro k.. try to find it&#8230;<\/span><\/p>\n<p>windows client<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1)go to &#8220;start&#8221; , &#8220;run&#8221; , type cmd<br \/>2)ping samba server ip address 192.168.100.48<br \/>3)if reply, good news! ,<br \/>4)go to &#8220;Start&#8221; , &#8220;run&#8221; , input \\\\192.168.100.48<br \/>note:command prompt way to connect, refer to netuse command<\/p>\n<p>linux client connects to windows share server<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>windows share server<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>1)create a new folder name myshare,right click properties, click the &#8220;shared&#8221; tab at the top,<br \/> select everybody, tick all the permissions, click apply<br \/>2) select security tab , select everybody , tick all the permissions, click apply<br \/>3) make sure you off windows firewall<br \/>note :right click network connection, select advance, windows firewall,off the firewall<\/p>\n<p>linux command way client<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>1)ping windows server<br \/>2)if reply , good news!<br \/>3)smbclient -L 192.168.100.49 -U administrator press enter<br \/>password:****<br \/>4)List out all the share content from windows<br \/>note: -L = List out the contents<br \/>     -U = user<br \/>5)smbclient \/\/192.168.100.49\/myshare -U administrator<br \/>password:****<br \/><smb> ls<br \/>1234.txt<br \/><smb> get 1234.txt<br \/>1234.txt successful copied<br \/><smb>exit<\/p>\n<p>linux X windows(GUI) client<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1)imagine u sudah ping, it replies<br \/>2)open your browser, konquer or firefox<br \/>3)smb:\/\/192.168.100.49<br \/>4)input administrator for the username  and password for administrator<br \/>5)select the particular file , double click , choose save as<\/p>\n","protected":false},"excerpt":{"rendered":"<p>step by step configuring samba server&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-samba &#8211; protocol to enable the cross platform between linux to other platform smb services &#8211; service to start samba server windows client to linux samba server&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;linux samba server&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;1) vi \/etc\/samba\/smb.conf2) :set nu= to show the line number in vi3) go to line 58 , look for security =user , [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-linux"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":0,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}