시놀로지 절전모드 해두면

하드랑 전부 절전모드로 있다가 삼바 접속 시도하면 살아나도록 되어있는데

완전 꺼져있다 켜지는건 아니고

Suspend to RAM 에서 LAN은 살아있다가 깨어 나도록 설정하는 것이고


그게 APCI S3 모드 인듯?

$ aptitude install pm-utils

$ cd /usr/lib/pm-utils/sleep.d/

$ sudo vi 70wol

#!/bin/bash

ethtool -s eth0 wol pug

$ sudo chmod +x 70wol

$ sudo pm-suspend


[링크 : https://superuser.com/.../is-it-possible-to-wake-up-an-acpi-s3-suspended-linux-system-with-an-smb-packet]


The ACPI specification defines the following four global "Gx" states and six sleep "Sx" states for an ACPI-compliant computer system:[23][24]

  • G0 (S0), Working: The computer is running and the CPU executes instructions. "Awaymode" is a subset of S0, where monitor is off but background tasks are running.
  • G1Sleeping: Divided into four states, S1 through S4:
    • S1Power on Suspend (POS): Processor caches are flushed, and the CPU(s) stops executing instructions. The power to the CPU(s) and RAM is maintained. Devices that do not indicate they must remain on may be powered off.
    • S2: CPU powered off. Dirty cache is flushed to RAM.
    • S3, commonly referred to as Standby, Sleep, or Suspend to RAM (STR): RAM remains powered.
    • S4Hibernation or Suspend to Disk: All content of the main memory is saved to non-volatile memory such as a hard drive, and the system is powered down.
  • G2 (S5), Soft Off: G2/S5 is almost the same as G3 Mechanical Off, except that the power supply unit (PSU) still supplies power, at a minimum, to the power button to allow return to S0. A full reboot is required. No previous content is retained. Other components may remain powered so the computer can "wake" on input from the keyboard, clock, modemLAN, or USB device.
  • G3Mechanical Off: The computer's power has been totally removed via a mechanical switch (as on the rear of a PSU). The power cord can be removed and the system is safe for disassembly (typically, only the real-time clock continues to run using its own small battery). 

[링크 : https://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface]

신고
Posted by 구차니

댓글을 달아 주세요

samba를 이용한 파일서버에서

일정 시간 이후에 자동 접속 차단 혹은 로그아웃 되는 녀석이 머가 있을려나...


deadtime (G)


The value of the parameter (a decimal integer) represents the number of minutes of inactivity before a connection is considered dead, and it is disconnected. The deadtime only takes effect if the number of open files is zero.


This is useful to stop a server's resources being exhausted by a large number of inactive connections.


Most clients have an auto-reconnect feature when a connection is broken so in most cases this parameter should be transparent to users.


Using this parameter with a timeout of a few minutes is recommended for most systems.


A deadtime of zero indicates that no auto-disconnection should be performed.


Default: deadtime = 0


Example: deadtime = 15



machine password timeout (G)


If a Samba server is a member of a Windows NT Domain (see the security = domain parameter) then periodically a running smbd process will try and change the MACHINE ACCOUNT PASSWORD stored in the TDB called private/secrets.tdb . This parameter specifies how often this password will be changed, in seconds. The default is one week (expressed in seconds), the same as a Windows NT Domain member server.


See also smbpasswd(8), and the security = domain parameter.


Default: machine password timeout = 604800 


[링크 : https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html]



Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options

Description

Determines whether to disconnect users that are connected to the local machine outside of their user account's valid logon hours. This setting affects the Server Message Block (SMB) component of a Windows 2000 server.

When this policy is enabled, it causes client sessions with the SMB server to be forcibly disconnected when the client's logon hours expire.

If this policy is disabled, an established client session is allowed to be maintained after the client's logon hours have expired.

This policy is defined by default in Local Computer Policy, where it is enabled by default. 

[링크 : https://technet.microsoft.com/en-us/library/cc938001.aspx]


+

[링크 : https://www.centos.org/forums/viewtopic.php?t=8810]


+

도메인 관리가 안되는 컴퓨터일 경우 적용이 안되려나?


[링크 : https://social.technet.microsoft.com/Forums/scriptcenter/ko-KR/9abce81d-7c94-40a7-b205-f8c179648928/windows-2012-?forum=windowsserverko]

[링크 : https://answers.microsoft.com/ko-kr/windows/forum/windows_7-networking/net-config-server-autodisconnect0/310ea6cf-2791-4600-84d0-476acacd218e]

신고
Posted by 구차니

댓글을 달아 주세요

리눅스에서 CUPS 통해서 프린터 공유 중인데

이 경우에도 smb1 프로토콜을 쓰는지 SMB2로 min protocol을 제한하면

프린트가 안된다 -_-

신고
Posted by 구차니

댓글을 달아 주세요


min protocol = SMB2

max protocol = SMB3

[링크 : https://askubuntu.com/questions/546743/how-to-force-smb2-protocol-in-samba]

신고
Posted by 구차니

댓글을 달아 주세요

단종된게 대개 그렇지만, 보안상의 이유로 더 이상 유지하지 않기로..

[링크 : http://blog.learningtree.com/rhel-7-new-features-samba-4-changes/]


요건 다 예전 문서가 되어버리네.

[링크 : https://help.ubuntu.com/community/Swat]

[링크 : https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html]

신고
Posted by 구차니

댓글을 달아 주세요

패키지 설치하고 wins 추가하면 끝 ㄷ ㄷ ㄷ

이렇게 쉬운걸 안하고 왜 살았지? ㅠㅠ


$  sudo apt-get install libnss-winbind

$  sudo vi /etc/nsswitch.conf 

hosts:          files mdns4_minimal [NOTFOUND=return] dns wins



[링크 : http://askubuntu.com/questions/507649/ubuntu-can-not-ping-host-name-but-can-ping-ip]


+

2016.12.20

14.04 이후부터 추가된 패키지 인 듯

[링크 : http://packages.ubuntu.com/search?keywords=libnss-winbind]

신고
Posted by 구차니

댓글을 달아 주세요

vfs objects = recycle


위의 항목을 이용하면 vfs module을 통해서

휴지통 기능을 지원한다고 한다.

synology에서 이 기능으로 삼바 휴지통을 구현한걸려나?


[링크 : http://unix.stackexchange.com/.../how-can-i-have-a-trash-recycle-bin-for-my-samba-shares]

[링크 : http://forums.openmediavault.org/index.php/Thread/3098-RESOLVED-Recycle-bin-for-SMB-CIFS/]


EXAMPLES

Move files "deleted" on share to /data/share/.recycle instead of deleting them:

      [share]

path = /data/share

vfs objects = recycle

recycle:repository = .recycle

recycle:keeptree = yes

recycle:versions = yes


VERSION

This man page is correct for version 3.0.25 of the Samba suite.


[링크 : https://www.samba.org/samba/docs/man/manpages/vfs_recycle.8.html


신고

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

어라.. samba swat 사라졌네  (0) 2017.01.03
wins를 이용한 ubuntu에서 samba host 이름 resolve하기  (0) 2016.09.10
삼바 휴지통 vfs_object  (0) 2015.12.08
samba - nfs - samba 0x80070021 오류  (0) 2015.11.09
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
Posted by 구차니

댓글을 달아 주세요

일단 윈7 되면서 SMB2 로 버전이 업되었고

SMB2 부터는 oplock을 끌수 없게 되었다고 한다.


그래서 win7에서 SMB2/3를 사용하지 않고 SMB1으로 강제 한뒤

oplock을 끌수는 있다고 하는데..


The SMBv2 protocol was introduced in Windows Vista and Windows Server 2008. 

The SMBv3 protocol was introduced in Windows 8 and Windows Server 2012.

[링크 : https://support.microsoft.com/en-us/kb/2696547]


일단 윈도우에서 파일 업로드가 안되는 에러가 발생해서 검색해보니

strict locking을 끄라고 해서 해봤더니.. 일단은 됨..(여전히 오래 걸리지만)


$ sudo vi /etc/samba/smb.conf

[global]

strict locking = no




[링크 : http://serverfault.com/...nfs4-mount-directory-window-clients-cannot-copy-file]

신고

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

wins를 이용한 ubuntu에서 samba host 이름 resolve하기  (0) 2016.09.10
삼바 휴지통 vfs_object  (0) 2015.12.08
samba - nfs - samba 0x80070021 오류  (0) 2015.11.09
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
samba 폴터 생성시 퍼미션  (0) 2012.12.14
Posted by 구차니

댓글을 달아 주세요

음.. smbpasswd에 NTLM hash를 이용하나.. 아무튼
brute force로 하던지 아는거 맞는지 확인용으로는 적당할 듯

[링크 : http://www.tobtu.com/lmntlm.php]
신고

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

삼바 휴지통 vfs_object  (0) 2015.12.08
samba - nfs - samba 0x80070021 오류  (0) 2015.11.09
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
samba 폴터 생성시 퍼미션  (0) 2012.12.14
winXP에서 삼바접속이 느릴경우  (0) 2012.12.10
Posted by 구차니

댓글을 달아 주세요

synology 에서 SMB 관련 옵션중 SMB2 라는게 있어 찾아 보니
vista 이후에 추가된 기능이라고 한다.

SMB 2.1
SMB 2.1, introduced with Windows 7 and Server 2008 R2, introduced minor performance enhancements with a new opportunistic locking mechanism.

SMB 3.0
SMB 3.0 (previously named SMB 2.2) was introduced with Windows 8 and Windows Server 2012. It brought several significant changes, such as the SMB Direct Protocol (SMB over RDMA) and SMB Multichannel (multiple connections per SMB session), that are intended to add functionality and improve SMB2 performance, notably in virtualized data centers. 

[링크 : http://en.wikipedia.org/wiki/Server_Message_Block#SMB_2_and_3

설정방법은 다음과 같다고 한다.
일단 삼바 3.6.0 버전 이상일경우 전체 기능을 지원하며
max protocol 키워드로 설정한다.
SMB2 support
SMB2 support in 3.6.0 is fully functional (with one omission), and can be enabled by setting:
max protocol = SMB2
in the [global] section of your smb.conf and re-starting Samba. All features should work over SMB2 except the modification of user quotas using the Windows quota management tools.
As this is the first release containing what we consider to be a fully featured SMB2 protocol, we are not enabling this by default, but encourage users to enable SMB2 and test it. Once we have enough confirmation from Samba users and OEMs that SMB2 support is stable in wide user testing we will enable SMB2 by default in a future Samba release.
 
[링크 : http://wiki.samba.org/index.php/Samba_3.6_Features_added/changed#SMB2_support

신고

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

samba - nfs - samba 0x80070021 오류  (0) 2015.11.09
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
samba 폴터 생성시 퍼미션  (0) 2012.12.14
winXP에서 삼바접속이 느릴경우  (0) 2012.12.10
삼바 - nfs - 삼바 공유하기  (0) 2012.12.07
Posted by 구차니

댓글을 달아 주세요