Page 1 of 21 12311 ... LastLast
Results 1 to 15 of 308

Thread: () Samba3

  1. #1

    Post () Samba3

    , , 3 .
    , - .

    1. (Usb Apps -> Samba -> Samba File Shares - Disable)
    2. ipkg install samba
    20 . , .
    3. , opt/etc/samba:

    [global]
    interfaces = 192.168.1.1/24
    bind interfaces only = yes
    workgroup = WORKGROUP
    server string = WL-500G
    netbios name = WL-500G
    guest account = nobody
    security = user
    browseable = yes
    dns proxy = no
    guest ok = no
    guest only = no
    log level = 1
    max log size = 100
    encrypt passwords = yes
    preserve case = yes
    short preserve case = yes
    dos charset = UTF-8
    unix charset = UTF-8
    display charset = UTF-8
    wins support = yes
    os level = 255
    local master = yes
    [opt]
    path = /opt
    guest ok = no
    writable = yes
    force user = admin
    browseable = yes
    allow from = 192.168.1.
    [torrent]
    path = /opt/share/torrent
    guest ok = no
    writable = yes
    browseable = yes
    allow from = 192.168.1.
    4. smbpasswd

    5. S08samba

    #!/bin/sh

    # set samba_active=1 to activate samba
    samba_active=1

    [ 1 = $samba_active ] || exit 0

    if [ -n "`pidof smbd`" ] ; then
    echo "Stopping smbd:"
    killall smbd
    fi

    if [ -n "`pidof nmbd`" ] ; then
    echo "Stopping nmbd:"
    killall nmbd
    fi

    sleep 2

    echo "Starting nmbd:"
    /opt/sbin/nmbd -D
    echo "Starting smbd:"
    /opt/sbin/smbd -D
    ... .

    FTP vsFTPd vsftpd-2.0.7-ext1 ( 3).

    - ?!

    upd: BDMN ,
    Last edited by Omega; 01-04-2012 at 16:37. Reason: fixed

  2. #2

    Samba 3.0

    Samba 3.0.23d. SWAT Samb- SWAT .
    .
    S80samba:
    #!/bin/sh
    ....
    echo "Starting smbd:"
    /opt/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf;
    echo "Starting nmbd:"
    /opt/sbin/nmbd -D -n BEE_Wi-Fi -o -l /tmp -s /opt/etc/samba/smb.conf;
    :
    Starting smbd:
    ./S80samba: ./S80samba: 18: /opt/sbin/smbd: not found
    Starting nmbd:
    ./S80samba: ./S80samba: 20: /opt/sbin/nmbd: not found
    :
    /usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf
    /usr/sbin/nmbd -D -n BEE_Wi-Fi -o -l /tmp -s /opt/etc/samba/smb.conf
    .
    :-(
    901 post-fw

    Jan 1 06:00:11 xinetd[153]: xinetd Version 2.3.14 started with no options compiled in.
    Jan 1 06:00:11 xinetd[153]: Started working: 2 available services
    Jan 1 06:00:13 thttpd[172]: bind 0.0.0.0 - Address already in use
    Jan 1 06:00:15 thttpd[172]: thttpd/2.25b PHP/5.2.0 starting on port 82
    Jan 1 06:00:15 thttpd[172]: started as root without requesting chroot(), warning only
    Jan 16 22:34:03 kernel: VFS: Can't find ext3 filesystem on dev sd(8,0).
    Jan 16 22:34:03 kernel: MSDOS FS: Using codepage 866
    Jan 16 22:34:03 kernel: MSDOS FS: IO charset cp1251
    Jan 16 22:34:03 kernel: FAT: bogus logical sector size 0
    Jan 16 22:34:03 kernel: VFS: Can't find a valid FAT filesystem on dev 08:00.
    Jan 16 22:34:03 kernel: FAT: freeing iocharset=cp1251
    Jan 16 22:34:03 kernel: FAT: bogus logical sector size 0
    Jan 16 22:34:03 kernel: VFS: Can't find a valid FAT filesystem on dev 08:00.
    Jan 16 22:34:03 kernel: VFS: Can't find ext3 filesystem on dev sd(8,2).
    Jan 16 22:34:03 kernel: MSDOS FS: Using codepage 866
    Jan 16 22:34:03 kernel: MSDOS FS: IO charset cp1251
    Jan 16 22:34:03 kernel: FAT: bogus logical sector size 0
    Jan 16 22:34:03 kernel: VFS: Can't find a valid FAT filesystem on dev 08:02.
    Jan 16 22:34:03 kernel: FAT: freeing iocharset=cp1251
    Jan 16 22:34:03 kernel: FAT: bogus logical sector size 0
    Jan 16 22:34:03 kernel: VFS: Can't find a valid FAT filesystem on dev 08:02.
    Jan 16 22:34:04 dropbear[177]: Child connection from ::ffff:192.168.1.2:1812
    Jan 16 22:34:11 dropbear[177]: password auth succeeded for 'root' from ::ffff:192.168.1.2:1812
    Jan 16 22:34:12 ntp client: Synchronizing time with ntp.tomsk.ru ...
    Jan 16 22:34:54 pptp[112]: anon log[logechoptp_ctrl.c:670]: Echo Reply received.
    Jan 16 22:35:01 /opt/sbin/cron[193]: (MSapogov) CMD (run-parts /opt/etc/cron.5mins)
    Jan 16 22:35:54 pptp[112]: anon log[logechoptp_ctrl.c:670]: Echo Reply received.
    Jan 16 22:36:54 pptp[112]: anon log[logechoptp_ctrl.c:670]: Echo Reply received.
    Jan 16 22:37:54 pptp[112]: anon log[logechoptp_ctrl.c:670]: Echo Reply received.
    Jan 16 22:38:54 pptp[112]: anon log[logechoptp_ctrl.c:670]: Echo Reply received.
    Jan 16 22:39:05 smbd[306]: [2007/01/16 22:39:05, 0] smbd/password.cass_check_smb(513)
    Jan 16 22:39:05 smbd[306]: Error : UNIX and SMB uids in password files do not match for user 'Mikhail'!
    Jan 16 22:39:05 smbd[306]: [2007/01/16 22:39:05, 0] smbd/password.cass_check_smb(513)
    Jan 16 22:39:05 smbd[306]: Error : UNIX and SMB uids in password files do not match for user 'Mikhail'!
    Jan 16 22:39:05 smbd[306]: [2007/01/16 22:39:05, 0] smbd/nttrans.c:call_nt_transact_ioctl(2516)
    Jan 16 22:39:05 smbd[306]: call_nt_transact_ioctl: Currently not implemented.
    Jan 16 22:39:54 pptp[112]: anon log[logechoptp_ctrl.c:670]: Echo Reply received.
    Jan 16 22:40:01 /opt/sbin/cron[308]: (root) CMD (run-parts /opt/etc/cron.5mins)
    ?
    3 WL500gP (Oleg#post5) . .

  3. #3

    Samba 3.5.12

    Samba 3.5.12

    Samba 3.5.12-1.
    , .
    , . , .

    .
    Code:
    ipkg install samba35 adduser
    20 .

    Samba 1.9. .
    Code:
    nvram set usb_vfat_options=codepage=866,iocharset=cp1251
    nvram set usb_smbcpage_x=866
    nvram set usb_smbcset_x=1251
    nvram commit
    , .
    Code:
    mv /opt/etc/init.d/S08samba /opt/etc/init.d/S80samba

    Code:
    nano /opt/etc/init.d/S80samba
    Code:
    #!/bin/sh
    
    if [ -n "`pidof smbd`" ] ; then
        echo "Stopping smbd:"
        killall smbd
    fi
    
    if [ -n "`pidof nmbd`" ] ; then
        echo "Stopping nmbd:"
        killall nmbd
    fi
    
    echo "Starting nmbd:"
    /opt/sbin/nmbd -D
    echo "Starting smbd:"
    /opt/sbin/smbd -D

    Code:
    chmod +x /opt/etc/init.d/S80samba
    samba, , passwd - smbpasswd -a

    Code:
    adduser -h /opt -s /sbin/nologin -G root -H admin
    smbpasswd -a admin
    admin, , /home
    Code:
    chown admin:root /home
    smb.conf

    !!!! ip !
    interfaces = 192.168.1.1/24
    UTF-8
    Code:
    export LANG="ru_RU.UTF-8"
    , .
    load printers = no
    printcap name = /dev/null
    Code:
    nano /opt/etc/samba/smb.conf
    Code:
    [global]
            interfaces = 192.168.1.1/24
            bind interfaces only = yes
    
            #  
            workgroup = HOME
            server string = Black_Hole
            browseable = yes
            dns proxy = no
    
            #  
            guest account = nobody
            security = share
            map to guest = bad user
            guest only = no
            guest ok = no
            encrypt passwords = yes
            preserve case = yes
            short preserve case = yes
    
            # 
            log level = 1
            max log size = 100
            log file = /var/log/samba/%m.log
    
            # 
            dos charset = UTF-8
            unix charset = UTF-8
            display charset = UTF-8
    
            #  
            read raw = yes
            write raw = yes
            oplocks = yes
            max xmit = 65535
            dead time = 15
            getwd cache = yes
            socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
    
            # 
            load printers = no
            printcap name = /dev/null
            wins support = yes
            time server = no
            os level = 255
            local master = yes
    
            hosts allow = 192.168.1. 127.
    
    [share]
            path = /opt/torrent/download/
            public = yes
            guest only = yes
            guest ok = yes
    
    [incoming]
            path = /home
            public = yes
            only guest = yes
            writable = yes
            printable = no
            create mask = 0666
            directory mode = 0777
    [admin]
            path = /
            guest ok = no
            writable = yes
            force user = admin
            browseable = no
            valid users = admin
    , admin.

    incoming
    Code:
    chmod 777 /home/samba/incoming
    
    echo /etc/passwd >> /usr/local/.files
    echo /etc/group >> /usr/local/.files
    echo /etc/profile >> /usr/local/.files	
    	
    flashfs save && flashfs commit && flashfs enable && reboot
    swat
    necrom
    Code:
    nano /opt/etc/xinetd.d/swat
    ip 192.168.1.1
    Code:
    nano /opt/etc/xinetd.conf
    866, iconv (libiconv) glibc 2.3.5.
    init_iconv: Conversion from CP866 to ASCII not supported
    init_iconv: Attempting to replace with conversion from ASCII to ASCII
    Error trying to resolve symbol 'init_samba_module' in /opt/lib/charset/CP866.so: Unable to resolve symbol
    . admin.

    .
    .
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Omega; 10-04-2013 at 12:47. Reason: fixed

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,261
    - . , /opt/sbin/smbd /opt/sbin/nmbd ?

  5. #5
    Join Date
    Jan 2007
    Location
    Moscow
    Posts
    145
    , , , ?
    RoverBook Pro 500WH AMD X64/512/100/RW+Asus WL500gP

  6. #6
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,261
    - .

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,261
    - , .. , "" ..

  8. #8
    Quote Originally Posted by Oleg View Post
    - . , /opt/sbin/smbd /opt/sbin/nmbd ?
    . ...

  9. #9
    ... .

  10. #10
    Quote Originally Posted by Firemover View Post
    ... .
    ?

  11. #11

    Upgrade Samba 3 WL-500gP

    , 3 ?
    , ?
    .

  12. #12

    Samba3 Segmentation fault

    . 3, . nmbd smbd Segmentation fault.
    .
    3?

  13. #13
    +1 ( )
    Sorry for my bad English.
    Покупайте Отечественных Слонов!!!

  14. #14
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,261
    ? ?

  15. #15

    Code:
    echo "src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable" > /opt/etc/ipkg.conf
    echo "dest root /" >> /opt/etc/ipkg.conf
    ipkg update && ipkg install uclibc-opt && awk '/^Package:/{system("ipkg install -force-reinstall -force-defaults " $2)}' /opt/lib/ipkg/status

Page 1 of 21 12311 ... LastLast

Similar Threads

  1. CRON
    By dimvia in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 298
    Last Post: 23-05-2013, 16:40
  2. PPTP VPN (accel-pppd) WL-500gP
    By biGdada in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 279
    Last Post: 23-05-2013, 14:31
  3. VLC ?
    By jek8 in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 88
    Last Post: 23-05-2013, 09:18
  4. Virtual DMZ
    By xAL in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 167
    Last Post: 23-11-2012, 01:57
  5. (mtu & dns)
    By CHERT in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 347
    Last Post: 24-10-2012, 09:05

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •