Hirdetés

2024. május 8., szerda

Gyorskeresés

Téma összefoglaló

Téma összefoglaló

  • Utoljára frissítve: 2023-12-13 05:20:12

LOGOUT.hu

TP-Link WR1043ND - N450 router

Összefoglaló kinyitása ▼

Hozzászólások

(#33020) LetoAtreides válasza sonar (#33016) üzenetére


LetoAtreides
csendes tag

Itt nézz körül: http://wiki.openwrt.org/doc/uci/samba
Nálam a samba beállítások:

/etc/config/samba:
config samba
option name 'Router'
option description 'Megosztott Winchester'
option workgroup 'MUNKACSOPORT'
option homes '0'

config sambashare
option read_only 'no'
option guest_ok 'yes'
option create_mask '0770'
option dir_mask '0770'
option name '_SHARED'
option path '/mnt/_SHARED'

Ha a sambashare-ben elvileg a option guest_ok értékét no-ra állítom, akkor nem enged be vendég felhasználóként. Továbbá, ha option users-el megadsz felhasználókat, akkor azzal lehet beléni.
Pl.: option users 'jancsi,juliska'
Az smbpasswd paranccsal tudsz megadni jelszót jancsinak és juliskának! Elvileg lehet olyat, hogy akik a /etc/passwd-ban vannak benne, azokra adsz meg beléptetést, de ebben nem vagyok biztos! Én magamnak úgy csináltam, hogy smbpasswd -a jancsi. Ez létrehozta a jancsi user-t és be is állított neki jelszót! Ezután, ha az option users-ben megadtam a jancsit, akkor kérte a jelszót és a jancsi/beállított jelszóval be is engedett. Egy /etc/init.d/samba restart parancs kiadása sem árthat.

A /etc/samba/smb.conf.template fájlom:
[global]
netbios name = |NAME|
display charset = |CHARSET|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
workgroup = |WORKGROUP|
browseable = yes
deadtime = 30
domain master = yes
encrypt passwords = true
enable core files = no
guest account = samba
guest ok = yes
invalid users = root
local master = yes
load printers = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
obey pam restrictions = yes
os level = 20
passdb backend = smbpasswd
preferred master = yes
printable = no
security = share
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY
syslog = 2
use sendfile = yes
writeable = yes

A /etc/samba/smb.conf fájlom:
[global]
netbios name = Router
display charset = UTF-8
interfaces = 127.0.0.1/8 lo 192.168.1.1/24 br-lan
server string = Megosztott Winchester
unix charset = UTF-8
workgroup = MUNKACSOPORT
browseable = yes
deadtime = 30
domain master = yes
encrypt passwords = true
enable core files = no
guest account = samba
guest ok = yes
invalid users = root
local master = yes
load printers = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
obey pam restrictions = yes
os level = 20
passdb backend = smbpasswd
preferred master = yes
printable = no
security = share
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY
syslog = 2
use sendfile = yes
writeable = yes

[_SHARED]
path = /mnt/_SHARED
read only = no
guest ok = yes
create mask = 0770
directory mask = 0770

[ Szerkesztve ]

I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me.

Copyright © 2000-2024 PROHARDVER Informatikai Kft.