English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Linux testparm 명령어는 Samba 설정이 올바르게 되었는지 테스트하는 데 사용됩니다.
Samba 설정 파일을 간단히 테스트할 수 있는 testparm(test parameter) 명령어를 실행하면, 설정이 정확하다면 Samba의 정주 서비스가 설정 값을 올바르게 로드될 수 있지만, 이후의 작업이 예상대로 일어나지 않을 수 있습니다.
testparm [-s][설정 파일][<호스트 이름><IP 주소>]
파라미터 설명:
查看Ssmba配置
# testparm Load smb config files from /etc/samba/smb.conf Processing section '[homes]' Processing section '[printers]' Processing section '[uptech]' Processing section '[home]' Loaded services file OK. 서버 역할: ROLE_STANDALONE Press enter to see a dump of your service definitions ///Enter를 눌러 계속하세요 # 전역 매개변수 [global] workgroup = MYGROUP server string = Samba Server security = SHARE encrypt passwords = No password server = None log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap dns proxy = No idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [uptech] comment = * path = /home/uptech read only = No guest ok = Yes [home] comment = * path = /home read only = No guest ok = Yes