1

Всем привет, есть два компьютера оба с Сent os на одном установлена Samba и расшарена пака на втором через fstab примонтированна.
Так же есть некое приложение которые выгружает файлы в примонтированую папку, и вот проблема в следующем когда я пытаюсь первый раз выгрузить в папку файл из приложения выпадает ошибка доступа, при этом в папке появляется  файл с размером 0, тут же выгружаю второй раз и все проходит уже без ошибок, может кто знает куда можно покопать ?

2

Что в конфигах, что в логах? Версии "самбы"?
P.S. Название темы изменено - CentOS, Samba = проблема с доступом при монтировании.

Истинный hotplug - это обычная электрическая розетка: воткнул - работает, и никаких драйверов.
Arch Linux/Xfce/Xiaomi Mi Notebook Pro 15.6 | Slackware64-current/Xfce/Lenovo G580

3

smb.config

+ открыть спойлер
[root@Server ~]# cat /etc/samba/smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
#  http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
#  http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#---------------
# SELINUX NOTES:
#
# If you want to use the useradd/groupadd family of binaries please run:
# setsebool -P samba_domain_controller on
#
# If you want to share home directories via samba please run:
# setsebool -P samba_enable_home_dirs on
#
# If you create a new directory you want to share you should mark it as
# "samba_share_t" so that selinux will let you write into it.
# Make sure not to do that on system directories as they may already have
# been marked with othe SELinux labels.
#
# Use ls -ldZ /path to see which context a directory has
#
# Set labels only on directories you created!
# To set a label use the following: chcon -t samba_share_t /path
#
# If you need to share a system created directory you can use one of the
# following (read-only/read-write):
# setsebool -P samba_export_all_ro on
# or
# setsebool -P samba_export_all_rw on
#
# If you want to run scripts (preexec/root prexec/print command/...) please
# put them into the /var/lib/samba/scripts directory so that smbd will be
# allowed to run them.
# Make sure you COPY them and not MOVE them so that the right SELinux context
# is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts
#
#--------------
#
#======================= Global Settings =====================================
#security = share
security = share
passdb backend = tdbsam

#============================ Share Definitions ==============================

[homes]
        comment = Home Directories
        browseable = no
        writable = yes
;       valid users = %S
;       valid users = MYDOMAIN\%S
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
;       [netlogon]
;       comment = Network Logon Service
;       path = /var/lib/samba/netlogon
;       guest ok = yes
;       writable = no
;       share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;       [Profiles]
;       path = /var/lib/samba/profiles
;       browseable = no
;       guest ok = yes


# A publicly accessible directory, but read only, except for people in
# the "staff" group
;       [public]
;       comment = Public Stuff
;       path = /home/samba
;       public = yes
;       writable = yes
;       printable = no
;       write list = +staff

[papka]
        comment = mvv
        path = /home/user/papka
        writeable = yes
        write list = user, firebird
        browseable = yes
        public = yes
        force group = firebird

Логи если про эти var/log/samba/

+ открыть спойлер
[2013/08/05 09:00:59,  0] smbd/server.c:1026(main)
  smbd version 3.6.9-151.el6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/08/05 14:32:48.873550,  0] smbd/process.c:244(read_packet_remainder)
  read_fd_with_timeout failed for client 0.0.0.0 read error = NT_STATUS_IO_TIMEOUT.
[2013/08/05 15:21:01.590284,  0] rpc_server/srv_pipe.c:1254(api_pipe_bind_auth3)
  Auth failed (NT_STATUS_NO_SUCH_USER)
[2013/08/05 15:34:59,  0] smbd/server.c:1026(main)
  smbd version 3.6.9-151.el6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011

Версия самбы 3.6.9-151.el6 started

4

А может было бы умеснее связать два линукса с помощью NFS

Trouble  in WINDOWS reboot, trouble in UNIX be root.

5

Возможно, но я всем этим хозяйством не управляю, я так сказать исполняю чужую волю, людей опытных  ab и невозмутимых  ao , сказали что только так.