Bug 15519 - Предлагается убрать из примера в smb.conf ресурс [tmp]
Summary: Предлагается убрать из примера в smb.conf ресурс [tmp]
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: samba-common (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: Evgeny Sinelnikov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-01 00:38 MSD by Vitaly Lipatov
Modified: 2009-05-10 09:33 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2008-05-01 00:38:59 MSD
В /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, чем достигают потери 
важных файлов, причём через несколько недель.
Comment 1 Denis V. Chernosov 2008-05-04 16:24:04 MSD
Лучше не совсем убрать, а модифицировать например так:

# 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
Comment 2 Alexander Bokovoy 2008-05-25 16:54:28 MSD
В 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 = <locale-specific for an user running client tools>
 #
 # 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 '%u'
    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'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
Comment 3 Vitaly Lipatov 2008-05-25 19:18:06 MSD
Тогда багу можно закрыть?
Comment 4 Alexander Bokovoy 2008-05-25 19:42:03 MSD
да, с приходом 3.0.29-alt1 в Сизиф.