You are not logged in.

#1 2012-12-14 14:03:03

pzlvv
Member
Registered: 2012-12-07
Posts: 9

Samba config

I config my smb.conf like follow


#======================= Global Settings =====================================
[global]
   workgroup = WORKGROUP
   server string = Samba Server
   security = share
   log file = /var/log/samba/%m.log
   max log size = 50
   dns proxy = no

#============================ Share Definitions ==============================
[TestTest]
   comment = Share Directories
   path = /home/zane/Public
   public = yes
   guest ok = yes
   browseable = yes
   writable = yes

[TestTest2]
   comment = Share Directories
   path = /home/zane/Test
   public = yes
   guest ok = yes
   browseable = yes
   writable = yes

where Public and Test are 777 permission.

Then I did a test:

smbclient   //localhost/TestTest -U %
smb:\> ls

NT_STATUS_ACCESS_DENIED listing \*

I've set a 777 permission, why still get this? Is there any problem with my config?

Offline

#2 2012-12-16 11:39:18

Shelltux
Member
Registered: 2012-12-15
Posts: 5
Website

Re: Samba config

Hi pzlvv,

did you added a user using

smbpasswd -a [Username]

to the local Samba user repository?

After you did that I guess the following should help:

smbclient \\localhost\TestTest -U [username]%[password]

If you dont add %[Password] you will be asked for input.

Greets

Markus

Offline

#3 2012-12-17 05:04:57

pzlvv
Member
Registered: 2012-12-07
Posts: 9

Re: Samba config

Thanks a lot, It seems it is "security" option made the trouble. Finally I get my target by follow wiki again( although I can't understand them totally tongue)

Offline

Board footer

Powered by FluxBB