{"id":485,"date":"2009-02-17T11:34:18","date_gmt":"2009-02-17T16:34:18","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=485"},"modified":"2009-02-18T13:03:05","modified_gmt":"2009-02-18T18:03:05","slug":"samba","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=485","title":{"rendered":"Samba"},"content":{"rendered":"<p>\u2022Install samba<br \/>\npkgadd -d samba*local<\/p>\n<p>\u2022Install popt<\/p>\n<p>\u2022Install readline<\/p>\n<p>\u2022Install ncurses<\/p>\n<p>\u2022Install libgcc-3.2.2<\/p>\n<p>\u2022Create lock dir (check existence)<br \/>\nmkdir \/usr\/local\/samba\/var\/locks<\/p>\n<p>\u2022<br \/>\n-touch \/usr\/local\/samba\/private\/smbpasswh<br \/>\n-touch \/usr\/local\/samba\/private\/secrets.tdb<br \/>\n-chmod 0770 \/usr\/local\/samba\/private<\/p>\n<p>\u2022Create basic smb.conf in \/usr\/local\/samba\/lib<\/p>\n<p>[global]<br \/>\n  workgroup = mycom_reston<br \/>\n  log file = \/usr\/local\/samba\/smb.log<br \/>\n  log level = 3<br \/>\n  security = share<br \/>\n  encrypt passwords = yes<br \/>\n  interfaces = 168.125.54.134<br \/>\n  hosts allow = localhost, cbmsdev1, 168.125.<br \/>\n  hosts deny = all<br \/>\n  browseable = yes<br \/>\n[wlserver]<br \/>\n  path = \/opt\/weblogic<br \/>\n  comment = WebLogic Servers<br \/>\n  writeable = yes<br \/>\n[jli]<br \/>\n  path = %H<br \/>\n  comment = %U Home Dir<br \/>\n  writeable = yes<br \/>\n[weblogic]<br \/>\n  path = %H<br \/>\n  comment = %U Home Dir<br \/>\n  writeable = yes<\/p>\n<p>\u2022Check config file<br \/>\n\/usr\/local\/samba\/bin\/testparm<\/p>\n<p>\u2022Modify inetd<br \/>\n-modify \/etc\/services:<br \/>\nInsert after sunrpc 111\/tcp rpcbind<br \/>\nnetbios-ns 137\/udp #Samba nmbd<br \/>\nnetbios-ssn 139\/tcp #Samba smbd<\/p>\n<p>Insert after ldaps  636\/udp<br \/>\nswat   901\/tcp #Samba swat<\/p>\n<p>-modify \/etc\/inetd.conf<br \/>\nAdd at end of file<br \/>\nnetbios-ssn stream tcp nowait root \/usr\/local\/samba\/bin\/smbd smbd<br \/>\nnetbios-ns dgram udp wait root \/usr\/local\/samba\/bin\/nmbd nmbd<br \/>\nswat stream tcp nowait.400 root \/usr\/local\/samba\/bin\/swat swat<\/p>\n<p>\u2022Tell inetd to re-read its conf file<br \/>\npkill -HUP inetd<\/p>\n<p>\u2022Add samba user<br \/>\nsmbpasswd -a jli<\/p>\n<p>\u2022Start daemon<br \/>\nsmbd -D -d 5<br \/>\nnmbd -D -d 5<\/p>\n<p>\u2022Autostart samba<br \/>\n-create \/etc\/init.d\/initsmb<br \/>\n-ln -s \/etc\/init.d\/initsmb \/etc\/rc0.d\/K10initsmb<br \/>\n-ln -s \/etc\/init.d\/initsmb \/etc\/rc2.d\/S99initsmb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2022Install samba pkgadd -d samba*local \u2022Install popt \u2022Install readline \u2022Install ncurses \u2022Install libgcc-3.2.2 \u2022Create lock dir (check existence) mkdir \/usr\/local\/samba\/var\/locks \u2022 -touch \/usr\/local\/samba\/private\/smbpasswh -touch \/usr\/local\/samba\/private\/secrets.tdb -chmod 0770 \/usr\/local\/samba\/private \u2022Create basic smb.conf in \/usr\/local\/samba\/lib [global] workgroup = mycom_reston log file = &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=485\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[33],"tags":[],"class_list":["post-485","post","type-post","status-publish","format-standard","hentry","category-unix"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s8cRUO-samba","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=485"}],"version-history":[{"count":2,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/485\/revisions"}],"predecessor-version":[{"id":542,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/485\/revisions\/542"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}