Samba-val probalnek megosztani egy linuxos dir-t a windows kliensek
szamara, de sajnos nem jon ossze. Ervenytelen falhasznaloi nev vagy
jelszo -t dob a windows.
smb.conf:
[global]
workgroup = MSHOME
guest account = nobody
security = user
browseable = yes
guest ok = no
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
hosts allow = 192.168.
netbios name = Asus
server string = Asus WL-500g Premium
[megosztas]
comment = ASUS
path=/opt/etc/samba/Share/
read only = no
writeable = yes
browseable = no
public = no
valid users = belepes
/etc/passwd tartalma:
root::0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin
belepes::1000:1000:Linux User,,,:/home/belepes:/sbin/nologin
es ezzel a scriptel inditom:
#!/bin/sh
/usr/sbin/smbd -D -l /opt/etc/samba/Share/log/smbd.log -s /opt/etc/samba/smb.conf
/usr/sbin/nmbd -D -n ASUS -o -l /tmp -s /opt/etc/samba/smb.conf
smbd -V
Version 2.0.10-security-rollup
Probaltam smbpasswd -t futtatni csak az:
smbpasswd
params.c:OpenConfFile() - Unable to open configuration file "/etc/smb.conf":
No such file or directory
Can't load /etc/smb.conf - run testparm to debug it
ugyanis nálam: /opt/etc/samba/smb.conf a fajl.
Az etc nem irhato mert read onlynak van mountolva technikai okokbol,
igy nem symlinkezheto.
Gondoltam -c -vel megadom a file helyet.
man szerint:
-c
This option can be used to specify the path and file name of the
smb.conf configuration file when it is important to use other than
the default file and / or location.
smbpasswd -a -c /opt/etc/samba/smb.conf belepes
erre:
params.c:OpenConfFile() - Unable to open configuration file "/etc/smb.conf":
No such file or directory
Can't load /etc/smb.conf - run testparm to debug it
Szoval valamit nagyon nem ertek. Szerintetek mit rontok el?
Koszi!
Udv: Battle
- 1271 megtekintés
Hozzászólások
up
- A hozzászóláshoz be kell jelentkezni
Feltettem egy ujabb samba verziot. Version 3.0.14a. Az eddigi 2.x helyett. itt mar parameterezheto az smbpasswd, csak itt meg a hiba a kovetkezo:
Can't load /opt/etc/samba/smb.conf - run testparm to debug it
Mikor lefuttatom a testparm-ot:
Load smb config files from /opt/etc/samba/smb.conf
Loaded services file OK.
ERROR: lock directory /opt/var/samba does not exist
ERROR: pid directory /opt/var/samba does not exist
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
Sajnos google nem segitett a ket ERROR eltunteteseben. Hiaba irtam be a conf fajlba:
pid directory = /opt/etc/samba/Share/log/samba/run/mktg
lock directory = /opt/etc/samba/Share/log/samba/cache/mktg
Akkor is /opt/var/samba-nal errorozik, hogy az nincs, PEDIG AZ IS LETEZIK!!
ls /opt/var/
cache cron lib log run samba spool
:(
- A hozzászóláshoz be kell jelentkezni
firmware: original/oleg/openwrt/ddwrt ?? (lehet, hogy nem mindegy.)
- A hozzászóláshoz be kell jelentkezni
oleg. jelenleg fut mar az smbpasswd.
smbd -V
Version 3.2.15
Ez oldotta meg a problemat. de meg igysem tudok userrel csatlakozni, az smb.conf az mint eddig. smbpasswd -a belepes
Kiadtam a parancsot adtam neki pass-t es semmi.. :(
- A hozzászóláshoz be kell jelentkezni