<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>15519</bug_id>
          
          <creation_ts>2008-05-01 00:38:59 +0400</creation_ts>
          <short_desc>Предлагается убрать из примера в smb.conf ресурс [tmp]</short_desc>
          <delta_ts>2009-05-10 09:33:48 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>samba-common</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69199</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-05-01 00:38:59 +0400</bug_when>
    <thetext>В /etc/samba/smb.conf есть пример
# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

лучше его убрать, чтобы не смущал людей.
а) насколько я понимаю, /tmp сейчас делается на tmpfs и вряд ли пригоден для 
обмена файлами
б) некоторые (я например тоже) меняют /tmp на /var/tmp, чем достигают потери 
важных файлов, причём через несколько недель.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69287</commentid>
    <comment_count>1</comment_count>
    <who name="Denis V. Chernosov">dvc</who>
    <bug_when>2008-05-04 16:24:04 +0400</bug_when>
    <thetext>Лучше не совсем убрать, а модифицировать например так:

# This one is useful for people to share files
;[simple-share]
;   comment = Simple all read/write share
;   path = /var/samba/simple-share
;   read only = no
;   public = yes
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70508</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Bokovoy">ab</who>
    <bug_when>2008-05-25 16:54:28 +0400</bug_when>
    <thetext>В 3.0.29-alt1 немного изменил smb.conf, добавив комментарии о том, что пути в
описаниях ресурсов необходимо внимательно проверить перед использованием. В
частности, для [tmp] поставил путь в /var/local/share (не существует в штатной
системе), соответственно, даже раскомментирование ресурса не приведет к
возможности его использования.

--- smb.conf.orig       2007-11-16 00:44:30 +0300
+++ smb.conf.rpmnew     2008-05-25 12:47:20 +0400
@@ -37,9 +37,9 @@
 # display charset = &lt;locale-specific for an user running client tools&gt;
 #
 # This is an example for Russian users:
-   dos charset = CP866
-   unix charset = UTF8
-   display charset = LOCALE
+;   dos charset = CP866
+;   unix charset = CP1251
+;   display charset = LOCALE
 # Please note that KOI8-R *does not* contain the NUMERO SIGN (N) which is in CP866
 # and therefore there will be problems when unix charset is KOI8-R

@@ -307,6 +307,10 @@


 #============================ Share Definitions ==============================
+#
+# NOTE:: Share definitions below are SAMPLE ONLY, you have to check at least
PATHS before using them
+#
+#
 [homes]
    comment = Home Directory for &apos;%u&apos;
    browseable = no
@@ -386,9 +390,11 @@
 ;   writable = yes

 # This one is useful for people to share files
+# Note that you have to specify *correct* path
+# the /var/local/share doesn&apos;t exist and we use it here to prevent mistakes
 ;[tmp]
 ;   comment = Temporary file space
-;   path = /tmp
+;   path = /var/local/share
 ;   read only = no
 ;   public = yes
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70511</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-05-25 19:18:06 +0400</bug_when>
    <thetext>Тогда багу можно закрыть?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70514</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Bokovoy">ab</who>
    <bug_when>2008-05-25 19:42:03 +0400</bug_when>
    <thetext>да, с приходом 3.0.29-alt1 в Сизиф.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>