[sisyphus] поламалась samba

Alexander Bokovoy =?iso-8859-1?q?ab_=CE=C1_altlinux=2Eorg?=
Ср Май 23 14:23:46 MSD 2007


Тимощенков Павел Васильевич пишет:
>> Так а что же в /var/lib/samba?
>> 
>> 
> 
> Для чистоты эксперимента сделал следующее: - apt-get remove ^samba; -
> руками удалил все оставшиеся конфиги и каталоги; - apt-get install
> samba; - root на piton /var/lib # ls /var/lib/samba messages.tdb
> netlogon  profiles  winbindd_privileged - root на piton /var/lib #
> service smb restart Shutting down CIFS services:  Samba server,
> NetBIOS over TCP/IP server                     [FAILED] Starting CIFS
> services:  NetBIOS over TCP/IP server, Samba server
> [FAILED] - tdb(/var/lib/samba/ntforms.tdb): tdb_reopen: open failed
> (No such file or directory) :(
> 
На x86_64, прямо сейчас (самба не была установлена, это пустой
виртуальный сервер):

[root на vab64 ~]# apt-get install samba
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libkrb5 libldap2.3 libsasl2 samba-common
The following NEW packages will be installed:
  libkrb5 libldap2.3 libsasl2 samba samba-common
0 upgraded, 5 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/12.9MB of archives.
After unpacking 30.7MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Committing changes...
Preparing...                 ###########################################
[100%]
1: libkrb5                   ###########################################
[ 20%]
2: libsasl2                  ###########################################
[ 40%]
3: libldap2.3                ###########################################
[ 60%]
4: samba-common              ###########################################
[ 80%]
5: samba                     ###########################################
[100%]
Done.
[root на vab64 ~]# ls -l /var/lib/samba
total 0
drwxrwxr-x 2 root root    6 May 14 17:45 netlogon
drwxrwxr-x 2 root root    6 May 14 17:45 profiles
drwxr-x--- 2 root winbind 6 May 14 17:45 winbindd_privileged
[root на vab64 ~]# service smb start
Starting CIFS services:  NetBIOS over TCP/IP server, Samba server
[ DONE ]
[root на vab64 ~]# ps axf
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:00 init [3]
18295 ?        Ss     0:00 /sbin/minilogd
18304 ?        Ss     0:00 /usr/sbin/sshd
 8673 ?        Ss     0:00  \_ sshd: ab [priv]
 8677 ?        S      0:00      \_ sshd: ab на pts/10
 8678 pts/10   Ss     0:00          \_ -bash
 8685 pts/10   S      0:00              \_ su -
 8688 pts/10   S      0:00                  \_ -bash
 9754 pts/10   R+     0:00                      \_ ps axf
 9741 ?        Ss     0:00 /usr/sbin/nmbd -D
 9743 ?        Ss     0:00 /usr/sbin/smbd -D
 9745 ?        S      0:00  \_ /usr/sbin/smbd -D
[root на vab64 ~]# apt-get install samba-client
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libsmbclient samba-client-control
The following NEW packages will be installed:
  libsmbclient samba-client samba-client-control
0 upgraded, 3 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/6424kB of archives.
After unpacking 15.6MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Committing changes...
Preparing...
############################################################################
[100%]
1: libsmbclient
############################################################################
[ 33%]
2: samba-client-control
############################################################################
[ 66%]
3: samba-client
############################################################################
[100%]
Done.
[root на vab64 ~]# smbclient -L localhost -U%
Domain=[ALTDOMAIN] OS=[Unix] Server=[Samba 3.0.25]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (Samba server on vab64 (v.
3.0.25))
Domain=[ALTDOMAIN] OS=[Unix] Server=[Samba 3.0.25]

        Server               Comment
        ---------            -------
        VAB64                Samba server on vab64 (v. 3.0.25)

        Workgroup            Master
        ---------            -------
        ALTDOMAIN


-- 
/ Alexander Bokovoy
Samba Team                      http://www.samba.org/
ALT Linux Team                  http://www.altlinux.org/
Midgard Project Ry              http://www.midgard-project.org/



Подробная информация о списке рассылки Sisyphus