Need help with smb.cfg

slimard

Vu+ Newbie
Hello,

I would appreciate if anyone could help me with the default smb.cfg config. Currently my internal HDD is shared as Harddisk and anyone can read/write. I would like to limit the access to the root only. The smb.cfg is below. Would you please tell me what settings I need to change.

[global]
load printers = no
guest account = root
log file = /tmp/smb.log
log level = 1
security = share
server string = Vuplus %h network services
workgroup = Vuplus
netbios name = %h
case sensitive=yes
preserve case=yes
short preserve case=yes
socket options = TCP_NODELAY
preferred master = no ;(These stop the machine being master browser, which means that it doesn't waste time there.)
unix extensions = no

[Harddisk]
comment = The harddisk
path = /hdd
wide links = yes
read only = no
public = yes
guest ok = yes
 

angelofsky1980

BlackHole Driver Specialist
Code:
[Harddisk]
  comment = The harddisk
  path = /hdd
  wide links = yes
  read only = no
  public = yes
  guest ok = yes

You should remove the following lines from the block reported above:
guest ok

Should be sufficient to restrict the access to root account (I don't use SMB on box but I will make some searches on the Net to help you if you have problems again) :)
 

slimard

Vu+ Newbie
Thanks! I commented out the line but it did not help.

I stopped and restarted the smbd
stop --> start-stop-daemon -K --pidfile /var/run/smbd.pid
start --> start-stop-daemon -S --pidfile /var/run/smbd.pid -x /usr/sbin/smbd

[Harddisk]
comment = The harddisk
path = /hdd
wide links = yes
read only = no
public = yes
; guest ok = yes
 
Top